Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7830413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:13:24+00:00 2026-06-02T11:13:24+00:00

I am trying to predict test reuslts based on known previous scores. The test

  • 0

I am trying to predict test reuslts based on known previous scores. The test is made up of three subjects, each contributing to the final exam score. For all students I have their previous scores for mini-tests in each of the three subjects, and I know which teacher they had. For half of the students (the training set) I have their final score, for the other half I don’t (the test set). I want predict their final score.

So the test set looks like this:

student teacher subject1score subject2score subject3score finalscore

while the test set is the same but without the final score

student teacher subject1score subject2score subject3score 

So I want to predict the final score of the test set students. Any ideas for a simple learning algorithm or statistical technique to use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T11:13:26+00:00Added an answer on June 2, 2026 at 11:13 am

    The simplest and most reasonable method to try is a linear regression, with the teacher and the three scores used as predictors. (This is based on the assumption that the teacher and the three test scores will each have some predictive ability towards the final exam, but they could contribute differently- for example, the third test might matter the most).

    You don’t mention a specific language, but let’s say you loaded it into R as two data frames called ‘training.scoresandtest.scores`. Fitting the model would be as simple as using lm:

    lm.fit = lm(finalscore ~ teacher + subject1score + subject2score + subject3score, training.scores)
    

    And then the prediction would be done as:

    predicted.scores = predict(lm.fit, test.scores)
    

    Googling for “R linear regression”, “R linear models”, or similar searches will find many resources that can help. You can also learn about slightly more sophisticated methods such as generalized linear models or generalized additive models, which are almost as easy to perform as the above.

    ETA: There have been books written about the topic of interpreting linear regression- an example simple guide is here. In general, you’ll be printing summary(lm.fit) to print a bunch of information about the fit. You’ll see a table of coefficients in the output that will look something like:

                Estimate Std. Error t value Pr(>|t|)    
    (Intercept) -14.4511     7.0938  -2.037 0.057516 .  
    setting       0.2706     0.1079   2.507 0.022629 *  
    effort        0.9677     0.2250   4.301 0.000484 ***
    

    The Estimate will give you an idea how strong the effect of that variable was, while the p-values (Pr(>|T|)) give you an idea whether each variable actually helped or was due to random noise. There’s a lot more to it, but I invite you to read the excellent resources available online.

    Also plot(lm.fit) will graphs of the residuals (residuals mean the amount each prediction is off by in your testing set), which tells you can use to determine whether the assumptions of the model are fair.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to predict a value in R using the predict() function, by passing
I have been trying to build SVM classifier but having trouble with predict .
I am trying to predict the output of a program that uses msvcrt's rand()
I'm trying to predict the size string representation of a base64 encoded byte array.
I'm trying to understand pure prototype-based JavaScript and one specific thing I'm struggling with
I am a newbie to Genetic Algorithm. I am trying to predict the pattern
I am trying to use the outer function with predict in some classification code
I am trying to build animation based on mathematical formulae(speed varying with time as
I'm trying to predict which files I can delete using unlink(). My understanding so
Trying to comply with StackOverflow's suggestion of asking a question, not creating a discussion,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.