Docsity

Statistical Analysis of Air Pollution Data - Prof. Mervyn G. Marasinghe, Study notes of Statistics

Toggle sidebar
bg1
Stat 479 Fall 2010
Assignment 7
Chee Bing LOH
Question 1
Scatterplot matrix
Correlation matrix
Correlation
Variable x1 x2 x3 x4 x5 x6 y
x1 1.0000 -0.1900 -0.0627 -0.3497 0.3863 -0.4302 -0.4336
x2 -0.1900 1.0000 0.9553 0.2379 -0.0324 0.1318 0.6448
x3 -0.0627 0.9553 1.0000 0.2126 -0.0261 0.0421 0.4938
x4 -0.3497 0.2379 0.2126 1.0000 -0.0130 0.1641 0.0947
x5 0.3863 -0.0324 -0.0261 -0.0130 1.0000 0.4961 0.0543
x6 -0.4302 0.1318 0.0421 0.1641 0.4961 1.0000 0.3696
y-0.4336 0.6448 0.4938 0.0947 0.0543 0.3696 1.0000
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Statistical Analysis of Air Pollution Data - Prof. Mervyn G. Marasinghe and more Study notes Statistics in PDF only on Docsity!

Stat 479 Fall 2010

Assignment 7

Chee Bing LOH

Question 1

Scatterplot matrix

Correlation matrix

Correlation

Variable x1 x2 x3 x4 x5 x6 y

x1 1.0000 -0.1900 -0.0627 -0.3497 0.3863 -0.4302 -0.

x2 -0.1900 1.0000 0.9553 0.2379 -0.0324 0.1318 0.

x3 -0.0627 0.9553 1.0000 0.2126 -0.0261 0.0421 0.

x4 -0.3497 0.2379 0.2126 1.0000 -0.0130 0.1641 0.

x5 0.3863 -0.0324 -0.0261 -0.0130 1.0000 0.4961 0.

x6 -0.4302 0.1318 0.0421 0.1641 0.4961 1.0000 0.

y -0.4336 0.6448 0.4938 0.0947 0.0543 0.3696 1.

From the correlation matrix and the scatterplot matrix, we can tell that x2 and x3 are the highest correlated with p=0.9553, x

and x5 are the second highest correlated with p=0.4961, x1 and x6 are third highest correlated with p=-0.4302, and x1 and x

are the fourth highest correlated with p= 0.3863. The more highly correlated independent variables are, the more difficult it is to

determine how much variation in Y each X is responsible for. X1, x5 and x6 are correlated, and also x2 and x3 are highly

correlated. It is hard to determine which variable is responsible to explain variation in y if the variables are highly correlated. X

and X3 might be a problem, and x1, x5 and x6 could also be the cause of multicollinearity problems that may occur when fitting

the full model.

Question 2

Parameter Estimates

Variable DF

Parameter

Estimate

Standard

Error t Value

Pr > |

t|

Variance

Inflation

Intercept 1 111.72848 47.31810 2.36 0.0241 0

x1 1 -1.26794 0.62118 -2.04 0.0491 3.

x2 1 0.06492 0.01575 4.12 0.0002 14.

x3 1 -0.03928 0.01513 -2.60 0.0138 14.

x4 1 -3.18137 1.81502 -1.75 0.0887 1.

x5 1 0.51236 0.36276 1.41 0.1669 3.

x6 1 -0.05205 0.16201 -0.32 0.7500 3.

We can see that x1, x3, x4, and x6 have negative signs; x2 and x5 have positive signs. Number of population should

increase the concentration of the sulfur dioxide, and no decrease it. It is difficult to determine which variable is responsible for

variation in Y if there is multicolinearity among variables. As a result, the standard errors for the correlated variables become

very large. We can see there is large. The more correlated the X variables are with each other, the bigger the standard errors.

Standard errors for regression coefficients will be big; and the coefficients become less likely to be statistically significant. We

can see there is large standard error in x1 and x4. We also can see that x6 and x5 is not significance to the model. The variance

inflation factor also shows that there is high correlation between x2 and x3, and x1, x5 and x6. We can see that correlation the

x2 and x3 are causing the variance of the estimate to be 14 times larger than it would be if the independent variables were

uncorrelated. It is similar for x1, x5, and x6.

Question 3

From the residual plots of each variable, we can tell that the homogeneity of variance is violated for x1 and x5. There is no

obvious pattern in residual plots of x2 and x4 which indicate that the linear model is suitable for this data set.

Number in Model R-Square C(p) AIC MSE SSE Variables in Model 3 0.3808 30.7040 246.1136 368.81793 13646 x3 x5 x 3 0.3702 31.7970 246.8111 375.14626 13880 x3 x4 x 3 0.2550 43.6461 253.6967 443.74748 16419 x1 x4 x 3 0.2484 44.3194 254.0552 447.64532 16563 x3 x4 x 3 0.2462 44.5519 254.1783 448.99121 16613 x1 x5 x 3 0.2332 45.8853 254.8773 456.71145 16898 x1 x4 x 3 0.1590 53.5206 258.6652 500.91620 18534 x4 x5 x 4 0.6396 6.0729 225.9178 220.59783 7941.52178 x1 x2 x3 x 4 0.6329 6.7696 226.6811 224.74332 8090.75969 x1 x2 x3 x 4 0.6291 7.1581 227.1007 227.05524 8173.98857 x1 x2 x3 x 4 0.6285 7.2216 227.1689 227.43319 8187.59490 x2 x3 x4 x 4 0.6176 8.3411 228.3526 234.09459 8427.40521 x2 x3 x5 x 4 0.6028 9.8606 229.9063 243.13603 8752.89698 x1 x2 x4 x 4 0.5997 10.1869 230.2324 245.07784 8822.80210 x2 x3 x4 x 4 0.5747 12.7575 232.7146 260.37351 9373.44626 x1 x2 x4 x 4 0.5622 14.0377 233.8970 267.99134 9647.68820 x1 x2 x5 x 4 0.5164 18.7474 237.9748 296.01593 10657 x2 x4 x5 x 4 0.5035 20.0805 239.0590 303.94853 10942 x1 x3 x4 x 4 0.4708 23.4389 241.6697 323.93221 11662 x1 x3 x4 x 4 0.4649 24.0518 242.1287 327.57896 11793 x1 x3 x5 x 4 0.3871 32.0499 247.6904 375.17070 13506 x3 x4 x5 x 4 0.2550 45.6448 255.6959 456.06560 16418 x1 x4 x5 x

I would choose the model with only x2 and x3. In this model, we could observe the smallest C(p) among

the other possible model. The R-Square of the reduced model is 0.5863, it is could explains the 58.63%

variation in y by x2 and x3. By this model, by choosing the least number of variables also could help to

reduce the dimensionality of the dataset.

b) By backward deletion method

Analysis of Variance

Source DF

Sum of

Squares

Mean

Square F Value Pr > F

Model 2 12921 6460.

Error 38 9116.

Corrected Total 40 22038

Variable

Parameter

Estimate

Standard

Error Type II SS F Value Pr > F

Intercept 26.32508 3.84044 11273 46.99 <.

x2 0.08243 0.01470 7548.

x3 -0.05661 0.01430 3759.

c) By Stepwise Method

Analysis of Variance

Source DF

Sum of

Squares

Mean

Square F Value Pr > F

Model 2 12921 6460.

Error 38 9116.

Corrected Total 40 22038