Today we will investigate two collections of male crawdads, one sample collected from Arbor Lake, the other from Rock Creek State Park. Each collection represents an independent random sample from a population that is approximately normally distributed.
A researcher claims that the population mean claw length is 4.40 cm in each pond. With a partner, investigate how strongly each sample contradicts that claim. We are testing each population mean against 4.40 cm, not directly testing whether the two pond means differ.
Use dplyr for data wrangling, ggplot2 for your plot, and t.test() for confidence intervals and tests. Use two-sided alternatives throughout. Claw length is in centimeters. You may use resources from the course website, your homework, and your labs, but you may not use AI assistance.
For each pond, calculate the number of crawdads, mean claw length, and standard deviation of claw length in a summary. Add the estimated standard error of the mean to your summary using mutate(). Arrange the rows from largest to smallest standard deviation. Save and display your resulting dataset.
Which features of the two samples are similar, and which differ? Before running any tests, predict which sample will give stronger evidence against the researcher’s claim. Explain briefly.
Create a single plot comparing the distributions of claw length at the two locations.
In two or three sentences, describe what the plot shows about the centers and variability of the samples. Explain how it relates to your prediction in Problem 1.
Use filter() to create and save a separate dataset for each location. State the null and alternative hypotheses for each pond, defining the population mean being tested.
Use t.test() to test the researcher’s claim for each pond and request 90% confidence intervals. Report each test statistic, degrees of freedom, p-value, and interval. You may use clearly labeled R output rather than writing code to assemble a new results table.
Obtain 95% confidence intervals for the two population means. Now make the decisions at \(\alpha=.05\).
For which pond, if either, does the decision change? Explain how the change in interval width relates to the change in decision. Did the data, test statistics, or p-values change when you requested a different confidence level?
A classmate says, “The sample means and sample sizes are almost identical, so the two samples should give the same evidence against 4.40 cm.”
Write a short paragraph responding to this claim. Use your numerical summaries and the formula
\[ t = \frac{\bar{x}-\mu_0}{s/\sqrt{n}} \]
to explain the difference.
Once you are finished, knit the document and assess whether it looks and reads like something you would feel comfortable sending to a professional collaborator. You and your partner will submit a single report to Gradescope.
FAILURE TO ASSIGN ALL PAGES WILL RESULT IN 50% DEDUCTION OF FINAL SCORE
An R Markdown template is provided here.