1. Learn
  2. /
  3. Courses
  4. /
  5. Causal Inference with R - Experiments

Exercise

Manipulating Confidence Intervals: Practice with Sea Otter Diets

When visiting a zoo, a sea otter enthusiast and his associate got into a heated debate regarding which is more amusing to watch: a sea otter eating either clams or sea urchins. Despite how strange sea urchins appear, the sea otter enthusiast was convinced that it is more amusing to watch sea otters place clams on their bellies and use stones to crack them open prior to eating, whereas his associate believed the sea urchins provided the better show.

To resolve this contentious and highly consequential debate, the two friends visited the zoo during feeding hours several times, and counted how many people watched the sea otters when they were fed clams (treatment==1) versus when they were fed sea urchins (treatment==0). They found an average treatment effect that was positive (ATE = 8.33 people) for clams.

Although the results seemed to indicate a positive treatment effect, the results were not statistically significant (95% Confidence Interval = [-0.23, 16.94]). However, the sea otter enthusiast believes that a 95% confidence interval is too stringent of a standard for determining statistical significance, and his associate believed that a 95% confidence interval was not stringent enough. Using the dataset SeaOtter:

Instructions

100 XP
  • Follow the annotations in the sample code to determine the 50% and 99% confidence intervals for eating clams rather than sea urchins (treatment) on the size of the sea otters' audiences (Audience).