You are on page 1of 3

Name: Ali Khaliq

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:

Ans.(E) approximate guess for intercept is 15. (a)


Ans.(F) approximate guess for slope is 1. (b)
Ans.(G)
Ans.(H) Coefficient of determination by plugging in the values into following
formula and taking square of it drives us coefficient of determination. (answer will
be 1)

Ans.(M) Future Value = Present value x ( 1 + r )^n


Future Value = 100 x (1+10%)^5 = 610 ==> (more then $150)
Ans.(K) The Largest positive residual is Israel with an approximate value 65.

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)

## Visualizing data to have a visual view [scatter plot.]


plot(Last_update , Walking)

## Assuming a Model.
We assume linear model with respect to predictor.
data1<-lm(Walking~Last_update)

## Estimating our assumed model.

## Evaluate if the model fits the data?

## Interpret Results .

Exercise # 3:
H0 = U > 0
H1 = U < 0

Exercise 4:

You might also like