A sociologist wants to know whether the number of children in the family is linearly dependent on the age of the mother at her wedding. He interviewed 9 housewives and the results are shown below.
Age at wedding (X)
21
15
22
22
21
25
30
18
24
No. of children (Y)
4
8
3
4
2
3
1
5
6
Find the following:
a.) Estimate the regrision equation
b.) Estimate the number of children at age 27
c.) Compute the sample correlation coefficient r and the sample coefficient of determination r² and interpret the result.
a)
"\\sum_iX_iY_i=739,\\sum_iX_i^2=4500, \\sum_iY_i^2=180""\\bar{X}=\\dfrac{1}{n}\\sum_iX_i=\\dfrac{198}{9}=22"
"\\bar{Y}=\\dfrac{1}{n}\\sum_iY_i=\\dfrac{36}{9}=4"
"SS_{XX}=\\sum_iX_i^2-\\dfrac{1}{n}(\\sum_iX_i)^2=739-\\dfrac{(198)^2}{9}"
"=144"
"SS_{YY}=\\sum_iY_i^2-\\dfrac{1}{n}(\\sum_iY_i)^2=180-\\dfrac{(36)^2}{9}"
"=36"
"SS_{XY}=\\sum_iX_iY_i-\\dfrac{1}{n}(\\sum_iX_i)(\\sum_iY_i)"
"=739-\\dfrac{198(36)}{9}=-53"
"m=slope=\\dfrac{SS_{XY}}{SS_{XX}}"
"=\\dfrac{-53}{144}=-0.368056"
"n=\\bar{Y}-m\\bar{X}"
"=4-(-0.368056)(22)"
"=12.097232"
Therefore, we find that the regression equation is:
b)
The number of children at age 27 is 2.
c) Correlation coefficient:
"=-0.736111"
Negative strong correlation.
"r^2=\\dfrac{(SS_{XY})^2}{SS_{XX}SS_{YY}}=\\dfrac{(-53)^2}{144(36)}"
"=0.541860"
54.186% of the data fit the regression model.
Comments
Leave a comment