Comparing_Two_Samples.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ---
  2. redirect_from:
  3. - "/chapters/12/comparing-two-samples"
  4. interact_link: content/chapters/12/Comparing_Two_Samples.ipynb
  5. kernel_name: Python [Root]
  6. has_widgets: false
  7. title: |-
  8. Comparing Two Samples
  9. prev_page:
  10. url: /chapters/11/4/Error_Probabilities.html
  11. title: |-
  12. Error Probabilities
  13. next_page:
  14. url: /chapters/12/1/AB_Testing.html
  15. title: |-
  16. A/B Testing
  17. comment: "***PROGRAMMATICALLY GENERATED, DO NOT EDIT. SEE ORIGINAL FILES IN /content***"
  18. ---
  19. <div class="jb_cell tag_remove_input">
  20. <div class="cell border-box-sizing code_cell rendered">
  21. </div>
  22. </div>
  23. <div class="jb_cell">
  24. <div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
  25. <div class="text_cell_render border-box-sizing rendered_html">
  26. <h3 id="Comparing-Two-Samples">Comparing Two Samples<a class="anchor-link" href="#Comparing-Two-Samples"> </a></h3><p>We have seen several examples of assessing whether a single sample looks like random draws from a specified chance model.</p>
  27. <ul>
  28. <li>Did the Alameda County jury panels look like a random sample from the population of eligible jurors?</li>
  29. <li>Did the pea plants that Mendel grew have colors that were consistent with the chances he specified in his model?</li>
  30. </ul>
  31. <p>In all of these cases there was just one random sample, and we were trying to decide how it had been generated. But often, data scientists have to compare two random samples with each other. For example, they might have to compare the outcomes of patients who have been assigned at random to a treatment group and a control group. Or they might have randomized internet users to receive two different versions of a website, after which they would want to compare the actions of the two random groups.</p>
  32. <p>In this chapter, we develop a way of using Python to compare two random samples and answer questions about the similarities and differences between them. You will see that the methods we develop have diverse applications. Our examples are from medicine and public health as well as football!</p>
  33. </div>
  34. </div>
  35. </div>
  36. </div>