>
father_height=c(70.8,65.4,65.7,69.0,73.6,66.7,70.1,68.3)
> Son_height=c(69.8,66.0,70.9,69.1,74.9,68.8,73.3,68.3)
> m=lm(Son_height~father_height)
> a=anova(m)
> a
Analysis of Variance Table
Response: Son_height
Df Sum Sq Mean Sq F value Pr(>F)
father_height 1 31.620 31.6198 7.5528 0.03337
*
Residuals 6 25.119 4.1865
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> # p-value for testing H0:β=0 vs H1:β≠0 is
0.03337<0.10 hence we reject H0 and conclude
that Father's height is useful in predicting son's height
>
> m
Call:
lm(formula = Son_height ~ father_height)
Coefficients:
(Intercept) father_height
17.8186 0.7616
> # regression equation is ŷ= 17.8186 +
0.7616*x where ŷ= Son_height and x=father_height
> summary(m)
Call:
lm(formula = Son_height ~ father_height)
Residuals:
Min 1Q Median 3Q Max
-1.9368 -1.5557 -0.5402 1.2972 3.0472
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 17.8186 19.0510 0.935 0.3857
father_height 0.7616 0.2771 2.748 0.0334 *
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 2.046 on 6 degrees of freedom
Multiple R-squared: 0.5573, Adjusted R-squared:
0.4835
F-statistic: 7.553 on 1 and 6 DF, p-value:
0.03337
> round(a$`Pr(>F)`,4) # p-value
[1] 0.0334 NA
Like father, like son: In 1906, the statistician Karl Pearson measured the heights of 1078 pairs...
Like Father, like son: In 1906, the statistician Karl Pearson measured the heights of 1078 pairs of fathers and sons. The following table presents a sample of 7 pairs, with height measured in inches, simulated from the distribution specified by Pearson. The least-squares regression line y=b0+b1x, se=2.3624697, E(x-x)^ 2=33.51, and x=70.02 are known for this data. Compute a point estimate of the mean height of sons whose fathers are 70 inches tall. Father's height Son's height 69 69.1 73.6 74.9...
1.A blood pressure measurement consists of two numbers: the systolic pressure, which is the maximum pressure taken when the heart is contracting, and the diastolic pressure, which is the minimum pressure taken at the beginning of the heartbeat. Blood pressures were measured, in millimeters of mercury, for a sample of 6 adults. The following table presents the results.SystolicDiastolic1348710869115831056611377157103Part 1 of 2 Compute the least-squares regression line for predicting diastolic pressure (v) from systolic pressure (x). Round the slope and y-intercept values...
Father's Son's height height 73.6 76.5 69.0 69.1 73.6 74.9 66.7 68.8 70.1 73.3 72.3 71.9 X Send data Use the P-value method to test H: B. = 0 versus H:, > 0. Can you conclude that father's height is useful in predicting son's height? Use the a=0.01 level of significance and the TI-84 calculator. Part 1 of 4 Compute the least-squares regression line for predicting son's height (y) from father's height (x). Round the slope and y intercept values...