STAT 1080 - Fall 2026
  • Course Info
    • Overview
    • Syllabus
    • Support
    • Schedule
    • Useful links
  • Weekly Materials
    • W1. Introduction
    • W2. RStudio
    • W3. Correlation
    • W4. Programming
    • W5. Tidyverse
    • W6. Dates/Times and Distributions
    • W7. Data Visualization
    • W8. Statistics & Probability
    • W9. Data & Probability
    • W10. Random Variables
    • W11. Parameters & Estimates
    • W12. Statistical Inference
    • W13. Regression
    • W14. Regression
    • W15. Project Meetings

On this page

  • 1 Asparagus Growth
    • 1.1 Experimental Design
    • 1.2 Calculations
    • 1.3 Confidence Intervals
    • 1.4 Hypothesis Test
  • 2 Cardiopulmonary Resuscitation (CPR)
    • 2.1 Experimental Design
    • 2.2 Calculations
    • 2.3 Confidence Interval
    • 2.4 Hypothesis Test
  • Report an issue

12.1.i Activity - Confidence Intervals and Hypothesis Testing

1 Asparagus Growth

Someone on the internet is claiming that asparagus shoots grow 10” in a 24 hour period. In order to test this theory, you go to your asparagus patch and measure each new shoot from each plant. You measure its length (in inches) at 8AM on the day it appeared and then again at 8AM the next day, subtracting to document the amount of growth.

As each plant produces multiple shoots, you end up with a sample of 85 measurements. The sample mean is 9.53 inches, with a sample standard deviation of 2.4 inches.

1.1 Experimental Design

  • What is the research question? That is, what do you hope to determine by collecting data?

Your answer here

  • What is the observational unit?

Your answer here

  • What type of variable is this? Categorical or Quantitative?

Your answer here

  • If you were conducting a hypothesis test, what would \(H_0\) and \(H_A\) be?

\(H_0\): \(H_A\):

  • If you were using a confidence interval to conduct a test, what value would need to be outside the interval to reject the null hypothesis?

Your answer here

1.2 Calculations

  • What is your sample statistic?

Your answer here

  • What is the standard error?
asparagus_se <- ## ... ##
Error in parse(text = input): <text>:2:0: unexpected end of input
1: asparagus_se <- ## ... ##
   ^
  • Does the central limit theorem apply to this data? Why or why not?

Your answer here

1.3 Confidence Intervals

  • What formula should you use for a 95% confidence interval? Provide the value of any constants you will use (e.g. multipliers).

Your answer here

  • Calculate a 95% confidence interval for the amount asparagus grows in a 24h period.
asparagus_ci <- ## ... ##
Error in parse(text = input): <text>:2:0: unexpected end of input
1: asparagus_ci <- ## ... ##
   ^
  • What is your confidence level? What level of \(\alpha\) corresponds to this confidence level?

Your answer here

  • Interpret your confidence interval in the context of the problem.

Your answer here

1.4 Hypothesis Test

  • Calculate \(Z^\ast\), the critical value for your hypothesis test.
asparagus_z <- ##...##
Error in parse(text = input): <text>:2:0: unexpected end of input
1: asparagus_z <- ##...##
   ^
  • Calculate your p-value using pnorm
asparagus_p <- pnorm(##...##)
Error in parse(text = input): <text>:2:0: unexpected end of input
1: asparagus_p <- pnorm(##...##)
   ^
  • What is your conclusion, based on your p-value?

Your answer here

  • Does your conclusion match the conclusion you would draw by interpreting your confidence interval? Why or why not?

Your answer here

2 Cardiopulmonary Resuscitation (CPR)

On TV, CPR is seemingly more successful than it is in real life, where about 45% of people who receive CPR are at least temporarily resuscitated, and only 10% survive to discharge from the hospital. A group of doctors collected data on CPR survival rates in medical dramas, examining 88 episodes which aired between July 2008 and April 2009. They documented 70 CPR attempts; 32 succeeded in temporarily resuscitating the patient. Attempts to determine the percent successfully discharged from the hospital failed, as this is not a part of the plot line in most TV dramas.

2.1 Experimental Design

  • What is the research question? That is, what do the doctors want to determine?

Your answer here

  • What is the observational unit?

Your answer here

  • What type of variable is this? Categorical or Quantitative?

Your answer here

  • If you were conducting a hypothesis test, what would \(H_0\) and \(H_A\) be using appropriate mathematical notation?

\(H_0\): \(H_A\):

  • If you were using a confidence interval to conduct a test, what value would need to be outside the interval to reject the null hypothesis?

Your answer here

2.2 Calculations

  • What is your sample statistic?

Your answer here

  • What is the standard error?
cpr_se <- ## ... ##
Error in parse(text = input): <text>:2:0: unexpected end of input
1: cpr_se <- ## ... ##
   ^
  • Does the central limit theorem apply to this data? Why or why not?

Your answer here

2.3 Confidence Interval

  • What formula should you use for a 95% confidence interval? Provide the value of any constants you will use (e.g. multipliers).

Your answer here

  • Calculate a 95% confidence interval for the amount asparagus grows in a 24h period.
cpr_ci <- ## ... ##
Error in parse(text = input): <text>:2:0: unexpected end of input
1: cpr_ci <- ## ... ##
   ^
  • What is your confidence level? What level of \(\alpha\) corresponds to this confidence level?

Your answer here

  • Interpret your confidence interval in the context of the problem.

Your answer here

2.4 Hypothesis Test

  • Calculate \(Z^\ast\), the critical value for your hypothesis test.
cpr_z <- ##...##
Error in parse(text = input): <text>:2:0: unexpected end of input
1: cpr_z <- ##...##
   ^
  • Calculate your p-value using pnorm
cpr_p <- pnorm(##...##)
Error in parse(text = input): <text>:2:0: unexpected end of input
1: cpr_p <- pnorm(##...##)
   ^
  • What is your conclusion, based on your p-value?

Your answer here

  • Does your conclusion match the conclusion you would draw by interpreting your confidence interval? Why or why not?

Your answer here

© Copyright 2026, Susan Vanderplas

 
  • Report an issue