Professional Documents
Culture Documents
Multiple Regression
Multiple Regression
metricola: 0046041
Exercise #1.
Ans.(A)
Ans.(B) Yes, the taken samples are random, because there are total 196 countries in
the world and only 96 were selected for the survey, moreover they are not in
symmetry geographically .
Ans.(C) the highest forecasted GDP per person in 2015 is Luxembourg.
Ans.(D) Highest level of Financial literacy are Scandinavians countries. (Denmark,
Sweden)
Approximate equation: Y = 15 + 1x
X
Total
Y
15
20
35
XY
30
35
65
450
700
1150
X^2
Y^2
225
900
400
1225
625
2125
And by plugging into following formula we can get the slop and intercept:
Exercise # 2:
Step 1: load the database into R-studio software.
dta1<-read.table(file=" dati_health_network",header=T)
alternatively you can do it visually by going to Environment -> import
dataset -> from file
attach (dta1) # load data into active memory set.
dta1$Last_update # just to check the variable and the values in it
dta1$Walking # just to check the variable and the values in it
#setting the predictor and response variable
## Predictor variable should be Last Update (Last_update)
## Response variable should be Walking (Walking)
## Assuming a Model.
We assume linear model with respect to predictor.
data1<-lm(Walking~Last_update)
## Interpret Results .
Exercise # 3:
H0 = U > 0
H1 = U < 0
Exercise 4: