Beruflich Dokumente
Kultur Dokumente
Michael Bacon
December 6, 2015
Introduction
We are trying to find the effect of the parent's height on the child's height.
The confident intervals will explain to us whether or not the parent's height
will affect the child's height, as a good fit. And a graph will further explain
the regression.
Methods
Galton Is the data we are using in this and the data set is equal to the
variable called model1
We will be using a jitter plot, as well as, a line of best fit to determine
what
The idea is to plot the parent's height as an independent variable and
that makes the dependent height of children.
We need to determine the confident interval of the coefficients and
intercepts as well.
We have to create the Null and Alternative Hypothesis for the each
intercepts.
H0
: The intercept is equal to 0.
HA
: The intercept is not equal to 0.
There are also Null and Alternative Hypothesis for the coefficients.
H0
: The coefficient is equal to 0.
HA
: The coefficient is not equal to 0.
Graphical Results
model1 = lm(child ~ parent)
plot(jitter(parent), jitter(child))
abline(model1, col='red')
This is the graph made for variable model1. The parent is the independent
variable and the child is the dependent variable. The abline is the straight
red-line on the plot fitting the one-dimensional regression of the Galton data
(line of best fit).
Numerical Results
#model1data
summary(model1)
qt(0.025, df= 926, lower.tail = F)
## [1] 1.962529
#CI
23.94 + (1.96)*(2.81)
## [1] 29.4476
23.94 - (1.96)*(2.81)
## [1] 18.4324
0.65 + (1.96)*(0.04)
## [1] 0.7284
0.65 - (1.96)*(0.04)
## [1] 0.5716