If we use the same sampling method to select different samples and computed an interval estimate for each sample, we would expect the true population parameter ( β1 ) to fall within the interval estimates 95% of the time.
We would expect the true population parameter to fall within 5 to 9 95% of the time
We would expect the true population parameter to fall within 5 to 9 95% of the time
We would expect the true population parameter to fall within 5 - 9 95% of the time
We would expect the true population parameter to fall within 5 - 9 95% of the time
Why?
We would expect the true population parameter to fall within 5 - 9 95% of the time
Why?
We are interested in the relationship between Age and Wage. To demonstrate what a confidence interval is, I am going to construct a "truth" for the relationship in Lucy-land.
Wage=2×Age+ϵ
We are interested in the relationship between Age and Wage. To demonstrate what a confidence interval is, I am going to construct a "truth" for the relationship in Lucy-land.
Wage=2×Age+ϵ
What is the "true parameter" for the relationship between Age
and Wage
?
We are interested in the relationship between Age and Wage. To demonstrate what a confidence interval is, I am going to construct a "truth" for the relationship in Lucy-land.
Wage=2×Age+ϵ
What is the "true parameter" for the relationship between Age
and Wage
?
We are interested in the relationship between Age and Wage. To demonstrate what a confidence interval is, I am going to construct a "truth" for the relationship in Lucy-land.
Wage=2×Age+ϵ
set.seed(7)n <- 100sample <- data.frame( Age = rnorm(n, 30, 10))sample$Wage <- 2 * sample$Age + rnorm(n, 0, 10)
We are interested in the relationship between Age and Wage. To demonstrate what a confidence interval is, I am going to construct a "truth" for the relationship in Lucy-land.
Wage=2×Age+ϵ
head(sample)
## Age Wage## 1 52.87247 110.93553## 2 18.03228 41.93996## 3 23.05707 45.32082## 4 25.87707 40.01053## 5 20.29327 43.67375## 6 20.52720 25.01562
We are interested in the relationship between Age and Wage. To demonstrate what a confidence interval is, I am going to construct a "truth" for the relationship in Lucy-land.
Wage=2×Age+ϵ
n <- 100sample2 <- data.frame( Age = rnorm(n, 30, 10))sample2$Wage <- 2 * sample2$Age + rnorm(n, 0, 10)
We are interested in the relationship between Age and Wage. To demonstrate what a confidence interval is, I am going to construct a "truth" for the relationship in Lucy-land.
Wage=2×Age+ϵ
head(sample)
## Age Wage## 1 52.87247 110.93553## 2 18.03228 41.93996## 3 23.05707 45.32082## 4 25.87707 40.01053## 5 20.29327 43.67375## 6 20.52720 25.01562
head(sample2)
## Age Wage## 1 50.23344 105.71950## 2 38.62492 74.49258## 3 29.75091 60.04891## 4 36.00635 68.13020## 5 42.16481 80.15938## 6 18.23468 24.82762
We are interested in the relationship between Age and Wage. To demonstrate what a confidence interval is, I am going to construct a "truth" for the relationship in Lucy-land.
Wage=2×Age+ϵ
Fit a linear model on the sample
We are interested in the relationship between Age and Wage. To demonstrate what a confidence interval is, I am going to construct a "truth" for the relationship in Lucy-land.
Wage=2×Age+ϵ
Fit a linear model on the sample
term | estimate | std.error | statistic | p.value | conf.low | conf.high |
---|---|---|---|---|---|---|
(Intercept) | 0.9950715 | 3.2797052 | 0.3034027 | 0.7622261 | -5.513397 | 7.503540 |
Age | 2.0098559 | 0.0999765 | 20.1032929 | 0.0000000 | 1.811456 | 2.208256 |
We are interested in the relationship between Age and Wage. To demonstrate what a confidence interval is, I am going to construct a "truth" for the relationship in Lucy-land.
Wage=2×Age+ϵ
Fit a linear model on the sample
term | estimate | std.error | statistic | p.value | conf.low | conf.high |
---|---|---|---|---|---|---|
(Intercept) | 0.9950715 | 3.2797052 | 0.3034027 | 0.7622261 | -5.513397 | 7.503540 |
Age | 2.0098559 | 0.0999765 | 20.1032929 | 0.0000000 | 1.811456 | 2.208256 |
What percent of the time does the "true parameter" fall within this interval?
term | estimate | std.error | statistic | p.value | conf.low | conf.high |
---|---|---|---|---|---|---|
(Intercept) | 0.9950715 | 3.2797052 | 0.3034027 | 0.7622261 | -5.513397 | 7.503540 |
Age | 2.0098559 | 0.0999765 | 20.1032929 | 0.0000000 | 1.811456 | 2.208256 |
What percent of the time does 2 fall within this interval?
term | estimate | std.error | statistic | p.value | conf.low | conf.high |
---|---|---|---|---|---|---|
(Intercept) | 0.9950715 | 3.2797052 | 0.3034027 | 0.7622261 | -5.513397 | 7.503540 |
Age | 2.0098559 | 0.0999765 | 20.1032929 | 0.0000000 | 1.811456 | 2.208256 |
We are interested in the relationship between Age and Wage. To demonstrate what a confidence interval is, I am going to construct a "truth" for the relationship in Lucy-land.
Wage=2×Age+ϵ
Fit a linear model on the sample2
We are interested in the relationship between Age and Wage. To demonstrate what a confidence interval is, I am going to construct a "truth" for the relationship in Lucy-land.
Wage=2×Age+ϵ
Fit a linear model on the sample2
term | estimate | std.error | statistic | p.value | conf.low | conf.high |
---|---|---|---|---|---|---|
(Intercept) | -2.819931 | 3.0542175 | -0.9232909 | 0.3581233 | -8.880926 | 3.241064 |
Age | 2.078026 | 0.0968743 | 21.4507408 | 0.0000000 | 1.885782 | 2.270270 |
We are interested in the relationship between Age and Wage. To demonstrate what a confidence interval is, I am going to construct a "truth" for the relationship in Lucy-land.
Wage=2×Age+ϵ
Fit a linear model on the sample2
term | estimate | std.error | statistic | p.value | conf.low | conf.high |
---|---|---|---|---|---|---|
(Intercept) | -2.819931 | 3.0542175 | -0.9232909 | 0.3581233 | -8.880926 | 3.241064 |
Age | 2.078026 | 0.0968743 | 21.4507408 | 0.0000000 | 1.885782 | 2.270270 |
What percent of the time does 2 fall within this interval?
term | estimate | std.error | statistic | p.value | conf.low | conf.high |
---|---|---|---|---|---|---|
(Intercept) | -2.819931 | 3.0542175 | -0.9232909 | 0.3581233 | -8.880926 | 3.241064 |
Age | 2.078026 | 0.0968743 | 21.4507408 | 0.0000000 | 1.885782 | 2.270270 |
What percent of the intervals contain the "true parameter"?
What percent of the intervals contain the "true parameter"
What percent of the intervals contain the "true parameter"
Applicaton Exercise
If we use the same sampling method to select different samples and computed an interval estimate for each sample, we would expect the true population parameter ( β1 ) to fall within the interval estimates 95% of the time.
Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
Esc | Back to slideshow |