Multi-correlations analysis

#1
Hi everyone, I’m recently struggling with a situation below, may anyone be kind enough to offer me a helping hand please.

Student / mins of leisure time / page studided / marks in exam
A / 50 / 100 / 90
B / 55 / 85 / 80
C / 60 / 80 / 70

Now for student D, he has 50 mins leisure time and studied 90 pages
How many marks will he probably get from the exam?

Is there a fair approach in forecasting this?
Thank you so much
 

hlsmith

Omega Contributor
#2
I am guessing you don't have more data than this? What are you currently covering in class.

I would imagine they want you to do a multiple linear regression model on this. Then you would insert D's values into the linear model. However with this sparse of a dataset the model doesn't want to run so well.

y-hat = intercept + X1 + X2

y-hat = 190 -2(mins) + 0.00000000000009(Pages)

y-hat = 90

Following is code in SAS and R:

Code:
/*SAS*/
data ts;
input mins pages mark;
datalines;
5010090
558580
608070
;

proc REG data=ts;
model mark = mins pages;
run;





# R
TS <- read.table(header = TRUE, text = "
               mins pages mark
               50 100 90
               55 85 80
               60 80 70
                 ")
TS
model1 = lm(mark ~., data=TS)
model1
 
Last edited: