Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

IICAR–NATIONAL DAIRY RESEARCH INSTITUTE

Assignment

Course: Software for statistical computing

Course code: CS-621(2+1)

Submitted by: Y.E.S.PHANEENDRA NATH Submitted to: Dr. A.K, Sharma

Class:M.V.Sc (1st year) Date: 03 May 2020

ANIMAL NUTRITION Department: Dairy Economics, Statistics


& Management
Reg. No.:19-M-AN-10

Assignment (R6)

Exercise: Using the following data, find out the multiple correlation coefficient, the coefficient
of determination, and also the adjusted coefficient of determination.

Solution:
We already computed the regression equation of X1 on X2 and X3 in assignment R5 which is:
X1=1.203+0.032X2+0.013X3

So on the basis of equation we got the expected values of X1 i.e. Xˆ1

X1 X2 X3 Xˆ1 X1-X1bar Xˆ1-Xˆ1bar (X1-X1bar)^2 (Xˆ1-Xˆ1bar)^2


1.83 13 12 1.775 0.0615 0.01585 0.00378225 0.000251223
1.56 10 10 1.653 -0.2085 -0.10615 0.04347225 0.011267823
1.85 12 11 1.73 0.0815 -0.02915 0.00664225 0.000849722
1.9 14 11 1.794 0.1315 0.03485 0.01729225 0.001214523
1.7 12 12 1.743 -0.0685 -0.01615 0.00469225 0.000260822
1.8 13 11 1.762 0.0315 0.00285 0.00099225 8.1225E-06
1.85 12 11 1.73 0.0815 -0.02915 0.00664225 0.000849722
1.73 10 10 1.653 -0.0385 -0.10615 0.00148225 0.011267823
1.95 14 11 1.794 0.1815 0.03485 0.03294225 0.001214523
1.67 13 12 1.775 -0.0985 0.01585 0.00970225 0.000251223
1.82 16 14 1.897 0.0515 0.13785 0.00265225 0.019002623
1.84 14 14 1.833 0.0715 0.07385 0.00511225 0.005453823
1.74 11 9 1.672 -0.0285 -0.08715 0.00081225 0.007595122
1.68 12 8 1.691 -0.0885 -0.06815 0.00783225 0.004644422
1.62 11 9 1.672 -0.1485 -0.08715 0.02205225 0.007595122
1.82 15 13 1.852 0.0515 0.09285 0.00265225 0.008621123
1.91 15 13 1.852 0.1415 0.09285 0.02002225 0.008621123
1.61 12 9 1.704 -0.1585 -0.05515 0.02512225 0.003041522
1.64 13 10 1.749 -0.1285 -0.01015 0.01651225 0.000103022
1.85 15 13 1.852 0.0815 0.09285 0.00664225 0.008621123
Sum 35.37 257 223 35.183 0.237055 0.10073455
Avg 1.7685 12.85 11.15 1.75915

So the variance from both the observed and expected values of the dependent variable X1 is

Var ( X 1 )=∑ ¿ ¿ ¿


Var ( Xˆ 1 )=∑ ¿ ¿¿

So Var (X1) = 0.2370 and Var (Xˆ1) = 0.1007

Multiple correlation coefficients is R=√ ❑


So Multiple correlation coefficient (R) = 0.65187
Coefficient of determination (R2) = 0.42494
It means 42.49% of the variation in the dependent variable has been explained by its linear
relationship with the independent variable

n−1
AdjustedR 2=1− ( )
n−k
(1−R 2)

As n = 20, k = 3 and R2 = 0.42494


So Adjusted R2 = 0.3572

You might also like