xeris-s_lair

ch 9 prob 13

Oct 28th, 2025 (edited)
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 1.23 KB | Source Code | 0 0
  1. Chapter 9 Problem 13: Pseudo-replicated Data
  2. a. Two Sample t-test
  3.  
  4. data:  female$heart_rate and male$heart_rate
  5. t = 3.6146, df = 118, p-value = 0.0004435
  6. alternative hypothesis: true difference in means is not equal to 0
  7. 95 percent confidence interval:
  8.   3.828165 13.105168
  9. sample estimates:
  10. mean of x mean of y
  11.  77.53333  69.06667
  12. b. 95% C.I.: mean of differences = 77.53... - 69.06...=8.46... (ellipses = repeating #)
  13. 13.105168 - 8.46... = 4.6385014,
  14. C.I. = 8.467 +-4.639
  15.  
  16. Chapter 9 Problem 13: Independent Data
  17. Two Sample t-test
  18.  
  19. data:  fem$ave_hr and boy$ave_hr
  20. t = 1.8441, df = 28, p-value = 0.07578      # see the difference in t, df, and p
  21. alternative hypothesis: true difference in means is not equal to 0
  22. 95 percent confidence interval:
  23.  -0.9380354 17.8713688          # see diff in interval bounds
  24. sample estimates:
  25. mean of x mean of y
  26.  77.53333  69.06667         # see how means are same as pseudo-replicated data
  27. C.I.: 17.8713688 - 8.46... = 9.4047022
  28. C.I. = 8.467+-9.405
  29. d. t, df, and p value change between data because the data has been averaged
  30. e. the C.I. for the indep. data has a larger area between the upper and lower bounds, and it also passes into the negatives. pseudo-replication creates a narrower margin of error
Advertisement
Add Comment
Please, Sign In to add comment