• Home
  • Blog
  • Testing the Average Over the First 25 Years Is Statistically Significant Question

Testing the Average Over the First 25 Years Is Statistically Significant Question

0 comments

The nhtemp built-in data set gives the mean annual temperature in New Haven, CT, for the years 1912 to 1971.

Suppose you want to test whether the average over the first 25 years (1912 to 1936) of the data is statistically significantly different than the average over the last 25 years (1947 to 1971) of the data set. You create two vectors from the data set: first25 and last25, using the following code:

first25 <- nhtemp[1:25]
last25 <- nhtemp[36:60]

Compute a test to see if these two vectors have the same mean.

Within a text document, discuss the following:

  • The problem to be solved
  • The hypotheses
  • The results of the hypothesis test and the conclusion

What is the p-value for this test? Based on this p-value, do you reject the null hypothesis?

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}