<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<meta http-equiv="Content-Language" content="en" />
<meta name="generator" content="Pressbooks 5.14.5" />
<meta name="pb-authors" content="Gordon E. Sarty" />
<meta name="pb-editors" content="" />
<meta name="pb-translators" content="" />
<meta name="pb-reviewers" content="" />
<meta name="pb-illustrators" content="" />
<meta name="pb-contributors" content="Osama Bataineh" />
<meta name="pb-title" content="Introduction to Applied Statistics for Psychology Students" />
<meta name="pb-language" content="en-ca" />
<meta name="pb-cover-image" content="https://openpress.usask.ca/app/uploads/sites/76/2020/05/cover-scaled.jpg" />
<meta name="pb-book-license" content="cc-by-nc-sa" />
<meta name="pb-copyright-holder" content="Gordon E. Sarty" />
<meta name="pb-custom-copyright" content="See notes on specific copyright for screenshots from IBM® SPSS® Statistics software (“SPSS”) and R Project for Statistical Computing (“RStudio”)." />
<meta name="pb-primary-subject" content="PBT" />
<meta name="pb-publication-date" content="1588723200" />
<title>Introduction to Applied Statistics for Psychology Students</title>
</head>
<body lang='en' >
<div id="half-title-page"><h1 class="title">Introduction to Applied Statistics for Psychology Students</h1></div>
<div id="title-page"><h1 class="title">Introduction to Applied Statistics for Psychology Students</h1><h2 class="subtitle"></h2><h3 class="author">Gordon E. Sarty</h3><h3 class="author">Osama Bataineh</h3><h4 class="publisher"></h4><h5 class="publisher-city"></h5></div>
<div id="copyright-page"><div class="ugc">
<div class="license-attribution"><p><img src="https://openpress.usask.ca/app/themes/pressbooks-book/packages/buckram/assets/images/cc-by-nc-sa.svg" alt="Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License" /></p><p>Introduction to Applied Statistics for Psychology Students by Gordon E. Sarty is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>, except where otherwise noted.</p></div>
<p>See notes on specific copyright for screenshots from IBM® SPSS® Statistics software (“SPSS”) and R Project for Statistical Computing (&#8220;RStudio&#8221;).</p></div></div>
<div id="toc"><h1>Contents</h1><ul><li class="front-matter introduction"><a href="#front-matter-aboutthisbook"><span class="toc-chapter-title">About This Book</span></a><ul class="sections"><li class="section"><a href="#front-matter-4-section-1"><span class="toc-subsection-title">Licensing and Copyright</span></a></li></ul></li><li class="front-matter miscellaneous post-introduction"><a href="#front-matter-acknowledgements"><span class="toc-chapter-title">Acknowledgements</span></a></li><li class="front-matter miscellaneous post-introduction"><a href="#front-matter-statistical-software"><span class="toc-chapter-title">Statistical Software Used in this Book</span></a><ul class="sections"><li class="section"><a href="#front-matter-831-section-1"><span class="toc-subsection-title">Accessing SPSS and RStudio Through Your School</span></a></li><li class="section"><a href="#front-matter-831-section-2"><span class="toc-subsection-title">Downloading SPSS and RStudio</span></a></li><li class="section"><a href="#front-matter-831-section-3"><span class="toc-subsection-title">Why does this book cover both SPSS and RStudio?</span></a></li></ul></li><li class="front-matter miscellaneous post-introduction"><a href="#front-matter-university-of-saskatchewan-software-access"><span class="toc-chapter-title">University of Saskatchewan: Software Access</span></a><ul class="sections"><li class="section"><a href="#front-matter-1251-section-1"><span class="toc-subsection-title">On-Campus Lab Access</span></a></li><li class="section"><a href="#front-matter-1251-section-2"><span class="toc-subsection-title">Remote / Off-Campus Access</span></a></li><li class="section"><a href="#front-matter-1251-section-3"><span class="toc-subsection-title">USask ICT Help</span></a></li></ul></li><li class="front-matter miscellaneous post-introduction"><a href="#front-matter-data-sets"><span class="toc-chapter-title">Data Sets</span></a></li><li class="part"><a href="#part-main-body">1. Background and Motivation</a></li><li class="chapter standard"><a href="#chapter-chapter-1"><span class="toc-chapter-title">1.1 Overview</span></a><ul class="sections"><li class="section"><a href="#chapter-5-section-1"><span class="toc-subsection-title">1.1.1 Textbook Layout, * and ** Symbols Explained</span></a></li><li class="section"><a href="#chapter-5-section-2"><span class="toc-subsection-title">1.1.2 Intro to Univariate Statistics</span></a></li></ul></li><li class="chapter standard"><a href="#chapter-slug-1-2-basic-definitions"><span class="toc-chapter-title">1.2 Basic Definitions</span></a><ul class="sections"><li class="section"><a href="#chapter-31-section-1"><span class="toc-subsection-title">1.2.1  Types of Data (important!)</span></a></li><li class="section"><a href="#chapter-31-section-2"><span class="toc-subsection-title">1.2.2 Measurement Scales (avoid this!)</span></a></li><li class="section"><a href="#chapter-31-section-3"><span class="toc-subsection-title">1.2.3 Kinds of Sampling and Studies</span></a></li></ul></li><li class="chapter standard"><a href="#chapter-summation-convention"><span class="toc-chapter-title">1.3 Summation Convention</span></a></li><li class="part"><a href="#part-slug-2-descriptive-statistics-frequency-data-counting">2. Descriptive Statistics: Frequency Data (Counting)</a></li><li class="chapter standard"><a href="#chapter-slug-2-1-frequency-tables"><span class="toc-chapter-title">2.1 Frequency Tables</span></a></li><li class="chapter standard"><a href="#chapter-slug-2-2-plotting-frequency-data"><span class="toc-chapter-title">2.2 Plotting Frequency Data</span></a><ul class="sections"><li class="section"><a href="#chapter-35-section-1"><span class="toc-subsection-title">2.2.1 Stem and Leaf Plots</span></a></li></ul></li><li class="chapter standard"><a href="#chapter-slug-2-3-spss-lesson-1-getting-started-with-spss"><span class="toc-chapter-title">2.3 SPSS Lesson 1: Getting Started with SPSS</span></a></li><li class="chapter standard"><a href="#chapter-slug-2-4-rstudio-lesson-1-getting-started-with-rstudio"><span class="toc-chapter-title">2.4 RStudio Lesson 1: Getting Started with RStudio</span> <span class="chapter-author">Osama Bataineh</span></a></li><li class="part"><a href="#part-slug-3-descriptive-statistics-central-tendency-and-dispersion">3. Descriptive Statistics: Central Tendency and Dispersion</a></li><li class="chapter standard"><a href="#chapter-slug-3-1-central-tendency-mean-median-mode"><span class="toc-chapter-title">3.1 Central Tendency: Mean, Median, Mode</span></a><ul class="sections"><li class="section"><a href="#chapter-43-section-1"><span class="toc-subsection-title">3.1.1 Mean</span></a></li><li class="section"><a href="#chapter-43-section-2"><span class="toc-subsection-title">3.1.2 Median</span></a></li><li class="section"><a href="#chapter-43-section-3"><span class="toc-subsection-title">3.1.3 Mode</span></a></li><li class="section"><a href="#chapter-43-section-4"><span class="toc-subsection-title">3.1.4 Midrange</span></a></li><li class="section"><a href="#chapter-43-section-5"><span class="toc-subsection-title">3.1.5 Mean, Median and Mode in Histograms: Skewness</span></a></li><li class="section"><a href="#chapter-43-section-6"><span class="toc-subsection-title">3.1.6 Mean, Median and Mode in Distributions: Geometric Aspects</span></a></li></ul></li><li class="chapter standard"><a href="#chapter-slug-3-2-dispersion-variance-and-standard-deviation"><span class="toc-chapter-title">3.2 Dispersion: Variance and Standard Deviation</span></a></li><li class="chapter standard"><a href="#chapter-slug-3-3-z-score-z-transformation"><span class="toc-chapter-title">3.3 z-score / z-transformation</span></a></li><li class="chapter standard"><a href="#chapter-slug-3-4-spss-lesson-2-combining-variables-and-recoding"><span class="toc-chapter-title">3.4 SPSS Lesson 2: Combining variables and recoding</span></a></li><li class="chapter standard"><a href="#chapter-slug-3-5-rstudio-lesson-2-combining-variables-and-recoding"><span class="toc-chapter-title">3.5 RStudio Lesson 2: Combining variables and recoding</span></a></li><li class="part"><a href="#part-slug-4-probability-and-the-binomial-distributions">4. Probability and the Binomial Distributions</a></li><li class="chapter standard"><a href="#chapter-slug-4-1-probability"><span class="toc-chapter-title">4.1 Probability</span></a></li><li class="chapter standard"><a href="#chapter-slug-4-2-binomial-distribution"><span class="toc-chapter-title">4.2 Binomial Distribution</span></a><ul class="sections"><li class="section"><a href="#chapter-59-section-1"><span class="toc-subsection-title">4.2.1 Practical Binomial Distribution Examples</span></a></li></ul></li><li class="chapter standard"><a href="#chapter-slug-4-3-spss-lesson-3-combining-variables-advanced"><span class="toc-chapter-title">4.3 SPSS Lesson 3: Combining variables - advanced</span></a></li><li class="chapter standard"><a href="#chapter-slug-4-4-rstudio-lesson-3-combining-variables-advanced"><span class="toc-chapter-title">4.4 RStudio Lesson 3: Combining variables - advanced</span></a></li><li class="part"><a href="#part-slug-5-the-normal-distributions">5. The Normal Distributions</a></li><li class="chapter standard"><a href="#chapter-slug-5-1-discrete-versus-continuous-distributions"><span class="toc-chapter-title">5.1 Discrete versus Continuous Distributions</span></a></li><li class="chapter standard"><a href="#chapter-slug-5-2-the-normal-distribution-as-a-limit-of-binomial-distributions"><span class="toc-chapter-title">5.2 **The Normal Distribution as a Limit of Binomial Distributions</span></a></li><li class="chapter standard"><a href="#chapter-slug-5-3-normal-distribution"><span class="toc-chapter-title">5.3 Normal Distribution</span></a><ul class="sections"><li class="section"><a href="#chapter-73-section-1"><span class="toc-subsection-title">5.3.1 Computing Areas (Probabilities) under the standard normal curve</span></a></li></ul></li><li class="part"><a href="#part-slug-6-percentiles-and-quartiles">6. Percentiles and Quartiles</a></li><li class="chapter standard"><a href="#chapter-slug-6-1-discrete-data-percentiles-and-quartiles"><span class="toc-chapter-title">6.1 Discrete Data Percentiles and Quartiles</span></a></li><li class="chapter standard"><a href="#chapter-slug-6-2-finding-outliers-using-quartiles"><span class="toc-chapter-title">6.2 Finding Outliers Using Quartiles</span></a></li><li class="chapter standard"><a href="#chapter-slug-6-3-box-plots"><span class="toc-chapter-title">6.3 Box Plots</span></a></li><li class="chapter standard"><a href="#chapter-slug-6-4-robust-statistics"><span class="toc-chapter-title">6.4 Robust Statistics</span></a></li><li class="chapter standard"><a href="#chapter-slug-6-5-spss-lesson-4-percentiles"><span class="toc-chapter-title">6.5 SPSS Lesson 4: Percentiles</span></a></li><li class="chapter standard"><a href="#chapter-slug-6-6-rstudio-lesson-4-percentiles"><span class="toc-chapter-title">6.6 RStudio Lesson 4: Percentiles</span></a></li><li class="part"><a href="#part-slug-7-the-central-limit-theorem">7. The Central Limit Theorem</a></li><li class="chapter standard"><a href="#chapter-slug-7-1-using-the-normal-distribution-to-approximate-the-binomial-distribution"><span class="toc-chapter-title">7.1 Using the Normal Distribution to Approximate the Binomial Distribution</span></a></li><li class="chapter standard"><a href="#chapter-slug-7-2-the-central-limit-theorem"><span class="toc-chapter-title">7.2 The Central Limit Theorem</span></a></li><li class="part"><a href="#part-slug-8-confidence-intervals">8. Confidence Intervals</a></li><li class="chapter standard"><a href="#chapter-slug-8-1-confidence-intervals-using-the-z-distribution"><span class="toc-chapter-title">8.1 Confidence Intervals Using the z-Distribution</span></a></li><li class="chapter standard"><a href="#chapter-slug-8-2-bayesian-statistics"><span class="toc-chapter-title">8.2 **Bayesian Statistics</span></a></li><li class="chapter standard"><a href="#chapter-slug-8-3-the-t-distributions"><span class="toc-chapter-title">8.3 The t-Distributions</span></a></li><li class="chapter standard"><a href="#chapter-slug-8-4-proportions-and-confidence-intervals-for-proportions"><span class="toc-chapter-title">8.4 Proportions and Confidence Intervals for Proportions</span></a></li><li class="chapter standard"><a href="#chapter-slug-8-5-chi-squared-distribution"><span class="toc-chapter-title">8.5 Chi Squared Distribution</span></a></li><li class="part"><a href="#part-slug-9-hypothesis-testing">9. Hypothesis Testing</a></li><li class="chapter standard"><a href="#chapter-slug-9-1-hypothesis-testing-problem-solving-steps"><span class="toc-chapter-title">9.1 Hypothesis Testing Problem Solving Steps</span></a></li><li class="chapter standard"><a href="#chapter-slug-9-2-z-test-for-a-mean"><span class="toc-chapter-title">9.2 z-Test for a Mean</span></a><ul class="sections"><li class="section"><a href="#chapter-129-section-1"><span class="toc-subsection-title">9.2.1 What p-value is significant?</span></a></li></ul></li><li class="chapter standard"><a href="#chapter-slug-9-3-t-test-for-means"><span class="toc-chapter-title">9.3 t-Test for Means</span></a></li><li class="chapter standard"><a href="#chapter-slug-9-4-z-test-for-proportions"><span class="toc-chapter-title">9.4 z-Test for Proportions</span></a></li><li class="chapter standard"><a href="#chapter-slug-9-5-chi-squared-test-for-variance-or-standard-deviation"><span class="toc-chapter-title">9.5 Chi Squared Test for Variance or Standard Deviation</span></a></li><li class="chapter standard"><a href="#chapter-slug-9-6-spss-lesson-5-single-sample-t-test"><span class="toc-chapter-title">9.6 SPSS Lesson 5: Single Sample t-Test</span></a></li><li class="chapter standard"><a href="#chapter-slug-9-7-rstudio-lesson-5-single-sample-t-test"><span class="toc-chapter-title">9.7 RStudio Lesson 5: Single Sample t-Test</span> <span class="chapter-author">Osama Bataineh</span></a></li><li class="part"><a href="#part-slug-10-comparing-two-population-means">10. Comparing Two Population Means</a></li><li class="chapter standard"><a href="#chapter-slug-10-1-unpaired-z-test"><span class="toc-chapter-title">10.1 Unpaired z-Test</span></a></li><li class="chapter standard"><a href="#chapter-slug-10-2-confidence-interval-for-difference-of-means-large-samples"><span class="toc-chapter-title">10.2 Confidence Interval for Difference of Means (Large Samples)</span></a></li><li class="chapter standard"><a href="#chapter-slug-10-3-difference-between-two-variances-the-f-distributions"><span class="toc-chapter-title">10.3 Difference between Two Variances - the F Distributions</span></a></li><li class="chapter standard"><a href="#chapter-slug-10-4-unpaired-or-independent-sample-t-test"><span class="toc-chapter-title">10.4 Unpaired or Independent Sample t-Test</span></a><ul class="sections"><li class="section"><a href="#chapter-148-section-1"><span class="toc-subsection-title">10.4.1 General form of the t test statistic</span></a></li><li class="section"><a href="#chapter-148-section-2"><span class="toc-subsection-title">10.4.2 Two step procedure for the independent samples t test</span></a></li></ul></li><li class="chapter standard"><a href="#chapter-slug-10-5-confidence-intervals-for-the-difference-of-two-means"><span class="toc-chapter-title">10.5 Confidence Intervals for the Difference of Two Means</span></a></li><li class="chapter standard"><a href="#chapter-slug-10-6-spss-lesson-6-independent-sample-t-test"><span class="toc-chapter-title">10.6 SPSS Lesson 6: Independent Sample t-Test</span></a></li><li class="chapter standard"><a href="#chapter-slug-10-7-rstudio-lesson-6-independent-sample-t-test"><span class="toc-chapter-title">10.7 RStudio Lesson 6: Independent Sample t-Test</span></a></li><li class="chapter standard"><a href="#chapter-slug-10-8-paired-t-test"><span class="toc-chapter-title">10.8 Paired t-Test</span></a></li><li class="chapter standard"><a href="#chapter-slug-10-9-confidence-intervals-for-paired-t-tests"><span class="toc-chapter-title">10.9 Confidence Intervals for Paired t-Tests</span></a></li><li class="chapter standard"><a href="#chapter-slug-10-10-spss-lesson-7-paired-sample-t-test"><span class="toc-chapter-title">10.10 SPSS Lesson 7: Paired Sample t-Test</span></a></li><li class="chapter standard"><a href="#chapter-slug-10-11-rstudio-lesson-7-paired-sample-t-test"><span class="toc-chapter-title">10.11 RStudio Lesson 7: Paired Sample t-Test</span></a></li><li class="part"><a href="#part-slug-11-comparing-proportions">11. Comparing Proportions</a></li><li class="chapter standard"><a href="#chapter-slug-11-1-z-test-for-comparing-proportions"><span class="toc-chapter-title">11.1 z-Test for Comparing Proportions</span></a></li><li class="chapter standard"><a href="#chapter-slug-11-2-confidence-interval-for-the-difference-between-two-proportions"><span class="toc-chapter-title">11.2 Confidence Interval for the Difference between Two Proportions</span></a></li><li class="part"><a href="#part-slug-12-anova">12. ANOVA</a></li><li class="chapter standard"><a href="#chapter-slug-12-1-one-way-anova"><span class="toc-chapter-title">12.1 One-way ANOVA</span></a></li><li class="chapter standard"><a href="#chapter-slug-12-2-post-hoc-comparisons"><span class="toc-chapter-title">12.2 Post hoc Comparisons</span></a></li><li class="chapter standard"><a href="#chapter-slug-12-3-spss-lesson-9-one-way-anova"><span class="toc-chapter-title">12.3 SPSS Lesson 9: One-way ANOVA</span></a></li><li class="chapter standard"><a href="#chapter-slug-12-4-r-lesson-9-one-way-anova"><span class="toc-chapter-title">12.4 R Lesson 9: One-way ANOVA</span></a></li><li class="chapter standard"><a href="#chapter-slug-12-5-two-way-anova"><span class="toc-chapter-title">12.5 Two-way ANOVA</span></a></li><li class="chapter standard"><a href="#chapter-slug-12-6-spss-lesson-9-two-way-anova"><span class="toc-chapter-title">12.6 SPSS Lesson 9: Two-way ANOVA</span></a></li><li class="chapter standard"><a href="#chapter-slug-12-7-r-lesson-9-two-way-anova"><span class="toc-chapter-title">12.7 R Lesson 9: Two-way ANOVA</span></a></li><li class="chapter standard"><a href="#chapter-slug-12-8-higher-factorial-anova"><span class="toc-chapter-title">12.8 Higher Factorial ANOVA</span></a></li><li class="chapter standard"><a href="#chapter-slug-12-9-between-and-within-factors"><span class="toc-chapter-title">12.9 Between and Within Factors</span></a></li><li class="chapter standard"><a href="#chapter-slug-12-10-contrasts"><span class="toc-chapter-title">12.10 *Contrasts</span></a></li><li class="part"><a href="#part-slug-13-power">13. Power</a></li><li class="chapter standard"><a href="#chapter-slug-13-1-power"><span class="toc-chapter-title">13.1 Power</span></a></li><li class="part"><a href="#part-slug-14-correlation-and-regression">14. Correlation and Regression</a></li><li class="chapter standard"><a href="#chapter-slug-14-1-scatter-plots"><span class="toc-chapter-title">14.1 Scatter Plots</span></a></li><li class="chapter standard"><a href="#chapter-slug-14-2-correlation"><span class="toc-chapter-title">14.2 Correlation</span></a></li><li class="chapter standard"><a href="#chapter-slug-14-3-spss-lesson-10-scatterplots-and-correlation"><span class="toc-chapter-title">14.3 SPSS Lesson 10: Scatterplots and Correlation</span></a></li><li class="chapter standard"><a href="#chapter-slug-14-4-r-lesson-10-scatterplots-and-correlation"><span class="toc-chapter-title">14.4 R Lesson 10: Scatterplots and Correlation</span></a></li><li class="chapter standard"><a href="#chapter-slug-14-5-linear-regression"><span class="toc-chapter-title">14.5 Linear Regression</span></a></li><li class="chapter standard"><a href="#chapter-slug-14-6-r-squared-and-the-standard-error-of-the-estimate-of-y-prime"><span class="toc-chapter-title">14.6 r-squared and the Standard Error of the Estimate of y-prime</span></a></li><li class="chapter standard"><a href="#chapter-slug-14-7-confidence-interval-for-y-prime-at-a-given-x"><span class="toc-chapter-title">14.7 Confidence Interval for y-prime at a Given x</span></a></li><li class="chapter standard"><a href="#chapter-slug-14-8-spss-lesson-11-linear-regression"><span class="toc-chapter-title">14.8 SPSS Lesson 11: Linear Regression</span></a></li><li class="chapter standard"><a href="#chapter-slug-14-9-r-lesson-11-linear-regression"><span class="toc-chapter-title">14.9 R Lesson 11: Linear Regression</span></a></li><li class="chapter standard"><a href="#chapter-slug-14-10-multiple-regression"><span class="toc-chapter-title">14.10 Multiple Regression</span></a></li><li class="chapter standard"><a href="#chapter-slug-14-11-spss-lesson-12-multiple-regression"><span class="toc-chapter-title">14.11 SPSS Lesson 12: Multiple Regression</span></a></li><li class="chapter standard"><a href="#chapter-slug-14-12-r-lesson-12-multiple-regression"><span class="toc-chapter-title">14.12 R Lesson 12: Multiple Regression</span></a></li><li class="part"><a href="#part-slug-15-chi-squared-goodness-of-fit-and-contingency-tables">15. Chi Squared: Goodness of Fit and Contingency Tables</a></li><li class="chapter standard"><a href="#chapter-slug-15-1-goodness-of-fit"><span class="toc-chapter-title">15.1 Goodness of Fit</span></a></li><li class="chapter standard"><a href="#chapter-slug-15-2-contingency-tables"><span class="toc-chapter-title">15.2 Contingency Tables</span></a></li><li class="chapter standard"><a href="#chapter-slug-15-3-spss-lesson-13-proportions-goodness-of-fit-and-contingency-tables"><span class="toc-chapter-title">15.3 SPSS Lesson 13: Proportions, Goodness of Fit, and Contingency Tables</span></a></li><li class="chapter standard"><a href="#chapter-slug-15-4-r-lesson-13-proportions-goodness-of-fit-and-contingency-tables"><span class="toc-chapter-title">15.4 R Lesson 13: Proportions, Goodness of Fit, and Contingency Tables</span></a></li><li class="part"><a href="#part-slug-16-non-parametric-tests">16. Non-parametric Tests</a></li><li class="chapter standard"><a href="#chapter-slug-16-1-how-to-rank-data"><span class="toc-chapter-title">16.1 How to Rank Data</span></a></li><li class="chapter standard"><a href="#chapter-slug-16-2-median-sign-test"><span class="toc-chapter-title">16.2 Median Sign Test</span></a></li><li class="chapter standard"><a href="#chapter-slug-16-3-paired-sample-sign-test"><span class="toc-chapter-title">16.3 Paired Sample Sign Test</span></a></li><li class="chapter standard"><a href="#chapter-slug-16-4-two-sample-wilcoxon-rank-sum-test-mann-whitney-u-test"><span class="toc-chapter-title">16.4 Two Sample Wilcoxon Rank Sum Test (Mann-Whitney U Test)</span></a></li><li class="chapter standard"><a href="#chapter-slug-16-5-paired-wilcoxon-signed-rank-test"><span class="toc-chapter-title">16.5 Paired Wilcoxon Signed Rank Test</span></a></li><li class="chapter standard"><a href="#chapter-slug-16-6-kruskal-wallis-test-h-test"><span class="toc-chapter-title">16.6 Kruskal-Wallis Test (H Test)</span></a></li><li class="chapter standard"><a href="#chapter-slug-16-7-spearman-rank-correlation-coefficient"><span class="toc-chapter-title">16.7 Spearman Rank Correlation Coefficient</span></a></li><li class="chapter standard"><a href="#chapter-slug-16-8-spss-lesson-14-non-parametric-tests"><span class="toc-chapter-title">16.8 SPSS Lesson 14: Non-parametric Tests</span></a></li><li class="chapter standard"><a href="#chapter-slug-16-9-r-lesson-14-non-parametric-tests"><span class="toc-chapter-title">16.9 R Lesson 14: Non-parametric Tests</span></a></li><li class="chapter standard"><a href="#chapter-slug-16-10-runs-test"><span class="toc-chapter-title">16.10 Runs Test</span></a></li><li class="part"><a href="#part-slug-17-overview-of-the-general-linear-model">17. Overview of the General Linear Model</a></li><li class="chapter standard"><a href="#chapter-slug-17-1-linear-algebra-basics"><span class="toc-chapter-title">17.1 Linear Algebra Basics</span></a></li><li class="chapter standard"><a href="#chapter-slug-17-2-the-general-linear-model-glm-for-univariate-statistics"><span class="toc-chapter-title">17.2 The General Linear Model (GLM) for Univariate Statistics</span></a></li><li class="back-matter miscellaneous"><a href="#back-matter-appendix-tables"><span class="toc-chapter-title">Appendix: Tables</span></a></li></ul></div>
<div class="front-matter introduction" id="front-matter-aboutthisbook" title="About This Book"><div class="front-matter-title-wrap"><h3 class="front-matter-number">1</h3><h1 class="front-matter-title">About This Book</h1></div><div class="ugc front-matter-ugc">
<p><em>Introduction to Applied Statistics for Psychology Students,</em> by Gordon E. Sarty (Professor, Department of Psychology, University of Saskatchewan) began as a textbook published in PDF format, in various editions between 2014-2017. The book was written to meet the needs of University of Saskatchewan psychology students at the undergraduate (PSY 233, PSY 234) and graduate (PSY 807) levels.</p> <p>In 2019-2020, funding was provided through the Gwenna Moss Centre for Teaching and Learning, along with technical assistance from the Distance Education Unit, to update and adapt this book, making it more widely available in an easy-to-use and more adaptable digital (Pressbooks) format. This update included an expansion to add chapters on using RStudio, as an alternative to SPSS. The update also made revisions so that the book could be published with a license appropriate for <strong>open educational resources (OER)</strong>.</p> <p><strong>OERs</strong>&nbsp;are defined as&nbsp;“teaching, learning, and research resources that reside in the public domain or have been released under an intellectual property license that permits their free use and re-purposing by others” (<a href="http://www.hewlett.org/programs/education/open-educational-resources" target="_blank" rel="noopener noreferrer">Hewlett Foundation</a>). This textbook and other OERs like it are openly licensed using a <a href="https://creativecommons.org/licenses/">Creative Commons&nbsp;license</a>, and are offered in various digital and e-book formats free of charge.</p> <p>Printed editions of this book can be obtained for a nominal fee through the University of Saskatchewan bookstore.</p> <h1 id="front-matter-4-section-1" class="section-header">Licensing and Copyright</h1> <h2>Licensing</h2> <p>Except where otherwise noted (see notes below on the copyright for SPSS and R screenshots), the content of this book is licensed under a <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="license">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>. Under the terms of the CC BY-NC-SA license, you are free to copy, redistribute, modify or adapt this book as long as you provide attribution. You may not use the material for commercial purposes. If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original. Additionally, if you redistribute this textbook, in whole or in part, in either a print or digital format, then you must retain on every physical and/or electronic page an attribution to the original author(s).</p> <h2>Copyright: SPSS Screenshots</h2> <p>SPSS Inc. was acquired by IBM in October, 2009. Reprints of images (i.e., screenshots) from IBM® SPSS® Statistics software (“SPSS”) appear courtesy of International Business Machines Corporation, © International Business Machines Corporation. IBM, the IBM logo, ibm.com, and SPSS are trademarks or registered trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at “IBM Copyright and trademark information” at <a href="http://www.ibm.com/legal/copytrade.shtml" target="_blank" rel="noopener noreferrer">www.ibm.com/legal/copytrade.shtml</a>. This consolidated credit paragraph and corresponding copyright notices must be listed on a title page or other conveniently viewable location where any reprints of this material appear. Any repurposing of the material in this book should also follow these same requirements.</p> <p>The University of Saskatchewan Open Press obtained specific permissions from IBM to reprint IBM SPSS Statistics screen images for the purposes of publishing this book, according to the conditions outlined here. Individuals who wish to use, duplicate, or redistribute any of these images are advised to do so in compliance with copyright law or to contact IBM directly for permissions: <a href="http://www.ibm.com/contact/submissions/extsub.nsf/copyright" target="_blank" rel="noopener noreferrer">http://www.ibm.com/contact/submissions/extsub.nsf/copyright</a>. If any derivative version of this book (i.e., remixed, transformed, modified, or built-upon version) is created, additional copyright permission from IBM should be acquired for including any of their images in the derivative version before it is released.</p> <h2>Copyright: RStudio Screenshots</h2> <p>Reprints of images (i.e., screenshots) from RStudio are © the R Foundation, from <a href="http://www.r-project.org" target="_blank" rel="noopener noreferrer">http://www.r-project.org</a>, and may be reproduced for any purpose provided they are credited to the R statistical software using an attribution such as this.</p> <h2>Cover Image</h2> <p>Cover image by Ron Borowsky and Gordon Sarty, used for public talks and released with a CC BY-NC-SA license. The statistical methods that you will learn in this course were necessary to produce the functional MRI (fMRI) brain maps illustrated on the cover. In particular, a one-way ANOVA technique was used to detect the brain activations shown in the images<span class="footnote">Sarty GE, Borowsky R. “Functional MRI Activation Maps from Empirically Defined Curve Fitting”, <em>Concepts in Magnetic Resonance Part B (Magnetic Resonance Engineering)</em>, 24B, 46-55, 2005.</span>. The study shown was designed to reveal ventral and dorsal stream processing for ‘what’, ‘where’ and ‘how’ interpretations of words and pictures presented to the experimental subjects while they were in the Magnetic Resonance Imager (MRI)<span class="footnote">Borowsky R, Loehr J, Friesen CK, Kraushaar G, Kingstone A, Sarty GE, “Modularity and Intersection of ‘What’, ‘Where’, and ‘How’ Processing of Visual Stimuli: A New Method of fMRI Localization”, <em>Brain Topography</em>, 18, 67-75, 2005.</span>.</p> 
</div></div>
<div class="front-matter miscellaneous post-introduction" id="front-matter-acknowledgements" title="Acknowledgements"><div class="front-matter-title-wrap"><h3 class="front-matter-number">2</h3><h1 class="front-matter-title">Acknowledgements</h1></div><div class="ugc front-matter-ugc"><p>A sincere thank you must go out to the following University of Saskatchewan personnel, in acknowledgement of their support and contributions to this updated open textbook:</p> <ul><li>Julie Maier (Instructional Designer, Distance Education Unit), for technical assistance with Pressbooks, OER and licensing guidance, editing and formatting assistance, developing resources for statistical software access, and project coordination.</li> <li>Heather Ross (Educational Development Specialist, Gwenna Moss Centre for Teaching and Learning), for support with obtaining the funding that allowed this project to move forward.</li> <li>Kate Langrell (Copyright Coordinator, University of Saskatchewan Library), for answering copyright questions, particularly regarding the use of software screenshots and data files.</li> <li>Naveed Ahmed (Research Associate, Department of Agriculture and Resource Economics), for content updates and updated data sets for SPSS Lessons 1 to 7.</li> <li>Osama Bataineh (Lab Coordinator &amp; Sessional Lecturer, Department of Mathematics &amp; Statistics), for major content editing, editing the SPSS Lessons and writing the new RStudio Lessons throughout this book, devising and compiling the complete collection of finished data sets, porting material into Pressbooks, LaTeX refinement, and &#8211; last but not least &#8211; piloting this new version of the textbook with his PSY 233 students for the first time in Spring 2020.</li> </ul> </div></div>
<div class="front-matter miscellaneous post-introduction" id="front-matter-statistical-software" title="Statistical Software Used in this Book"><div class="front-matter-title-wrap"><h3 class="front-matter-number">3</h3><h1 class="front-matter-title">Statistical Software Used in this Book</h1></div><div class="ugc front-matter-ugc">
 <p>Throughout this book you will find <strong>Lessons</strong> that will take you through procedures to manipulate and analyze given data using two statistical software applications:</p> <ol><li>IBM® SPSS® Statistics software (referred to more simply as “SPSS”)</li> <li>RStudio, from The R Project for Statistical Computing.</li> </ol> <h1 id="front-matter-831-section-1" class="section-header">Accessing SPSS and RStudio Through Your School</h1> <p>See the page <a href="#front-matter-university-of-saskatchewan-software-access" target="_blank" rel="noopener noreferrer">University of Saskatchewan: Software Access</a> for more details on how to do this.</p> <h1 id="front-matter-831-section-2" class="section-header">Downloading SPSS and RStudio</h1> <h2>SPSS Statistics</h2> <p>SPSS Statistics is <strong><em>not </em></strong>a free program.</p> <p>A trial version of SPSS can be downloaded at: <a href="https://www.ibm.com/analytics/spss-trials" target="_blank" rel="noopener noreferrer">https://www.ibm.com/analytics/spss-trials</a></p> <p>If you really want to download the program (not in a trial version), see some information on student rates at: <a href="https://www.ibm.com/analytics/academic-statistical-software" target="_blank" rel="noopener noreferrer">https://www.ibm.com/analytics/academic-statistical-software</a>; however, consider carefully how necessary this is before you spend any of your own money, and look carefully at any terms of licensing (i.e., some licenses may only give you access for a set number of months). Unless you are in a position where you can get an employer or research supervisor to pay for it, you may want to stick with the cost-free options available to you.</p> <h2>RStudio</h2> <p>A free, open-source, non-commercial desktop version of RStudio can be downloaded at: <a href="https://rstudio.com/products/rstudio/download/" target="_blank" rel="noopener noreferrer">https://rstudio.com/products/rstudio/download/</a></p> <h1 id="front-matter-831-section-3" class="section-header">Why does this book cover both SPSS and RStudio?</h1> <p>While both SPSS and RStudio are powerful analytical tools, they operate differently and each have their pros and cons.</p> <p>The history of SPSS Statistics goes back to the 1960s, and for many years it has been a standard for students and researchers working in the social sciences (SPSS, in fact, originally stood for&nbsp;<em>Statistical Package for the Social Sciences</em>, but was&nbsp;later changed to&nbsp;<em>Statistical Product and Service Solutions</em>). It is still an extremely popular and commonly-used package, and one that you are likely to find is used in labs and workplaces when you start to search for research and employment positions. For this reason, it is still essential for psychology graduates to have a solid grasp of how to use this program.</p> <p>The more-recent R Project for Statistical Computing (which put together RStudio) offers a free, open-source option. This means that anybody can access the software, and its community of users and developers can contribute to improving and updating the software. While it is increasing in popularity, it has yet to reach the ubiquitousness of SPSS.</p> <h2>So which <strong>Lessons</strong> should you do? SPSS or RStudio?</h2> <p>Well, first ask your instructor — if they want you to submit assignments that utilize a particular program, or if they are likely to ask you to interpret outputs from a particular program on your examinations, then you’d better complete the <strong>Lessons</strong> for that program!</p> <p>Second, consider what skills you want to develop. Employers and/or supervisors are still very likely to expect psychology graduates to have SPSS skills. Would it benefit you, or set you apart from other research/employment candidates, to have a good grasp of both SPSS and RStudio? Do both sets of <strong>Lessons</strong> and practice using each program.</p> <p>If you are a graduate student or somebody with a bit more freedom, who is just looking for some help analyzing data to support their research, then you could choose either program. Trying both for a little while might give you a good sense of which you prefer and why, or which might work better for your particular research situations.</p> 
</div></div>
<div class="front-matter miscellaneous post-introduction" id="front-matter-university-of-saskatchewan-software-access" title="University of Saskatchewan: Software Access"><div class="front-matter-title-wrap"><h3 class="front-matter-number">4</h3><h1 class="front-matter-title">University of Saskatchewan: Software Access</h1></div><div class="ugc front-matter-ugc">
 <h1 id="front-matter-1251-section-1" class="section-header">On-Campus Lab Access</h1> <p>If you are a University of Saskatchewan student working on-campus, all computers in the Arts &amp; Science computer labs should have both SPSS and RStudio installed. See <a href="https://artsandscience.usask.ca/it/labs/" target="_blank" rel="noopener noreferrer">https://artsandscience.usask.ca/it/labs/</a> for a list of lab locations for the Saskatoon campus.</p> <h1 id="front-matter-1251-section-2" class="section-header">Remote / Off-Campus Access</h1> <h2><strong>Virtual Lab</strong></h2> <p>If you are a University of Saskatchewan student working remotely (off-campus), you can access both SPSS and RStudio via the <strong>Virtual Lab</strong> at&nbsp;<a href="http://vlab.usask.ca/" target="_blank" rel="noopener noreferrer">http://vlab.usask.ca/</a>.</p> <ul><li>Log in with your NSID.</li> <li>Click “All” to expand the menu, then click on “Common U of S”.</li> <li>Select “SPSS 26” (for SPSS) or “RStudio” (for R) to launch either program within the Virtual Lab.</li> </ul> <p>More information on the Virtual Computer Lab (VLab) can be found here: <a href="https://wiki.usask.ca/x/lozDTg" target="_blank" rel="noopener noreferrer">https://wiki.usask.ca/x/lozDTg</a></p> <p><strong>IMPORTANT NOTE:</strong> In order to open any of the given <a href="#front-matter-data-sets" target="_blank" rel="noopener noreferrer">Data Sets</a> (.sav files) in the Virtual Lab, they first need to be added to your <strong>Cabinet</strong> drive. See the next sections for details on how to upload them.</p> <h2>Accessing your Cabinet Drive</h2> <p>The following links will guide you through gaining access your <strong>Cabinet</strong> drive so that you can then add files to it. Choose from the following options depending on if you are using Windows or Mac.</p> <p>Ensure you follow the steps for connecting to&nbsp;<strong>Cabinet</strong>, specifically.</p> <p>Try the steps without a VPN first. If you have issues, set up the <strong>VPN (Virtual Private Network)</strong> and try that way. The steps for setting up the VPN can be found here: <a href="https://wiki.usask.ca/x/0YnDTg" target="_blank" rel="noopener noreferrer">https://wiki.usask.ca/x/0YnDTg</a></p> <h3>For Windows</h3> <ul><li>How do I map a network drive like Cabinet, Jade or Datastore on Windows?: <a href="https://wiki.usask.ca/x/_4nDTg" target="_blank" rel="noopener noreferrer">https://wiki.usask.ca/x/_4nDTg</a></li> </ul> <h3>For Mac</h3> <ul><li>How do I map a network drive like Cabinet, Jade or Datastore on Windows?: <a href="https://wiki.usask.ca/x/_4nDTg" target="_blank" rel="noopener noreferrer">https://wiki.usask.ca/x/_4nDTg</a></li> </ul> <ol><li style="list-style-type: none;"></li> </ol> <h2><strong>Adding Files to your Cabinet Drive</strong></h2> <p>First, download all of the .sav files from the <a href="#front-matter-data-sets" target="_blank" rel="noopener noreferrer">Data Sets</a> page onto your computer.</p> <p>Once you have access to your&nbsp;<strong>Cabinet</strong>&nbsp;drive, choose a designated folder within this drive where you will add the .sav files you want to work with; you may wish to create a new folder for this purpose, with a title like, e.g., <strong>PSY 233 files</strong>.</p> <p>From there you can copy or move the .sav files from your computer into your designated <strong>Cabinet</strong> folder.</p> <p>Then, they will be available for you to access them within the <strong>Virtual Lab</strong>.</p> <h1 id="front-matter-1251-section-3" class="section-header">USask ICT Help</h1> <p>Still stuck? Visit <a href="https://www.usask.ca/ict/help-support/it-support-services.php" target="_blank" rel="noopener noreferrer">https://www.usask.ca/ict/help-support/it-support-services.php</a> for more one-on-one assistance.</p> 
</div></div>
<div class="front-matter miscellaneous post-introduction" id="front-matter-data-sets" title="Data Sets"><div class="front-matter-title-wrap"><h3 class="front-matter-number">5</h3><h1 class="front-matter-title">Data Sets</h1></div><div class="ugc front-matter-ugc"><p><span style="text-align: initial; font-size: 1em;">The dataset files listed here, which are used in the <strong>SPSS Lessons</strong> and <strong>RStudio Lessons</strong> of this book, were created by Osama Bataineh. They are released with a <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank" rel="noopener noreferrer">CC BY-NC-SA 4.0</a> license.</span></p> <p><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/04/HyperactiveChildren.sav">HyperactiveChildren.sav</a></p> <p><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/04/Caregiver.sav">Caregiver.sav</a></p> <p><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/05/HeightLatency.sav">HeightLatency.sav</a></p> <p><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/05/AgeSmoker.sav">AgeSmoker.sav</a></p> <p><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/04/HeadCircum.sav">HeadCircum.sav</a></p> <p><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/04/pHLevel.sav">pHLevel.sav</a></p> <p><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/04/Methadone.sav">Methadone.sav</a></p> <p>..</p> <p><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/04/ActivityValue.sav">ActivityValue.sav</a></p> <p>&nbsp;</p> <p>&nbsp;</p> </div></div>
<div class="part " id="part-main-body"><div class="part-title-wrap"><h3 class="part-number">I</h3><h1 class="part-title">1. Background and Motivation</h1></div><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-chapter-1" title="1.1 Overview"><div class="chapter-title-wrap"><h3 class="chapter-number">1</h3><h2 class="chapter-title">1.1 Overview</h2></div><div class="ugc chapter-ugc">
<h1 id="chapter-5-section-1" class="section-header">1.1.1 Textbook Layout, * and ** Symbols Explained</h1> <p>This textbook has been designed for use in the statistics classes for psychology I teach at the University of Saskatchewan. It is designed to replace the expensive, and inadequate, texts that have traditionally been used for these classes.</p> <p>The courses covered by this text are:</p> <ol><li>Univariate Statistics I: Chapters 1 to 10 (Psy 233, undergraduate course)</li> <li>Univariate Statistics II: Chapters 11 to 17 (Psy 234, undergraduate course)</li> <li>Multivariate Statistics: Future project (Psy 807, graduate course)</li> </ol> <p>Since these courses are applied statistics courses, students do not need to understand the derivations of the formulae and procedures. So these aspects, the “cookbook” approach, is what you need to learn to pass the applied statistics courses.</p> <p><strong>Sections Marked with ** : </strong>But, in the sections marked with a <strong>**</strong> there are detailed derivations for those who don’t want to believe in magic. Most psychology students will want to skip the <strong>**</strong> sections.</p> <p><strong>Sections Marked with * : </strong>Other sections are marked with a <strong>*</strong>; those sections contain applied statistics material that is not part of the course but is material that an experimental psychology student has a good chance of needing in experimental courses and research projects. (The graduate course Psy 805 is a review of Psy 233/234 with the additional <strong>*</strong> sections covered — so this text might also be used for Psy 805.)</p> <p>Psychology students at the University of Saskatchewan are required to learn how to use the statistics program SPSS. So “Lessons” for learning SPSS are included included throughout the text, with RStudio Lessons as an alternative using a different program.</p> <p>For Univariate Statistics I, the class material is organized in 3 blocks:</p> <ul><li>Block 1 is an introduction to the basic tools of statistics and probability — Chapters 1 to 6.</li> <li>Block 2 gets you into the ideas of hypothesis testing — Chapter 9.</li> <li>Block 3 is material on one- and two-sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-tests — Chapters 9 and 10.</li> </ul> <h1 id="chapter-5-section-2" class="section-header">1.1.2 Intro to Univariate Statistics</h1> <p>So, to begin the course material proper, we may identify two “kinds” of statistics:</p> <ol><li><strong>Descriptive Statistics</strong>: The presentation, organization and description of data. (Graphs, means, standard deviations, etc.) Block 1 material is primarily about descriptive statistics. Descriptive statistics lead to ideas about <em>probability</em> – we will cover probabilities as given by functions known as the <em>binomial distribution</em> and the <em>normal distribution</em>.</li> <li><strong>Inferential Statistics</strong>: The use of <em>probability</em> to infer things about a <em>population</em> from a <em>sample</em>&nbsp;through the use of <em style="orphans: 1; text-align: initial; font-size: 1em;">hypothesis testing</em><span style="orphans: 1; text-align: initial; font-size: 1em;">. </span>Why do we need inferential statistics? Because it is usually impossible to measure (poll) an entire population.</li> </ol> <p>The goal of Univariate Statistics I is to understand inferential statistics as embodied in the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-tests. With blocks 2 and 3 we will build up the background for, and then learn 3 kinds of “<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-tests” to infer means in populations. To foreshadow, let’s take a look at a simple example.&nbsp;Say we are interested in people’s heights. Let’s look at three situations, corresponding to the three types of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-tests we will learn.</p> <ol type="i"><li><em>One sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test</em>. The situation is as illustrated in Figure 1.1.</li> </ol> <div class="wp-caption aligncenter" id="attachment_313" aria-describedby="caption-attachment-313" style="width: 500px"><img class="wp-image-313" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig1-eps-converted-to.png" alt="" width="500" height="276" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig1-eps-converted-to.png 750w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig1-eps-converted-to-300x166.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig1-eps-converted-to-65x36.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig1-eps-converted-to-225x124.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig1-eps-converted-to-350x193.png 350w" /><div class="wp-caption-text" id="caption-attachment-313">Figure 1.1: <em>One sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test</em></div></div> <p style="padding-left: 40px;">The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test will tell you when you may conclude that:</p> <p class="ql-center-displayed-equation" style="line-height: 15px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0f4ba940e474adab4c38bad1a294742d_l3.svg" height="15" width="203" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \mu \hspace{.25in}= \hspace{.25in} x_{0} \hspace{.25in} = \hspace{.25in} \bar{x} \]" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;"></p><p class="ql-center-picture"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-94f8919e22d75d3fe09e32e00fdc67ee_l3.svg" height="77" width="239" class="ql-img-picture quicklatex-auto-format" alt="Rendered by QuickLaTeX.com" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;">Here the population could be the height of 10 year old children in Saskatchewan. The quantity <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> is the actual average height of 10 year old kids in Saskatchewan. You could, in principle, measure all the 10 year olds in Saskatchewan but, in practice you can’t. Even if you spent the time finding them all and measuring their heights with a tape measure, they will be growing while you measure them all. It’s generally impossible to measure a population in practice for some reason. Practically, we can only measure a small <em>sample</em> of children from the population. That sample will have a mean that we denote with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x}" title="Rendered by QuickLaTeX.com" height="11" width="11" style="vertical-align: 0px;" />. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test is a hypothesis test in which we compare the sample mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x}" title="Rendered by QuickLaTeX.com" height="11" width="11" style="vertical-align: 0px;" /> to a hypothetical mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20bbf7cce56becf3ead8d7b10e74cb29_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{0}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /> and conclude with a probabilistic inference about <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" />.</p> <ol start="2" type="i"><li><em>Two sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test</em>. The situation is as illustrated in Figure 1.2.</li> </ol> <p style="padding-left: 40px;">The t-test will tell you when you can believe that</p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 12px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf62edc6763dc183267bf2e6bc10725e_l3.svg" height="12" width="60" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \mu_1 = \mu_2 \]" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;">on the basis that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad81f2dd38ff2ebf4b20cb44f9b8ef3d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}_1 \cong \bar{x}_2" title="Rendered by QuickLaTeX.com" height="16" width="58" style="vertical-align: -4px;" />. (The symbol <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fea8c3c84b1d328d15e1b7b6c7ee7450_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cong" title="Rendered by QuickLaTeX.com" height="11" width="13" style="vertical-align: 1px;" /> means “approximately equal to”.)</p> <div class="wp-caption aligncenter" id="attachment_314" aria-describedby="caption-attachment-314" style="width: 600px"><img class="wp-image-314" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig2-eps-converted-to.png" alt="" width="600" height="333" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig2-eps-converted-to.png 803w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig2-eps-converted-to-300x166.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig2-eps-converted-to-768x426.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig2-eps-converted-to-65x36.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig2-eps-converted-to-225x125.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig2-eps-converted-to-350x194.png 350w" /><div class="wp-caption-text" id="caption-attachment-314">Figure 1.2: <em>Two sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test</em></div></div> <p style="padding-left: 40px;">Here the two populations could be 10 year olds (population 1) and 11 year olds (population 2) in Saskatchewan. You might measure the two populations to get some idea about how much 10 year old kids in Saskatchewan grow in one year. The two sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test will give you information on the difference of the average heights in the population, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-72a6429fac6b10e85f12671ab589a21b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu_{1} - \mu_{2}" title="Rendered by QuickLaTeX.com" height="12" width="58" style="vertical-align: -4px;" /> on the basis of the difference of the means of small samples that you take from each population, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f8216afdde10d8710f2201494670679_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x}_{1} - \overline{x}_{2}" title="Rendered by QuickLaTeX.com" height="15" width="57" style="vertical-align: -4px;" />.</p> <ol start="3" type="i"><li><em>Paired <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test</em>. The situation is as illustrated in Figure 1.3.</li> </ol> <p style="padding-left: 40px;">Say we want to know how fast a population grows in 1-year (e.g. pop = 10 year old kids). You can do the two-sample test with two separate populations but if you want to know how the environment affected the growth of the children (maybe you are concerned that they don’t get enough to eat) then the two-sample test is only an approximation. The genetic composition, the natural ability to grow, may be different in the two separate populations. To get at the effect of the environment, without the measurements being confounded by individual differences, we would take a sample of 10 year old kids from the population now and measure their heights. Then we wait a year and measure the height of the same sample of now 11 year old kids. Then we combine the two samples of data into one data sample of differences. The Paired <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test will tell you if the average of differences (in heights) is zero or not.</p> <div class="wp-caption aligncenter" id="attachment_315" aria-describedby="caption-attachment-315" style="width: 600px"><img class="wp-image-315" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig3-eps-converted-to.png" alt="" width="600" height="461" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig3-eps-converted-to.png 887w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig3-eps-converted-to-300x230.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig3-eps-converted-to-768x590.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig3-eps-converted-to-65x50.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig3-eps-converted-to-225x173.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig3-eps-converted-to-350x269.png 350w" /><div class="wp-caption-text" id="caption-attachment-315">Figure 1.3: <em>Paired <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test</em></div></div> 
</div></div>
<div class="chapter standard" id="chapter-slug-1-2-basic-definitions" title="1.2 Basic Definitions"><div class="chapter-title-wrap"><h3 class="chapter-number">2</h3><h2 class="chapter-title">1.2 Basic Definitions</h2></div><div class="ugc chapter-ugc">
<p><strong>Data</strong> : The numbers we collect.&nbsp; (Note the word data is plural.&nbsp; Datum is singular.)&nbsp; Data may be grouped into sets, hence <em>data set</em>.</p> <p><strong>Variable</strong> : A mathematical term used to denote something that can take on a range of <em>values</em>. There are important two types of variables :</p> <ol type="i"><li><strong>Independent variable</strong> (IV) : You set the value, a.k.a. <em>explanatory variable</em>.</li> <li><span style="font-size: 1em;"><strong>Dependent variable</strong> (DV) : Value set (generally caused) by the independent variable, a.k.a. <em>outcome variable</em>. See Figure 1.4.</span></li> </ol> <div><div class="wp-caption aligncenter" id="attachment_336" aria-describedby="caption-attachment-336" style="width: 420px"><img class="wp-image-336" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig4png-300x108.jpg" alt="" width="420" height="151" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig4png-300x108.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig4png-65x23.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig4png-225x81.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig4png-350x126.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig4png.jpg 586w" /><div class="wp-caption-text" id="caption-attachment-336">Figure 1.4: In the equation of a line, y is the dependent variable, x is the independent variable.</div></div> </div> <p><strong>Random Variable</strong> : A dependent variable with random noise added. Value given by a <em>stochastic process</em>. We will only refer to random variables when discussing the theoretical relationship between probability distributions. Random variables, which we will denote with capital letters like <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d4ee28752517d6062a3ca0314890342d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="X" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: 0px;" />, are defined by their probability distribution. A stochastic process produces values that form a probability distribution if you allow the process that generates their values run for long enough.</p> <p><span style="text-decoration: underline;"><strong>Note</strong></span> : Data are frequently called “variables” in anticipation of how they will be used. The software program SPSS uses that convention.</p> <h1 id="chapter-31-section-1" class="section-header"><strong>1.2.1&nbsp; Types of Data (important!)</strong></h1> <p><strong>Qualitative variable</strong> : described by a word, e.g. gender with “values” male or female.&nbsp; Qualitative variables are converted to <em>discrete quantitative variables</em> before analysis (e.g. male = 1, female = 2). In SPSS, you need to assign discrete numbers to qualitative variables in the “Values” column in the “Variable View” screen.</p> <p><strong>Quantitative variable</strong> : two types :</p> <ol type="i"><li>&nbsp;<strong><em>Discrete variable </em></strong>: integer valued. In mathematical symbols <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-192557a1801849f8ef19298d141a8259_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x \in \mathbb{Z}" title="Rendered by QuickLaTeX.com" height="13" width="44" style="vertical-align: -1px;" /> (read “the variable <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> belongs to [the set symbol <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-478c7dbb76fc8e5b0b52edad79847b31_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\in" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: -1px;" /> means “belongs to”] the set of integers <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e1ac530f2a83951115df3e0daa67b801_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mathbb{Z}" title="Rendered by QuickLaTeX.com" height="12" width="12" style="vertical-align: 0px;" />”). e.g. -2, -1, 0, 1, 2, 3, etc.</li> <li><em><strong>Continuous variable</strong></em> : real valued (essentially any number). In mathematical symbols <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5dd56a8e9c5e12a00cda4c65de181936_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x \in \mathbb{R}" title="Rendered by QuickLaTeX.com" height="13" width="45" style="vertical-align: -1px;" /> (read “the variable <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> belongs to the set of real numbers <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a6e421454947c585b8fb5ae10299f873_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mathbb{R}" title="Rendered by QuickLaTeX.com" height="12" width="13" style="vertical-align: 0px;" />”). Geometrically, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a6e421454947c585b8fb5ae10299f873_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mathbb{R}" title="Rendered by QuickLaTeX.com" height="12" width="13" style="vertical-align: 0px;" /> is the number line.</li> </ol> <p><span style="text-decoration: underline;"><strong>Note</strong></span> : Continuous variables can be converted to discrete variables by <em>grouping</em> :</p> <p style="padding-left: 40px;">heights <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f3a9d6292d83e8712327344adf95f519_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\leq" title="Rendered by QuickLaTeX.com" height="15" width="12" style="vertical-align: -3px;" /> 5 ft = “short” (group value = 1)</p> <p style="padding-left: 40px;">heights <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6a5598f6c52dfad4d548aabcf09fbca4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" />" title="Rendered by QuickLaTeX.com" height="11" width="12" style="vertical-align: 0px;"&gt; 5 ft = “tall” (group value = 2)</p> <p><em>Groups</em> are also known as <em>classes</em>. We will be spending time defining classes in Chapter 2. Identifying what type of variable you data is will be the best way for you to decide what statistical test you need after you have learned and understood a number of different tests.</p> <h1 id="chapter-31-section-2" class="section-header"><strong>1.2.2 Measurement Scales (avoid this!)</strong></h1> <p>Some texts, and the SPSS helper program (although I have never tried it), attempt to classify data into “scales” that try to go somewhat beyond the integers and real numbers. I don’t think such classification is particularly useful and recommend that you avoid such classification. Nevertheless, it exists, so we will take a very quick look at such scales. (There is no agreement about their definitions from source to source.)</p> <p>One textbook that I used for a Univariate Statistics class for many years<span class="footnote">Bluman AG, Elementary Statistics: A Step-by-Step Approach, numerous editions, McGraw-Hill Ryerson, circa 2005.</span> lists 4 types of scales :</p> <ol type="i"><li><span style="font-size: 1em;">nominal : discrete categories with no order (e.g. profession or gender) – qualitative.</span></li> <li>ordinal : discrete categories with order (e.g. grades, A, B, C <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c964c2dc86f5d410f13e592117c5ec06_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\ldots" title="Rendered by QuickLaTeX.com" height="2" width="19" style="vertical-align: 0px;" />) – qualitative.</li> <li><span style="font-size: 1em;">interval : quantitative measure but no zero: ratios make no sense (e.g. temperature – makes no sense to say that one day was twice as hot as another day).</span></li> <li><span style="font-size: 1em;">ratio : has zero, and hence ratios have meaning – quantitative.</span></li> </ol> <p>SPSS uses :</p> <ol type="i"><li><span style="font-size: 1em;">nominal.&nbsp; &nbsp;&nbsp;</span></li> <li>ordinal.</li> <li>scale : this scale is equivalent to the ordinal and ration scales listed above combined — as best as I can make out.</li> </ol> <p>SPSS lets you specify a measurement scale under the “Measure” column in the “Variable View” screen. My recommendation is to leave it at “Unknown” or set it to “Scale”, otherwise it will try to restrict the statistical tests you can do when you don’t want it to. Measurement scales were invented to guide you to an appropriate statistical test but it doesn’t work that well. Instead, consider if your variable is continuous or discrete and then think about your situation.</p> <h1 id="chapter-31-section-3" class="section-header"><strong>1.2.3 Kinds of Sampling and Studies</strong></h1> <p>This material properly belongs to a course on research methods and experimental design, but we will take a very quick look here. Ultimately your data need to be selected from the population at random. All mathematical statistical tests assume <em>random sampling</em>. The probability distributions that are used are <em>defined</em> by random sampling (the randomness — probability distribution relationship is pretty much a tautology). The real world is nit ideal, however, and you may be forced to deal with bias introduced by the following sampling schemes :</p> <ol><li><span style="font-size: 1em;">Random Sampling : Samples selected from the population at random.</span></li> <li><span style="font-size: 1em;">Systematic Sampling : The population is ordered somehow (e.g. by house address or by phone number) and there is a rule for selecting samples (e.g. every 4th house or every 10th phone number).</span></li> <li><span style="font-size: 1em;">Stratified Sampling : The population is, or can be, ordered into groups and sampling is done at random from the groups.</span></li> <li><span style="font-size: 1em;">Cluster Sampling : Restrict sampling to a few groups of the population (a few strata).</span></li> </ol> <p>And, depending on the control you have over your independent variable, studies may be classified as :</p> <ol><li><strong><em>Observational Study</em></strong> : Just watch. You have no control over the independent variables.</li> <li><span style="font-size: 1em;"><strong><em>Experimental Study</em></strong> : Control some variables to isolate other variables. The object is to manipulate the independent variable.</span></li> </ol> <p>Astronomy is a passion of mine; observing stars and planets through a telescope is an example of an observational study.&nbsp;Experimental studies can be affected (knowingly or unknowingly) by <em>confound variables</em>.&nbsp; These are causes (independent variables) that you are not interested in but which affect the outcome (dependent variables) and can lead to data <em>bias</em> that you need to account for. Such issues are beyond the scope of an introductory statistics course.</p> 
</div></div>
<div class="chapter standard" id="chapter-summation-convention" title="1.3 Summation Convention"><div class="chapter-title-wrap"><h3 class="chapter-number">3</h3><h2 class="chapter-title">1.3 Summation Convention</h2></div><div class="ugc chapter-ugc"> <p style="text-align: left;"></p><p style="text-align: left;">For those of you who were ripped off in your high school education, a brief review of an important symbolic convention is given here. This convention will be used in the formulae that you will need to use.</p> <p style="text-align: left;">The capital Greek Sigma, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-58f087ff7f86b39fa0be9f1ec7f83572_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#117;&#109;" title="Rendered by QuickLaTeX.com" height="18" width="18" style="vertical-align: -5px;" />, means sum or add. For example, suppose that you have 5 data sample values, represented abstractly by <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4ea4bf9a7cfbdb01c84cf96f5d3da083_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#100;&#95;&#49;&#44;&#32;&#100;&#95;&#50;&#44;&#32;&#100;&#95;&#51;&#44;&#32;&#100;&#95;&#52;" title="Rendered by QuickLaTeX.com" height="17" width="90" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0f366a3a12b928965e963884f8e1fc10_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#100;&#95;&#53;" title="Rendered by QuickLaTeX.com" height="16" width="16" style="vertical-align: -3px;" />, or more abstractly (using set notation) by:</p> <p style="text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-df63e9194863a7dbc0d7534b87688a43_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#100;&#95;&#105;" title="Rendered by QuickLaTeX.com" height="16" width="14" style="vertical-align: -3px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-743f2a91554e452516b1204dfe32de59_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;&#92;&#105;&#110;&#92;&#123;&#49;&#44;&#50;&#44;&#51;&#44;&#52;&#44;&#53;&#92;&#125;" title="Rendered by QuickLaTeX.com" height="18" width="121" style="vertical-align: -5px;" /> (or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1bb127dccecb83c972dad09c6e2128_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;&#61;&#49;&#44;&#50;&#44;&#51;&#44;&#52;&#44;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="105" style="vertical-align: -4px;" />)</p> <p style="text-align: left;">If you want to add the 5 values you would write:</p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3cee32bba806e2233170dfbdadb854e0_l3.svg" height="16" width="171" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;&#100;&#95;&#49;&#32;&#43;&#32;&#100;&#95;&#50;&#32;&#43;&#32;&#100;&#95;&#51;&#32;&#43;&#32;&#100;&#95;&#52;&#32;&#43;&#32;&#100;&#95;&#53;&#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>or</p> <p class="ql-center-displayed-equation" style="line-height: 54px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a5ffefa62194f2537ad47dc199328ec1_l3.svg" height="54" width="43" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;&#92;&#115;&#117;&#109;&#94;&#123;&#53;&#125;&#95;&#123;&#105;&#61;&#49;&#125;&#100;&#95;&#123;&#105;&#125;&#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>Sometimes people get lazy and leave off the <em>limits</em> on the summation sign <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-58f087ff7f86b39fa0be9f1ec7f83572_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#117;&#109;" title="Rendered by QuickLaTeX.com" height="18" width="18" style="vertical-align: -5px;" /> and write</p> <p class="ql-center-displayed-equation" style="line-height: 25px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-773640ee02ce2653cb2bb727ccc06026_l3.svg" height="25" width="43" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;&#92;&#115;&#117;&#109;&#32;&#100;&#95;&#123;&#105;&#125;&#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>where it is hopefully clear that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> is the <em>summation index</em> . We can also leave off the summation index and write</p> <p class="ql-center-displayed-equation" style="line-height: 25px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fd31eb405b401870ae8107180908cf3d_l3.svg" height="25" width="39" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;&#92;&#115;&#117;&#109;&#32;&#100;&#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>just to remind us that we need to add up a bunch of numbers generically represented by <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4e8716946f6a868f015e0d62f28bc540_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#100;" title="Rendered by QuickLaTeX.com" height="13" width="10" style="vertical-align: 0px;" />. This last convention is useful for us because whenever we need to deal with a sum in a formula, we will get that sum from adding up numbers in a table that we have constructed.</p> </div></div>
<div class="part " id="part-slug-2-descriptive-statistics-frequency-data-counting"><div class="part-title-wrap"><h3 class="part-number">II</h3><h1 class="part-title">2. Descriptive Statistics: Frequency Data (Counting)</h1></div><p>Statistical inference is based on probability and probability is based on counting (at least the &#8220;frequentist&#8221; definition of probability &#8211; more about that in Chapter 4). So let&#8217;s start counting!</p><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-2-1-frequency-tables" title="2.1 Frequency Tables"><div class="chapter-title-wrap"><h3 class="chapter-number">4</h3><h2 class="chapter-title">2.1 Frequency Tables</h2></div><div class="ugc chapter-ugc"><p>Most material in this text is introduced first at an abstract level, then generally a step-by-step recipe is given and finally example problems are solved. This general to specific approach to learning statistics is the opposite of how many introductory statistics tests for the social sciences teach. For our first topic of frequency tables, the abstract concept is counting so let&#8217;s dive into the recipe with the expectation that you won&#8217;t get the complete picture until an example or two is worked.</p> <p>The construction of a frequency table proceeds in two steps :</p> <p><strong>Step 1</strong> : Determine the classes. There are two possibilities here, either the classes are given to you (pre-defined) or you have to define the classes based on the number of groups you want. So either</p> <ol type="i"><li>Classes are given &#8211; nothing to do.</li> <li>Define classes based on the number of groups you want. There are a number of different ways to group data into classes. We will cover a method here, different from Bluman&#8217;s, that works for whole number data only. Here are the steps for that method :</li> </ol> <p>(a) de<span style="font-size: 1em;">termine high data limit, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-379db1fc1f84b7ce56b92463183097f9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: 0px;" /> and the low data limit, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-66a9f474fc3c52efdfb0ba6a70199ee8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#76;" title="Rendered by QuickLaTeX.com" height="12" width="12" style="vertical-align: 0px;" />. </span></p> <p>(b) <span style="font-size: 1em;">compute the range <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a450a6ecc6931d95d9a1ff034459de69_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#82;&#32;&#61;&#32;&#72;&#32;&#45;&#32;&#76;" title="Rendered by QuickLaTeX.com" height="12" width="87" style="vertical-align: 0px;" /></span></p> <p>(c) <span style="font-size: 1em;">compute the class width :</span></p> <p style="text-align: left;"></p><p class="ql-center-displayed-equation" style="line-height: 37px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0eb7e7a6afc69ac5bb25048d67d96288_l3.svg" height="37" width="90" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#87;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#82;&#43;&#32;&#49;&#125;&#123;&#71;&#125; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: left;">where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-30a79c32f18567063fe44716929e7ced_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#71;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> is the number of groups (or classes) you want.</p> <p style="text-align: left;">(d) Begin the frequency table&#8217;s first two columns :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 72.1555%; height: 168px;"><tbody><tr style="height: 14px;"><td class="shaded" style="width: 50%; height: 14px; text-align: center;">Class</td> <td class="shaded" style="width: 50%; height: 14px; text-align: center;">Class Boundaries</td> </tr> <tr style="height: 14px;"><td style="width: 50%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-66a9f474fc3c52efdfb0ba6a70199ee8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#76;" title="Rendered by QuickLaTeX.com" height="12" width="12" style="vertical-align: 0px;" /> to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a8f69928b901555ddb2dd4db2e207907_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#40;&#76;&#43;&#87;&#45;&#49;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="95" style="vertical-align: -4px;" /></td> <td style="width: 50%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7a843db32f2470634f94cbf9932be36c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#40;&#76;&#32;&#45;&#32;&#48;&#46;&#53;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="69" style="vertical-align: -4px;" /> to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9e0911a45b6a8b9d380a9b3ea460b7ca_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#40;&#76;&#32;&#45;&#32;&#48;&#46;&#53;&#32;&#43;&#32;&#87;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="109" style="vertical-align: -4px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 50%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a909dda67cef06e91caab5b7d9a91d61_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#40;&#76;&#43;&#87;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="65" style="vertical-align: -4px;" /> to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0b7fa80de7fcc2985a116591c984d4bc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#40;&#76;&#43;&#50;&#87;&#45;&#49;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="104" style="vertical-align: -4px;" /></td> <td style="width: 50%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-42e9bfc4a29946dbe9447327f7259b6c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#40;&#76;&#45;&#48;&#46;&#53;&#43;&#87;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="109" style="vertical-align: -4px;" /> to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f47e9b90ea33122e404fde7b5d644029_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#40;&#76;&#45;&#48;&#46;&#53;&#43;&#50;&#87;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="118" style="vertical-align: -4px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 50%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-26b06190063675f61fa1d5e09ffdaecc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#118;&#100;&#111;&#116;&#115;" title="Rendered by QuickLaTeX.com" height="15" width="3" style="vertical-align: 0px;" /></td> <td style="width: 50%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-26b06190063675f61fa1d5e09ffdaecc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#118;&#100;&#111;&#116;&#115;" title="Rendered by QuickLaTeX.com" height="15" width="3" style="vertical-align: 0px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 50%; height: 14px; text-align: center;"></td> <td style="width: 50%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b84ea5518a7ad98c510db82c667ea73d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#40;&#72;&#32;&#43;&#32;&#48;&#46;&#53;&#32;&#45;&#32;&#87;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="113" style="vertical-align: -4px;" /> to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3693f8f902042746d72197833eec82a9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#40;&#72;&#43;&#32;&#48;&#46;&#53;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="73" style="vertical-align: -4px;" /></td> </tr> </tbody> </table> <p><span style="text-decoration: underline;"><strong>Note</strong></span> : If the classes are given,  you won&#8217;t have, or need, the second column.</p> <p>In the class column above a specific way of labelling classes is given. (We will see how this works exactly in the upcoming example.) This is to make the class names useful for seeing that the classes are uniquely defined &#8212; there will be no data points on the boundaries of the classes. The numbers in the labels will be whole numbers, since we are assuming that the data are whole numbers<span class="footnote">Whole numbers are 0 and the positive integers.</span>. In general we can label the classes any way we like.</p> <p>Also we need to note that this procedure of defining classes using the formula given in step (2)(c) will only work for whole number data. In general the process of defining classes is a lot looser; there are few rules beyond thinking about what kind of information you hope to capture by defining the classes. Since I want to keep you focused on learning the basic ideas and not worry about stuff that is not really statistics all assignment and exam questions that ask for the construction of classes from quantitative data will be for whole number data only. The procedure given here does work in general but some data points may end up on class boundaries and will have to make up an arbitrary rule about which class the data point should go in.</p> <p><strong>Step 2</strong> : Construct the frequency table and fill it in :</p> <div><table class="grid landscape aligncenter" style="border-collapse: collapse; width: 100%; height: 97px;"><tbody><tr style="height: 14px;"><td class="shaded" style="width: 16.6667%; height: 14px; text-align: center;">Class</td> <td class="shaded" style="width: 16.6667%; height: 14px; text-align: center;">Class Boundaries</td> <td class="shaded" style="width: 16.6667%; height: 14px; text-align: center;">Tally</td> <td class="shaded" style="width: 16.6667%; height: 14px; text-align: center;">Frequency</td> <td class="shaded" style="width: 16.6667%; height: 14px; text-align: center;">Cumulative Freq.</td> <td class="shaded" style="width: 16.6667%; height: 14px; text-align: center;">Relative Freq.</td> </tr> <tr style="height: 13px;"><td style="width: 16.6667%; height: 13px; text-align: center;"></td> <td style="width: 16.6667%; height: 13px; text-align: center;"></td> <td style="width: 16.6667%; height: 13px; text-align: center;"></td> <td style="width: 16.6667%; height: 13px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5c53d6ebabdbcfa4e107550ea60b1b19_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#97;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /></td> <td style="width: 16.6667%; height: 13px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5c53d6ebabdbcfa4e107550ea60b1b19_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#97;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /></td> <td style="width: 16.6667%; height: 13px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d8c29ae8537b09a1d12855abf7810ebc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#97;&#47;&#110;" title="Rendered by QuickLaTeX.com" height="18" width="29" style="vertical-align: -5px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 16.6667%; height: 14px; text-align: center;"></td> <td style="width: 16.6667%; height: 14px; text-align: center;"></td> <td style="width: 16.6667%; height: 14px; text-align: center;"></td> <td style="width: 16.6667%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f56d50c26583f9a035ff6b4e3c0ca5c0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#98;" title="Rendered by QuickLaTeX.com" height="13" width="8" style="vertical-align: 0px;" /></td> <td style="width: 16.6667%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-38830949a60ce6786a6fdf6309482002_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#97;&#43;&#98;" title="Rendered by QuickLaTeX.com" height="15" width="39" style="vertical-align: -2px;" /></td> <td style="width: 16.6667%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9de3db2d4393e4760ce86226de033a4c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#98;&#47;&#110;" title="Rendered by QuickLaTeX.com" height="18" width="28" style="vertical-align: -5px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 16.6667%; height: 14px; text-align: center;"></td> <td style="width: 16.6667%; height: 14px; text-align: center;"></td> <td style="width: 16.6667%; height: 14px; text-align: center;"></td> <td style="width: 16.6667%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-41a04eeea923a1a0c28094a8a4680525_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#99;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /></td> <td style="width: 16.6667%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-da799e8897722855ba137cb73e3e84d8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#97;&#43;&#98;&#43;&#99;" title="Rendered by QuickLaTeX.com" height="15" width="68" style="vertical-align: -2px;" /></td> <td style="width: 16.6667%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bdfbdbd6b6ec0030951a24550700c281_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#99;&#47;&#110;" title="Rendered by QuickLaTeX.com" height="18" width="28" style="vertical-align: -5px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 16.6667%; height: 14px; text-align: center;"></td> <td style="width: 16.6667%; height: 14px; text-align: center;"></td> <td style="width: 16.6667%; height: 14px; text-align: center;"></td> <td style="width: 16.6667%; height: 14px; text-align: center;"></td> <td style="width: 16.6667%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-26b06190063675f61fa1d5e09ffdaecc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#118;&#100;&#111;&#116;&#115;" title="Rendered by QuickLaTeX.com" height="15" width="3" style="vertical-align: 0px;" /></td> <td style="width: 16.6667%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-26b06190063675f61fa1d5e09ffdaecc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#118;&#100;&#111;&#116;&#115;" title="Rendered by QuickLaTeX.com" height="15" width="3" style="vertical-align: 0px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 16.6667%; height: 14px; text-align: center;"></td> <td style="width: 16.6667%; height: 14px; text-align: center;"></td> <td style="width: 16.6667%; height: 14px; text-align: center;"></td> <td style="width: 16.6667%; height: 14px; text-align: center;"></td> <td style="width: 16.6667%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /></td> <td style="width: 16.6667%; height: 14px; text-align: center;"></td> </tr> </tbody> </table> <p>The last number in the cumulative frequency column, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />, should equal number of data points as a check since it is the sum of the frequencies. And the sum of the relative frequencies will be 1 &#8212; we will see that this is an essential feature of probabilities. The tally column is optional.</p> <p><strong>Example 2.1</strong> : 25 army inductees were tested for blood type. The data are :</p> </div> <table class="no-lines alignleft" style="border-collapse: collapse; width: 30%; height: 70px;"><tbody><tr style="height: 14px;"><td style="width: 20%; height: 14px; text-align: center;">A</td> <td style="width: 20%; height: 14px; text-align: center;">B</td> <td style="width: 20%; height: 14px; text-align: center;">B</td> <td style="width: 20%; height: 14px; text-align: center;">AB</td> <td style="width: 20%; height: 14px; text-align: center;">O</td> </tr> <tr style="height: 14px;"><td style="width: 20%; height: 14px; text-align: center;">O</td> <td style="width: 20%; height: 14px; text-align: center;">O</td> <td style="width: 20%; height: 14px; text-align: center;">B</td> <td style="width: 20%; height: 14px; text-align: center;">AB</td> <td style="width: 20%; height: 14px; text-align: center;">B</td> </tr> <tr style="height: 14px;"><td style="width: 20%; height: 14px; text-align: center;">B</td> <td style="width: 20%; height: 14px; text-align: center;">B</td> <td style="width: 20%; height: 14px; text-align: center;">O</td> <td style="width: 20%; height: 14px; text-align: center;">A</td> <td style="width: 20%; height: 14px; text-align: center;">O</td> </tr> <tr style="height: 14px;"><td style="width: 20%; height: 14px; text-align: center;">A</td> <td style="width: 20%; height: 14px; text-align: center;">O</td> <td style="width: 20%; height: 14px; text-align: center;">O</td> <td style="width: 20%; height: 14px; text-align: center;">O</td> <td style="width: 20%; height: 14px; text-align: center;">AB</td> </tr> <tr style="height: 14px;"><td style="width: 20%; height: 14px; text-align: center;">AB</td> <td style="width: 20%; height: 14px; text-align: center;">A</td> <td style="width: 20%; height: 14px; text-align: center;">O</td> <td style="width: 20%; height: 14px; text-align: center;">B</td> <td style="width: 20%; height: 14px; text-align: center;">A</td> </tr> </tbody> </table> <p>&nbsp;</p> <p>&nbsp;</p> <div><p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>Construct a frequency table.</p> <p><strong>Solution</strong> :</p> <p><strong>Step 1</strong> : Classes are given : A    B   O   AB</p> <p><strong>Step 2</strong> : Construct frequency table :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 100%;"><tbody><tr><td class="shaded" style="width: 20%; text-align: center;">Class</td> <td class="shaded" style="width: 20%; text-align: center;">Tally</td> <td class="shaded" style="width: 20%; text-align: center;">Frequency</td> <td class="shaded" style="width: 20%; text-align: center;">Cumulative Freq.</td> <td class="shaded" style="width: 20%; text-align: center;">Relative Freq.</td> </tr> <tr><td style="width: 20%; text-align: center;">A</td> <td style="width: 20%; text-align: center;">|||||</td> <td style="width: 20%; text-align: center;">5</td> <td style="width: 20%; text-align: center;">5</td> <td style="width: 20%; text-align: center;">5/25 = 0.20</td> </tr> <tr><td style="width: 20%; text-align: center;">B</td> <td style="width: 20%; text-align: center;">||||| ||</td> <td style="width: 20%; text-align: center;">7</td> <td style="width: 20%; text-align: center;">12</td> <td style="width: 20%; text-align: center;">7/25 = 0.28</td> </tr> <tr><td style="width: 20%; text-align: center;">O</td> <td style="width: 20%; text-align: center;">||||| ||||</td> <td style="width: 20%; text-align: center;">9</td> <td style="width: 20%; text-align: center;">21</td> <td style="width: 20%; text-align: center;">9/25 = 0.36</td> </tr> <tr><td style="width: 20%; text-align: center;">AB</td> <td style="width: 20%; text-align: center;">||||</td> <td style="width: 20%; text-align: center;">4</td> <td style="width: 20%; text-align: center;">25</td> <td style="width: 20%; text-align: center;">4/25 = 0.16</td> </tr> </tbody> </table> <p>The tally is actually silly in this case because you count<span class="footnote">The frequency of A is the number of times A is in the dataset, etc. <strong>← the take-home concept here.</strong></span> all the instances of A for the class A, etc., and you&#8217;re done. The tally column will be more useful for the next example.</p> <p><strong>Example 2.2</strong> : Given the high temperature data for each of 50 states for the month of July :</p> </div> <table class="aligncenter" style="border-collapse: collapse; width: 80%; height: 70px;"><tbody><tr style="height: 14px;"><td style="width: 10%; height: 14px; text-align: center;">112</td> <td style="width: 10%; height: 14px; text-align: center;">100</td> <td style="width: 10%; height: 14px; text-align: center;">127</td> <td style="width: 10%; height: 14px; text-align: center;">120</td> <td style="width: 10%; height: 14px; text-align: center;">134</td> <td style="width: 10%; height: 14px; text-align: center;">118</td> <td style="width: 10%; height: 14px; text-align: center;">105</td> <td style="width: 10%; height: 14px; text-align: center;">110</td> <td style="width: 10%; height: 14px; text-align: center;">109</td> <td style="width: 10%; height: 14px; text-align: center;">112</td> </tr> <tr style="height: 14px;"><td style="width: 10%; height: 14px; text-align: center;">110</td> <td style="width: 10%; height: 14px; text-align: center;">118</td> <td style="width: 10%; height: 14px; text-align: center;">117</td> <td style="width: 10%; height: 14px; text-align: center;">116</td> <td style="width: 10%; height: 14px; text-align: center;">118</td> <td style="width: 10%; height: 14px; text-align: center;">122</td> <td style="width: 10%; height: 14px; text-align: center;">114</td> <td style="width: 10%; height: 14px; text-align: center;">114</td> <td style="width: 10%; height: 14px; text-align: center;">105</td> <td style="width: 10%; height: 14px; text-align: center;">109</td> </tr> <tr style="height: 14px;"><td style="width: 10%; height: 14px; text-align: center;">107</td> <td style="width: 10%; height: 14px; text-align: center;">112</td> <td style="width: 10%; height: 14px; text-align: center;">114</td> <td style="width: 10%; height: 14px; text-align: center;">115</td> <td style="width: 10%; height: 14px; text-align: center;">118</td> <td style="width: 10%; height: 14px; text-align: center;">117</td> <td style="width: 10%; height: 14px; text-align: center;">118</td> <td style="width: 10%; height: 14px; text-align: center;">122</td> <td style="width: 10%; height: 14px; text-align: center;">106</td> <td style="width: 10%; height: 14px; text-align: center;">110</td> </tr> <tr style="height: 14px;"><td style="width: 10%; height: 14px; text-align: center;">116</td> <td style="width: 10%; height: 14px; text-align: center;">108</td> <td style="width: 10%; height: 14px; text-align: center;">110</td> <td style="width: 10%; height: 14px; text-align: center;">121</td> <td style="width: 10%; height: 14px; text-align: center;">113</td> <td style="width: 10%; height: 14px; text-align: center;">120</td> <td style="width: 10%; height: 14px; text-align: center;">119</td> <td style="width: 10%; height: 14px; text-align: center;">111</td> <td style="width: 10%; height: 14px; text-align: center;">104</td> <td style="width: 10%; height: 14px; text-align: center;">111</td> </tr> <tr style="height: 14px;"><td style="width: 10%; height: 14px; text-align: center;">120</td> <td style="width: 10%; height: 14px; text-align: center;">113</td> <td style="width: 10%; height: 14px; text-align: center;">120</td> <td style="width: 10%; height: 14px; text-align: center;">117</td> <td style="width: 10%; height: 14px; text-align: center;">105</td> <td style="width: 10%; height: 14px; text-align: center;">110</td> <td style="width: 10%; height: 14px; text-align: center;">118</td> <td style="width: 10%; height: 14px; text-align: center;">112</td> <td style="width: 10%; height: 14px; text-align: center;">114</td> <td style="width: 10%; height: 14px; text-align: center;">114</td> </tr> </tbody> </table> <div><p>Construct a frequency table using 7 classes.</p> <p><strong>Solution</strong> :</p> <p><strong>Step 1</strong> :</p> <p>(a) High limit, H = 134<br /> Low limit, L = 100</p> <p>(b) Range: R = H &#8211; L = 134 &#8211; 100 =34</p> <p>(c) Class width: W = <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0e0ecd24de60c15b6a5bcc1a73271cd8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#102;&#114;&#97;&#99;&#123;&#82;&#32;&#43;&#32;&#49;&#125;&#123;&#71;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#51;&#52;&#32;&#43;&#32;&#49;&#125;&#123;&#55;&#125;&#32;&#61;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="22" width="120" style="vertical-align: -6px;" /></p> <p>(d) (and continue to Step 2) :</p> <p><strong>Step 2</strong> :</p> </div> <table class="grid aligncenter" style="border-collapse: collapse; width: 100%; height: 112px;"><tbody><tr style="height: 14px;"><td class="shaded" style="width: 16.6667%; text-align: center; height: 14px;">Class</td> <td class="shaded" style="width: 16.6667%; text-align: center; height: 14px;">Class Boundaries</td> <td class="shaded" style="width: 16.6667%; text-align: center; height: 14px;">Tally</td> <td class="shaded" style="width: 16.6667%; text-align: center; height: 14px;">Frequency</td> <td class="shaded" style="width: 16.6667%; text-align: center; height: 14px;">Cumulative Freq.</td> <td class="shaded" style="width: 16.6667%; text-align: center; height: 14px;">Relative Freq.</td> </tr> <tr style="height: 14px;"><td style="width: 16.6667%; text-align: center; height: 14px;">100 &#8212; 104</td> <td style="width: 16.6667%; text-align: center; height: 14px;">99.5 to 104.5</td> <td style="width: 16.6667%; text-align: center; height: 14px;">||</td> <td style="width: 16.6667%; text-align: center; height: 14px;">2</td> <td style="width: 16.6667%; text-align: center; height: 14px;">2</td> <td style="width: 16.6667%; text-align: center; height: 14px;">0.04</td> </tr> <tr style="height: 14px;"><td style="width: 16.6667%; text-align: center; height: 14px;">105 &#8212; 109</td> <td style="width: 16.6667%; text-align: center; height: 14px;">104.5 to 109.5</td> <td style="width: 16.6667%; text-align: center; height: 14px;">||||| |||</td> <td style="width: 16.6667%; text-align: center; height: 14px;">8</td> <td style="width: 16.6667%; text-align: center; height: 14px;">10</td> <td style="width: 16.6667%; text-align: center; height: 14px;">0.16</td> </tr> <tr style="height: 14px;"><td style="width: 16.6667%; text-align: center; height: 14px;">110 &#8212; 114</td> <td style="width: 16.6667%; text-align: center; height: 14px;">109.5 to 114.5</td> <td style="width: 16.6667%; text-align: center; height: 14px;">etc.</td> <td style="width: 16.6667%; text-align: center; height: 14px;">18</td> <td style="width: 16.6667%; text-align: center; height: 14px;">28</td> <td style="width: 16.6667%; text-align: center; height: 14px;">0.36</td> </tr> <tr style="height: 14px;"><td style="width: 16.6667%; text-align: center; height: 14px;">115 &#8212; 119</td> <td style="width: 16.6667%; text-align: center; height: 14px;">114.5 to 119.5</td> <td style="width: 16.6667%; text-align: center; height: 14px;"></td> <td style="width: 16.6667%; text-align: center; height: 14px;">13</td> <td style="width: 16.6667%; text-align: center; height: 14px;">41</td> <td style="width: 16.6667%; text-align: center; height: 14px;">0.26</td> </tr> <tr style="height: 14px;"><td style="width: 16.6667%; text-align: center; height: 14px;">120 &#8212; 124</td> <td style="width: 16.6667%; text-align: center; height: 14px;">119.5 to 124.5</td> <td style="width: 16.6667%; text-align: center; height: 14px;"></td> <td style="width: 16.6667%; text-align: center; height: 14px;">7</td> <td style="width: 16.6667%; text-align: center; height: 14px;">48</td> <td style="width: 16.6667%; text-align: center; height: 14px;">0.14</td> </tr> <tr style="height: 14px;"><td style="width: 16.6667%; text-align: center; height: 14px;">125 &#8212; 129</td> <td style="width: 16.6667%; text-align: center; height: 14px;">124.5 to 129.5</td> <td style="width: 16.6667%; text-align: center; height: 14px;"></td> <td style="width: 16.6667%; text-align: center; height: 14px;">1</td> <td style="width: 16.6667%; text-align: center; height: 14px;">49</td> <td style="width: 16.6667%; text-align: center; height: 14px;">0.02</td> </tr> <tr style="height: 14px;"><td style="width: 16.6667%; text-align: center; height: 14px;">130 &#8212; 134</td> <td style="width: 16.6667%; text-align: center; height: 14px;">129.5 to 134.5</td> <td style="width: 16.6667%; text-align: center; height: 14px;"></td> <td style="width: 16.6667%; text-align: center; height: 14px;">1</td> <td style="width: 16.6667%; text-align: center; height: 14px;">50</td> <td style="width: 16.6667%; text-align: center; height: 14px;">0.02</td> </tr> <tr><td style="width: 16.6667%; text-align: center;"></td> <td style="width: 16.6667%; text-align: center;"></td> <td style="width: 16.6667%; text-align: center;"></td> <td style="width: 16.6667%; text-align: center;"></td> <td style="width: 16.6667%; text-align: center;"></td> <td style="width: 16.6667%; text-align: center;">= 1</td> </tr> </tbody> </table> <div><p>Note how we can now use the tally column to keep track of our counting. For example, for the class 100 &#8212; 104, we first count all the instances of 100 (there is 1), then 101 (none), 102 (none), 103 (none) and 104 (one). The sum of the frequencies is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-29daf1f8217eae74faa8408ea31502bf_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#61;&#53;&#48;" title="Rendered by QuickLaTeX.com" height="13" width="52" style="vertical-align: 0px;" /> and the sum of the relative frequencies is 1. Imagine that this data set represented the whole population and not just a sample. Then if you picked a random state there would be a 0.16 probability that the temperature would be between 105 and 109 inclusive. On other words relative frequency = probability for a population. Hence the term <em>frequentist</em> definition of probability. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6f87cde0b7e112b5afe7dda9cd185104_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#66;&#111;&#120;" title="Rendered by QuickLaTeX.com" height="12" width="12" style="vertical-align: 0px;" /></p> <p>You can also compute cumulative relative frequency in a frequency table. When you use SPSS to make a frequency table you will run up against the limitations of using black box canned software. SPSS produces only one style of frequency table and it doesn&#8217;t match what we&#8217;ve been doing. In fact SPSS won&#8217;t compute relative frequency; instead it computes &#8220;percentage&#8221;. You need to convert percentage to relative frequency in your brain by dividing by 100.</p> </div> </div></div>
<div class="chapter standard" id="chapter-slug-2-2-plotting-frequency-data" title="2.2 Plotting Frequency Data"><div class="chapter-title-wrap"><h3 class="chapter-number">5</h3><h2 class="chapter-title">2.2 Plotting Frequency Data</h2></div><div class="ugc chapter-ugc">
<p>In general you may present your data, say in a report or paper, in tabular form or graphical form. Personally, I prefer graphical form — “a picture is worth a thousand words”. For frequency data, the frequency table is the tabular form. There are several ways of presenting the same data graphically, the primary way being the histogram:</p> <ol><li>Histogram – plot of frequency data using steps (mathematically: “step functions”).</li> <li>Frequency polygon – plot of frequency data using straight lines (mathematically: “piece-wise linear functions”).</li> <li>Cumulative frequency graph.</li> <li>Pie charts, Pareto charts, Stem &amp; Leaf plots – alternate ways of plotting frequency data</li> </ol> <p>As a first step to plotting frequency data, you will need to construct a frequency table.</p> <p><strong>Example 2.3</strong> :&nbsp;Continuing with the frequency table produced from the data given in Example 2.1 :</p> <table class="grid aligncenter" style="border-collapse: collapse;width: 60.1212%;height: 154px"><tbody><tr><td class="shaded" style="width: 25%;text-align: center">Class</td> <td class="shaded" style="width: 25%;text-align: center">Frequency</td> <td class="shaded" style="width: 40%;text-align: center">Cumulative Freq.</td> <td class="shaded" style="width: 40%;text-align: center">Relative Freq</td> </tr> <tr><td style="width: 25%;text-align: center">A</td> <td style="width: 25%;text-align: center">5</td> <td style="width: 25%;text-align: center">5</td> <td style="width: 25%;text-align: center">0.20</td> </tr> <tr><td style="width: 25%;text-align: center">B</td> <td style="width: 25%;text-align: center">7</td> <td style="width: 25%;text-align: center">12</td> <td style="width: 25%;text-align: center">0.28</td> </tr> <tr><td style="width: 25%;text-align: center">O</td> <td style="width: 25%;text-align: center">9</td> <td style="width: 25%;text-align: center">21</td> <td style="width: 25%;text-align: center">0.36</td> </tr> <tr><td style="width: 25%;text-align: center">AB</td> <td style="width: 25%;text-align: center">4</td> <td style="width: 25%;text-align: center">25</td> <td style="width: 25%;text-align: center">0.16</td> </tr> </tbody> </table> <p>We will demonstrate most of the graph types using these data.</p> <p><strong>1. Histograms.</strong> First, the straight forward <em>histogram</em> is as shown in Figure 2.1. This is a plot of the data in the frequency column of the frequency table.</p> <div class="wp-caption aligncenter" id="attachment_327" aria-describedby="caption-attachment-327" style="width: 350px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png.png"><img class="wp-image-327" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png-300x240.png" alt="" width="350" height="280" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png-300x240.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png-768x615.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png-65x52.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png-225x180.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png-350x280.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png.png 867w" /></a><div class="wp-caption-text" id="caption-attachment-327">Figure 2.1 : Straight Forward histogram. A box or “step function” is used to show the frequency of each class. In this image, generated with SPSS, the classes are labelled with 1, 2, 3, and 4 which correspond to the classes A, B, O and AB. If we take these discrete quantitative class values literally, the class width is one. Keep that in mind when you look at Figure 2.2.</div></div> <p>Next, still under the category histograms, is the <em>relative frequency histogram</em>. The relative frequency histogram for the blood type data is shown in Figure 2.2. It is a plot of the data in the relative frequency column of the frequency table.</p> <div class="wp-caption aligncenter" id="attachment_332" aria-describedby="caption-attachment-332" style="width: 350px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png-1.png"><img class="wp-image-332" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png-1-300x240.png" alt="" width="350" height="280" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png-1-300x240.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png-1-768x615.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png-1-65x52.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png-1-225x180.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png-1-350x280.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig5png-1.png 867w" /></a><div class="wp-caption-text" id="caption-attachment-332">Figure 2.2 : Relative frequency histogram for the blood type data.</div></div> <p><strong>Very Important Concept</strong> : Look at Figure 2.2 and define the width of each class to be 1. Then the area under the histogram “curve” is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d53707bd71c1ab1c1c3fb7187d9be832_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="(0.2) \times 1+(0.28) \times 1+(0.36) \times 1+(0.16) \times 1=1.00" title="Rendered by QuickLaTeX.com" height="18" width="414" style="vertical-align: -4px;" />. So, if we image that our data sample of the 25 army inductees is a whole population, then the relative frequency histogram may be interpreted as giving the following <em>probabilities</em>&nbsp;for getting a particular blood type for someone selected randomly from the population:</p> <p style="padding-left: 40px">The probability of having type A blood is 0.20 (or 20<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" />).</p> <p style="padding-left: 40px">The probability of having type B blood is 0.28 (or 28<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" />).</p> <p style="padding-left: 40px">The probability of having type 0 blood is 0.36 (or 36<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" />).</p> <p style="padding-left: 40px">The probability of having type AB blood is 0.16 (or 16<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" />).</p> <p><strong>2. Frequency Polygons.</strong> Frequency polygons are just another form of histogram. We have been talking about “area under the curve” to represent probability. The curve of a frequency polygon is a little bit smoother than the curve of a traditional histogram. Frequency polygons can, of course be made for either straight frequency or relative frequency data. A frequency polygon for the relative frequency blood type data is shown in Figure 2.3.</p> <div class="wp-caption aligncenter" id="attachment_338" aria-describedby="caption-attachment-338" style="width: 600px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig7png.jpg"><img class="wp-image-338" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig7png.jpg" alt="" width="600" height="567" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig7png.jpg 967w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig7png-300x284.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig7png-768x726.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig7png-65x61.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig7png-225x213.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig7png-350x331.jpg 350w" /></a><div class="wp-caption-text" id="caption-attachment-338">Figure 2.3 : Relative frequency polygon for the blood type data. Plot a dot at the center of each class at the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0af556714940c351c933bba8cf840796_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="y" title="Rendered by QuickLaTeX.com" height="12" width="9" style="vertical-align: -4px;" />-value of the relative frequency then connect the dots as shown.</div></div> <p><strong>3. Cumulative Frequency Graph.&nbsp;</strong>Plotting the cumulative frequencies from the frequency table results in a cumulative frequency graph as shown in Figure 2.4. Cumulative relative frequencies can also be computed (add up relative frequencies as you move down the column) and plotted.</p> <p>The cumulative frequency graph shows the “area under the curve” (of the traditional histogram) from the beginning of the first class up to the given point. Cumulative frequencies or cumulative relative frequencies with therefore show up later as areas under probability distribution curves up to a given point (it represents the probability of having a value equal to or less than the given value if that quantity is pulled at random from the population.)</p> <div class="wp-caption aligncenter" id="attachment_344" aria-describedby="caption-attachment-344" style="width: 600px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig8png.jpg"><img class="wp-image-344" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig8png.jpg" alt="" width="600" height="432" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig8png.jpg 992w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig8png-300x216.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig8png-768x553.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig8png-65x47.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig8png-225x162.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig8png-350x252.jpg 350w" /></a><div class="wp-caption-text" id="caption-attachment-344">Figure 2.4 : Cumulative frequency graph for the blood sample data. Plot a dot at the end of the relevant class at a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0af556714940c351c933bba8cf840796_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="y" title="Rendered by QuickLaTeX.com" height="12" width="9" style="vertical-align: -4px;" />-value equal to the cumulative frequency. Then connect the dots as shown.</div></div> <p><strong>4. Pie Chart.&nbsp;</strong>A pie chart is a round histogram. Everyone has seen a pie chart, it is intuitive. The angles in the pie chart are computed using:</p> <p style="text-align: center">Angle = Relative Frequency <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2251e206114e616eff3bb0e63afbaaec_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\times 360^{\circ}" title="Rendered by QuickLaTeX.com" height="12" width="46" style="vertical-align: 0px;" />.</p> <p class="indent">For the blood type data, the explicit angle calculations are :</p> <table class="grid aligncenter" style="border-collapse: collapse;width: 39.2636%;height: 80px"><tbody><tr style="height: 14px"><td class="shaded" style="width: 2.42718%;height: 10px;text-align: center">Class</td> <td class="shaded" style="width: 43.4466%;height: 10px;text-align: center">Angle</td> </tr> <tr style="height: 14px"><td style="width: 2.42718%;height: 14px;vertical-align: middle" scope="row">A</td> <td style="width: 43.4466%;height: 14px">0.20 <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2251e206114e616eff3bb0e63afbaaec_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\times 360^{\circ}" title="Rendered by QuickLaTeX.com" height="12" width="46" style="vertical-align: 0px;" /> = <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-398cf1ba3bb65f7cfc2e30f50a07cedb_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="72^{\circ}" title="Rendered by QuickLaTeX.com" height="13" width="25" style="vertical-align: 0px;" /></td> </tr> <tr style="height: 14px"><td style="width: 2.42718%;height: 14px;vertical-align: middle" scope="row">B</td> <td style="width: 43.4466%;height: 14px;vertical-align: middle" scope="row">0.28 <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2251e206114e616eff3bb0e63afbaaec_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\times 360^{\circ}" title="Rendered by QuickLaTeX.com" height="12" width="46" style="vertical-align: 0px;" /> = <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bc9f20215247cdae8e6e812da173c402_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="100.8^{\circ}" title="Rendered by QuickLaTeX.com" height="13" width="47" style="vertical-align: -1px;" /></td> </tr> <tr style="height: 14px"><td style="width: 2.42718%;height: 14px">O</td> <td style="width: 43.4466%;height: 14px">0.36 <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2251e206114e616eff3bb0e63afbaaec_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\times 360^{\circ}" title="Rendered by QuickLaTeX.com" height="12" width="46" style="vertical-align: 0px;" /> = <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2d77f79f0a0a94f770a3d8b342052854_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="129.6^{\circ}" title="Rendered by QuickLaTeX.com" height="13" width="47" style="vertical-align: -1px;" /></td> </tr> <tr style="height: 14px"><td style="width: 2.42718%;height: 14px">AB</td> <td style="width: 43.4466%;height: 14px">0.16 <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2251e206114e616eff3bb0e63afbaaec_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\times 360^{\circ}" title="Rendered by QuickLaTeX.com" height="12" width="46" style="vertical-align: 0px;" /> = &nbsp;<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-90a41a59269cca5fca5a99b27d2b2c92_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="57.6^{\circ}" title="Rendered by QuickLaTeX.com" height="13" width="39" style="vertical-align: 0px;" /></td> </tr> <tr style="height: 14px"><td style="width: 2.42718%;height: 14px"></td> <td style="width: 43.4466%;height: 14px">Check Sum = <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c94140276507d2427885d99bf71d9f38_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="360^{\circ}" title="Rendered by QuickLaTeX.com" height="12" width="34" style="vertical-align: 0px;" /></td> </tr> </tbody> </table> <p>The pie chart for the blood type data is shown in Figure 2.5.</p> <div class="wp-caption aligncenter" id="attachment_368" aria-describedby="caption-attachment-368" style="width: 300px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig9png.png"><img class="wp-image-368 size-medium" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig9png-300x240.png" alt="" width="300" height="240" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig9png-300x240.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig9png-768x615.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig9png-65x52.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig9png-225x180.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig9png-350x280.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig9png.png 867w" /></a><div class="wp-caption-text" id="caption-attachment-368">Figure 2.5 : Pie chart for the blood type data. It is a very good representation of the probability aspect of relative frequency. If you made the pie chart into a dart board and threw darts at it in a random fashion, then the probability of the dart landing in each class is equal to that class’s relative frequency.</div></div> <p><strong>5. Pareto Chart.&nbsp;</strong>The Pareto chart is just an ordered histogram with classes ordered from highest to lowest frequency. The classes need to be qualitative for this reordering to make sense of course. To construct a Pareto chart, writing an ordered frequency table down first will help :</p> <table class="grid aligncenter" style="border-collapse: collapse;width: 31.6748%;height: 127px"><tbody><tr class="shaded"><td style="width: 50%;text-align: center">Class</td> <td style="width: 50%;text-align: center">Frequency</td> </tr> <tr style="height: 14px"><td style="width: 50%;height: 14px;text-align: center">A</td> <td style="width: 50%;height: 14px;text-align: center">5</td> </tr> <tr style="height: 14px"><td style="width: 50%;height: 14px;text-align: center">B</td> <td style="width: 50%;height: 14px;text-align: center">7</td> </tr> <tr style="height: 14px"><td style="width: 50%;height: 14px;text-align: center">O</td> <td style="width: 50%;height: 14px;text-align: center">9</td> </tr> <tr style="height: 14px"><td style="width: 50%;height: 14px;text-align: center">AB</td> <td style="width: 50%;height: 14px;text-align: center">4</td> </tr> </tbody> </table> <div class="wp-caption aligncenter" id="attachment_371" aria-describedby="caption-attachment-371" style="width: 350px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig10png.jpg"><img class="wp-image-371" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig10png-300x240.jpg" alt="" width="350" height="280" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig10png-300x240.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig10png-768x615.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig10png-65x52.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig10png-225x180.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig10png-350x280.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig10png.jpg 867w" /></a><div class="wp-caption-text" id="caption-attachment-371">Figure 2.6: Pareto chart for the blood type data.</div></div> <p>The Parato chart is plotted in Figure 2.6. The frequencies as ordered in a Parato chart can be given statistical meaning but that is a subject beyond the scope of this course. Here you just have to be aware that such a chart exists and know how it is made.</p> <h1 id="chapter-35-section-1" class="section-header"><strong>2.2.1 Stem and Leaf Plots</strong></h1> <p>A stem and leaf plot is a fancy kind of histogram that lets you see all your data instead of just class frequency information.</p> <p>The steps for making a stem and leaf plot are :</p> <ol><li>Order the data (this is a frequently used, tedious, step for many procedures as we’ll see).</li> <li>Divide into classes of 10’s or 5’s (low decade and high decade).</li> <li>Use “leading” and “trailing” digits of the data values to make the plot.</li> </ol> <p>For step 3 you need to know what “leading” and “trailing” digits are. Let’s illustrate that with an example.</p> <p><span style="text-decoration: underline"><strong>Example 2.4</strong></span> : Given classes: 50-54, 55-59, 60-64, 65-69, 70-74, 75-79 or equivalently, divide the classes into 5’s and the data <em>in order</em> (i.e. with the tedious ordering step 1 already done) :</p> <p style="padding-left: 40px">|50,51,51,52,53,53,|55,55,56,57,57,58,59,|62,63,|65,65,66,66,67,68,69,69|72,73,|75,75,77,78,79|</p> <p>where the bars illustrate the division of the data into low and high decades, step 2. The first number of each data point is the leading digit (stem), the last, the trailing digit (leaf). So with this, step 3 leads to :</p> <table class="grid aligncenter" style="border-collapse: collapse;width: 30%"><tbody><tr class="shaded"><td style="width: 50%;text-align: center">Stem</td> <td style="width: 50%;text-align: center">Leaf</td> </tr> <tr><td style="width: 50%;text-align: center">5</td> <td style="width: 50%;text-align: left">0 1 1 2 3 3</td> </tr> <tr><td style="width: 50%;text-align: center">5</td> <td style="width: 50%;text-align: left">5 5 6 7 7 8 9</td> </tr> <tr><td style="width: 50%;text-align: center">6</td> <td style="width: 50%;text-align: left">2 3</td> </tr> <tr><td style="width: 50%;text-align: center">6</td> <td style="width: 50%;text-align: left">5 5 6 6 7 8 9 9</td> </tr> <tr><td style="width: 50%;text-align: center">7</td> <td style="width: 50%;text-align: left">2 3</td> </tr> <tr><td style="width: 50%;text-align: center">7</td> <td style="width: 50%;text-align: left">5 5 7 8 9</td> </tr> </tbody> </table> <p>Notice how, since the numbers are all nicely lined up, that the stem and leaf plot is a histogram on its side. So you can visualize frequency information <em>and</em> see the values of the individual data points as well. One could use that information to compute accurate means from stem and leaf plots whereas, as we’ll see, “class centers” need to be used with histogram (frequency table) data to estimate means with grouped data formulae.</p> 
</div></div>
<div class="chapter standard" id="chapter-slug-2-3-spss-lesson-1-getting-started-with-spss" title="2.3 SPSS Lesson 1: Getting Started with SPSS"><div class="chapter-title-wrap"><h3 class="chapter-number">6</h3><h2 class="chapter-title">2.3 SPSS Lesson 1: Getting Started with SPSS</h2></div><div class="ugc chapter-ugc"> <p>The following lesson will take you through an introduction to IBM® SPSS® Statistics software (referred to hereafter as “SPSS”).</p> <p>First, you need to open SPSS. Ways to do that are detailed in the Front Matter of this book, in the section&nbsp;“<a href="#front-matter-statistical-software" target="_blank" rel="noopener noreferrer">Statistical Software Used in this Book</a>“. <span style="text-align: initial; font-size: 1em;">Also in the Front Matter you will find the collection of provided <a href="#front-matter-data-sets" target="_blank" rel="noopener noreferrer">Data Sets</a>; download the file “HyperactiveChildren.sav” and open it in SPSS. </span></p> <p><span style="text-align: initial; font-size: 1em;">You should see:</span></p> <div class="wp-caption alignnone" id="attachment_885" aria-describedby="caption-attachment-885" style="width: 818px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-1.png"><img class="wp-image-885" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-1-300x169.png" alt="" width="818" height="461" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-1-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-1.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-885">SPSS screenshot © International Business Machines Corporation.</div></div> <p><span style="font-size: 1em;">This is the “Data View” window. It is one of the three windows you will see when you use SPSS. The other two windows are the “Variable View”&nbsp; window and the “Output” window. You can get to the Variable View window either by clicking on the Variable View tab at the bottom of the window, or by double clicking one of the column headings (the “variable name”). But let’s talk about what’s on the Data View window before we look at the other two windows.</span></p> <p>The Data View window is arranged in the form of a “data matrix”, which is an essential structure for multivariate statistics. This is the first trap that people who try to use SPSS fall into — they collect data, put the data into SPSS and then go looking for an appropriate statistical test using help or the built-in “statistics coach”. Multivariate statistics is advanced. We need to learn a whole lot of basics before we can competently use multivariate statistics. This textbook covers <em>univariate</em> statistics. We are only going to learn how to deal with <em>one</em> dependent variable at a time. So many of the first SPSS lessons will be about how to combine multiple variables into one variable for analysis.</p> <p>Back to the Data View window and the data matrix. <em>The rows represent individual subjects in the study</em>. In Psychology, the subjects (“participants”) are generally people but they could also be rats or schools or cities or whatever. To fix ideas, suppose the subjects are people. One line for each person in the study. <em>The columns represent variables</em>. SPSS doesn’t care what kind of variables you define (e.g. independent or dependent) so you need to keep track of their meaning yourself. As we said, we only need one independent variable for univariate tests.</p> <p>The variables need to be defined. This is done by either double clicking on the variable name at the top of a column or by clicking the “Variable View” button at the bottom. Either way, you’ll end up in the Variable View window that looks like :</p> <div class="wp-caption alignnone" id="attachment_942" aria-describedby="caption-attachment-942" style="width: 811px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-2-1.png"><img class="wp-image-942" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-2-1-300x169.png" alt="" width="811" height="457" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-2-1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-2-1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-2-1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-2-1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-2-1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-2-1-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-2-1.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-942">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Each line in the Variable View window lists the attributes of the variables listed in the Data View window. You can usually leave most of the attributes as they come by default. The big exception is the Values attribute — it’s important and we’ll come back to that after a quick look at the other attributes.</p> <p>The Name attribute gives the name of the variable as it appears at the top of the columns in the Data View window. Type should be Numeric if you want to use the variable in any kind of statistical calculation. Having this set to String will cause errors if you are trying to use the variable as a qualitative variable (selection is via a pull down menu that appears when you click on a cell). Qualitative variables need to be Numeric and they are handled with the Values attribute — as we’ll see shortly! The Width and Decimals attributes are just to format the appearance of the numbers in the Data View sheet; totally not critical. The Label is left over from early FORTRAN days. SPSS’s heart is written in FORTRAN and variable names in FORTRAN used to be limited to eight characters which frequently makes it awkward to have good name for the variable. With Label you can give the variable a good name. If the is a value for Label then that value will be used on table and graph outputs that SPSS makes. If Label is blank then SPSS will use Name on table and graph outputs. We will largely ignore missing value issues in this course so leave the Missing attribute at None. Columns and Align are again used to make the Data View presentation look a little better; totally not critical. Leave Measure at Unknown or Scale, otherwise SPSS will try to interpret your data for you. SPSS is not very good at that and will tend to give strange errors that will make no sense to you, so leave Measure at Unknown or Scale. Leave Role at Input; this is a relatively new feature of SPSS and I don’t know what it does, so don’t muck with it.</p> <p>Finally — the Values attribute! Here is where you make the link between a qualitative variable and the discrete values it needs to work in a computer setting. Let’s take a look at the gender variable. Clicking in the cell brings up a thing with three dots :</p> <div class="wp-caption alignnone" id="attachment_949" aria-describedby="caption-attachment-949" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-3-1.png"><img class="wp-image-949" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-3-1-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-3-1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-3-1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-3-1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-3-1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-3-1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-3-1-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-3-1.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-949">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Clicking on the thing with three dots brings up a menu where you can define the connection between the qualitative description and your discrete number assignments :</p> <div class="wp-caption alignnone" id="attachment_952" aria-describedby="caption-attachment-952" style="width: 818px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-4-1.png"><img class="wp-image-952" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-4-1-300x169.png" alt="" width="818" height="461" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-4-1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-4-1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-4-1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-4-1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-4-1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-4-1-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-4-1.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-952">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Here I have clicked on the 1.00 = “Male” line to show that the Value is 1 (arbitrary discrete quantitative) and the Label is Male (qualitative). To enter new values, type them in the Value and Label box and then click Add to add them to the list.</p> <p>Let’s go back to the Variable View window to see how quantitative variables with discrete number assignments are handled. Look at the values in the sex variable column in the first image. The numbers 1 and 2 are shown which represent Male and Female. To see that representation explicitly, click on the 1-A icon at the top of the window. You will then see:</p> <div class="wp-caption alignnone" id="attachment_893" aria-describedby="caption-attachment-893" style="width: 822px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-5.png"><img class="wp-image-893" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-5-300x169.png" alt="" width="822" height="463" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-5-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-5-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-5-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-5-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-5-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-5-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-5.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-893">SPSS screenshot © International Business Machines Corporation.</div></div> <p>There’s more. If you click on a cell in the gender variable, you will get a thing on the side of the cell and if you click on that thing, you will see:</p> <div class="wp-caption alignnone" id="attachment_894" aria-describedby="caption-attachment-894" style="width: 820px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-6.png"><img class="wp-image-894" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-6-300x169.png" alt="" width="820" height="462" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-6-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-6-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-6-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-6-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-6-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-6-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-6.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-894">SPSS screenshot © International Business Machines Corporation.</div></div> <p>This pop-up allows you to change the value by clicking on the appropriate value. In one of your assignments you will get practice with entering qualitative data this way. In general, to enter data into SPSS from scratch, you can start by typing data into the Data View window and then fix up the attributes later in the Variable View window. For qualitative variables the best approach is to define the variable first in Variable View, getting the proper values into the Values attribute. Then you can go back to the Data View window and enter the qualitative data either by pulling down the menu when the mode of the 1-A icon is to show the labels or by remembering the number assignment and entering the numbers when the 1-A icon is set to show values.</p> <p>Let’s move on to do some descriptive statistics and see what results will look like in the Output window. For this load in the “Caregiver.sav” file from the <a href="#front-matter-data-sets" target="_blank" rel="noopener noreferrer">Data Sets</a>:</p> <div class="wp-caption alignnone" id="attachment_851" aria-describedby="caption-attachment-851" style="width: 847px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG1.png"><img class="wp-image-851" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG1-300x169.png" alt="" width="847" height="477" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG1-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG1.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-851">SPSS screenshot © International Business Machines Corporation.</div></div> <p>There are 50 subjects in this file and 10 variables. One of the things we’ll be learning, in later SPSS Lessons, is how to combine more than one variable into one variable. This is because we are studying univariate statistics which means we only want to deal with one dependent variable at a time. For now, lets pick on the variable CGDUR and see how we can generate descriptive statistics output. There are three ways to do this and they all begin in the Analyze <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a7c9a0ffed59c3620a61d22aaeaf5fe7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\longrightarrow" title="Rendered by QuickLaTeX.com" height="11" width="27" style="vertical-align: -1px;" /> Descriptive Frequencies menu which looks like this (on a PC; very similar on a Mac):</p> <div class="wp-caption alignnone" id="attachment_853" aria-describedby="caption-attachment-853" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG2.png"><img class="wp-image-853" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG2-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG2-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG2-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG2-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG2-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG2-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG2-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG2.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-853">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Pick Frequencies… which brings up:</p> <div class="wp-caption alignnone" id="attachment_856" aria-describedby="caption-attachment-856" style="width: 822px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG3.png"><img class="wp-image-856" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG3-300x169.png" alt="" width="822" height="463" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG3-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG3-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG3-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG3-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG3-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG3-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG3.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-856">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Move the CGagecat variable over by clicking on the variable then the arrow button or just drag the variable over to get:</p> <div class="wp-caption alignnone" id="attachment_858" aria-describedby="caption-attachment-858" style="width: 827px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG4.png"><img class="wp-image-858" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG4-300x169.png" alt="" width="827" height="466" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG4-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG4-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG4-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG4-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG4-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG4-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG4.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-858">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Let’s take a look at the submenus and set them up before we hit OK. First the Statistics… submenu. In that menu check off Mean (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x}" title="Rendered by QuickLaTeX.com" height="11" width="11" style="vertical-align: 0px;" />), Median (MD), Mode, Skewness, Kurtosis, Std. deviation (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" />), Variance (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a188571c36702c81dbbf0a7ed05c9d6f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s^{2}" title="Rendered by QuickLaTeX.com" height="15" width="15" style="vertical-align: 0px;" />), Range (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-dae6bae3dcdac4629730754352c5e329_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="R" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" />), Minimum (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-66a9f474fc3c52efdfb0ba6a70199ee8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="L" title="Rendered by QuickLaTeX.com" height="12" width="12" style="vertical-align: 0px;" />) and, Maximum (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-379db1fc1f84b7ce56b92463183097f9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: 0px;" />). We we look at all of those descriptive statistics in Chapter 3.</p> <div class="wp-caption alignnone" id="attachment_861" aria-describedby="caption-attachment-861" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG5.png"><img class="wp-image-861" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG5-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG5-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG5-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG5-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG5-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG5-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG5-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG5.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-861">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Hit Continue, look at the Charts… menu and check off pie charts, just for fun:</p> <div class="wp-caption alignnone" id="attachment_862" aria-describedby="caption-attachment-862" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG6.png"><img class="wp-image-862" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG6-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG6-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG6-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG6-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG6-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG6-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG6-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG6.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-862">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Hit Continue. You can look at the Format… and Style… menus if you want, they are not particularly interesting. Make sure “Display frequency tables” is checked (this will be important when you do the assignments), then hit OK. The Output window will pop up and in that window you will see:</p> <div class="wp-caption alignnone" id="attachment_864" aria-describedby="caption-attachment-864" style="width: 822px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG7.png"><img class="wp-image-864" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG7-300x169.png" alt="" width="822" height="463" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG7-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG7-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG7-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG7-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG7-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG7-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG7.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-864">SPSS screenshot © International Business Machines Corporation.</div></div> <p>The first table, Statistics, shows the descriptive statistics you asked for. Note, especially, for future reference (when we hit skewness in Chapter 3), the value of the skewness. It is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-58d8f31c761a08729952c572eab931af_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="0.411" title="Rendered by QuickLaTeX.com" height="13" width="40" style="vertical-align: -1px;" />. More to the point it is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c65cd393979f3af48fb14cd1f78d4871_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> 0" title="Rendered by QuickLaTeX.com" height="12" width="27" style="vertical-align: 0px;"&gt;, or positive, meaning that the data set (CGagecatn) is right skewed or positively skewed. The second table, labeled “highestQualification” is the frequency table (note how the variable Name and not the Label was used because the Label attribute for the highestQualification variable was blank). The structure of the frequency table is slightly different from how we will learn to construct one by hand. There is nothing you can do to make SPSS produce a frequency table that matches exactly like what you might want. There are limitations to using canned statistics software.</p> <p>Scrolling down the Output window you will see the pie chart:</p> <div class="wp-caption alignnone" id="attachment_866" aria-describedby="caption-attachment-866" style="width: 827px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG8.png"><img class="wp-image-866" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG8-300x169.png" alt="" width="827" height="466" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG8-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG8-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG8-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG8-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG8-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG8-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG8.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-866">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Lets look at the Descriptives… menu next:</p> <div class="wp-caption alignnone" id="attachment_868" aria-describedby="caption-attachment-868" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG9.png"><img class="wp-image-868" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG9-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG9-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG9-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG9-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG9-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG9-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG9-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG9.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-868">SPSS screenshot © International Business Machines Corporation.</div></div> <div class="wp-caption alignnone" id="attachment_869" aria-describedby="caption-attachment-869" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG10.png"><img class="wp-image-869" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG10-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG10-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG10-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG10-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG10-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG10-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG10-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG10.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-869">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Move the CGagecat variable over as before and make sure to check off the “Save standardized values as variables”. We’ll learn about standardized values (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-values) in Chapter 3. Take note, this is the only way to get SPSS to compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-values :</p> <p>Click the options menu and check off descriptive statistics to compute, as before (S.E. mean is Standard Error of the mean which we’ll get to eventually also, we’ll just leave it off for now):</p> <div class="wp-caption alignnone" id="attachment_870" aria-describedby="caption-attachment-870" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG11.png"><img class="wp-image-870" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG11-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG11-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG11-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG11-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG11-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG11-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG11-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG11.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-870">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Hit Continue then OK and look at the results in the Output window. The output is straightforward:</p> <div class="wp-caption alignnone" id="attachment_871" aria-describedby="caption-attachment-871" style="width: 822px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG12.png"><img class="wp-image-871" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG12-300x169.png" alt="" width="822" height="463" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG12-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG12-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG12-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG12-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG12-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG12-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG12.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-871">SPSS screenshot © International Business Machines Corporation.</div></div> <p>In Chapter 3 we will learn that the mean of a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformed variable is zero and the standard deviation is one. That is confirmed here. If you left the “Save standardized values as variables” box checked when you ran this, you’ll get another variable added in the Data View window — the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform. It’s the same, the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform of a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform give back the same numbers. But note that the skewness (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-58d8f31c761a08729952c572eab931af_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="0.411" title="Rendered by QuickLaTeX.com" height="13" width="40" style="vertical-align: -1px;" />) of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformed variable is the same as the skewness of the original variable. This means that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transforming a variable doesn’t change anything about the variable except its mean and standard deviation. This is important when it comes to using and interpreting any analyses based on the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformed variable.</p> <p>Finally, let’s look at the Explore… menu:</p> <div class="wp-caption alignnone" id="attachment_873" aria-describedby="caption-attachment-873" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG13.png"><img class="wp-image-873" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG13-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG13-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG13-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG13-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG13-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG13-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG13-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG13.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-873">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Move CGagecat into the “Dependent List”. Don’t worry about “Factor List”, you should leave it blank (for future reference, “factor” is synonymous with “independent variable”):</p> <div class="wp-caption alignnone" id="attachment_874" aria-describedby="caption-attachment-874" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG14.png"><img class="wp-image-874" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG14-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG14-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG14-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG14-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG14-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG14-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG14-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG14.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-874">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Take a look at the Statistics… menu. You can leave it as it is (we’ll be learning about Confidence Intervals later):</p> <div class="wp-caption alignnone" id="attachment_875" aria-describedby="caption-attachment-875" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG15.png"><img class="wp-image-875" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG15-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG15-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG15-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG15-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG15-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG15-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG15-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG15.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-875">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Hit Continue and open the Plots… menu and check off the items as shown:</p> <div class="wp-caption alignnone" id="attachment_876" aria-describedby="caption-attachment-876" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG16.png"><img class="wp-image-876" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG16-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG16-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG16-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG16-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG16-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG16-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG16-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG16.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-876">SPSS screenshot © International Business Machines Corporation.</div></div> <p>We will talk about these different plots soon. For now, hit Continue, the OK and look at the output. First the tables:</p> <div class="wp-caption alignnone" id="attachment_877" aria-describedby="caption-attachment-877" style="width: 822px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG17.png"><img class="wp-image-877" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG17-300x169.png" alt="" width="822" height="463" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG17-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG17-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG17-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG17-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG17-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG17-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG17.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-877">SPSS screenshot © International Business Machines Corporation.</div></div> <p>The first table is a “missing data report” that many SPSS procedures will output as a matter of course. You can ignore the missing data reports. Pay attention to the “Descriptive” table (it is something you could be asked about on exams!). You can ignore the “Tests of Normality” table.&nbsp;Next the plots. The first one is a histogram:</p> <div class="wp-caption alignnone" id="attachment_878" aria-describedby="caption-attachment-878" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG18.png"><img class="wp-image-878" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG18-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG18-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG18-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG18-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG18-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG18-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG18-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG18.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-878">SPSS screenshot © International Business Machines Corporation.</div></div> <p>After we cover skewedness in Chapter 3, come back to this picture and note how the histogram is right skewed.</p> <p>Next is the stem and leaf plot. Remember that the way to a stem and leaf plot in SPSS is through the Explore menu:</p> <div class="wp-caption alignnone" id="attachment_879" aria-describedby="caption-attachment-879" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG19.png"><img class="wp-image-879" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG19-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG19-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG19-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG19-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG19-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG19-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG19-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG19.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-879">SPSS screenshot © International Business Machines Corporation.</div></div> <p>You can ignore the Q-Q plots but note that a boxplot is produced:</p> <div class="wp-caption alignnone" id="attachment_880" aria-describedby="caption-attachment-880" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG20.png"><img class="wp-image-880" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG20-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG20-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG20-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG20-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG20-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG20-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG20-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CareG20.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-880">SPSS screenshot © International Business Machines Corporation.</div></div> <p>This is not a very good boxplot. Again, we’ll be learning about boxplots later.</p> <p>Looking at stuff here in SPSS before covering the concepts in class is a very real situation that people face in real life. They will go to a program like SPSS in the hopes that it is all they need for data analysis. But it will likely produce output that you don’t understand if you don’t have a basic education in statistics. If provided with output from SPSS (e.g., on an exam) you should able to explain what the output means. For example, if given one of the tables shown above you should be able to determine what the standard deviation of a data set is and be able to use that number in a further calculation. It is also a good idea to do some calculations by hand when you first use SPSS for a procedure. If you can produce the same numbers as SPSS then you are sure you know what it is doing.</p> </div></div>
<div class="chapter standard" id="chapter-slug-2-4-rstudio-lesson-1-getting-started-with-rstudio" title="2.4 RStudio Lesson 1: Getting Started with RStudio"><div class="chapter-title-wrap"><h3 class="chapter-number">7</h3><h2 class="chapter-title">2.4 RStudio Lesson 1: Getting Started with RStudio</h2><h2 class="chapter-author">Osama Bataineh</h2></div><div class="ugc chapter-ugc"> <p>R is a free open source programing language widely used in statistical data analysis. It is very user friendly and it can be used in a variety of platforms such as MAC, Windows, LINUX, etc. R can be downloaded from <span style="background-color: #ffffff;"><a href="https://www.r-project.org/" target="_blank" rel="noopener noreferrer"><span style="color: #0000ff;">https://www.r-project.org/</span></a>.</span> In most of the cases, R is being used with RStudio. RStudio is basically an additional interface which makes R more user friendly with a lot of additional features. A desktop version of RStudio can be downloaded (for free) at <a href="https://rstudio.com/products/rstudio/download/" target="_blank" rel="noopener noreferrer">https://rstudio.com/products/rstudio/download/</a>. More details are in the Front Matter of this book, in the section “<a href="#front-matter-statistical-software" target="_blank" rel="noopener noreferrer">Statistical Software Used in this Book”</a>.</p> <p>When you open RStudio, you will see this :</p> <div class="wp-caption aligncenter" id="attachment_435" aria-describedby="caption-attachment-435" style="width: 797px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_1.png"><img class="wp-image-435" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_1-300x160.png" alt="" width="797" height="425" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_1-300x160.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_1-1024x545.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_1-768x409.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_1-1536x818.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_1-65x35.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_1-225x120.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_1-350x186.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_1.png 1907w" /></a><div class="wp-caption-text" id="caption-attachment-435">RStudio screenshot © the R Foundation.</div></div> <p>Here you can see four windows. In the upper left window, you will write your R commands. The output is shown in the console in the lower left. There are also ways to write commands in the console and subsequently get output in the following lines. The upper right window shows description of the dataset that you are working on such as number of variables, number of observations etc. Finally, the lower right window is showing different packages of R at the moment. We will talk more about the packages little later. The lower right window also has other purposes. For example, if you write commands to produce graphs, it will show here. It also shows the results of help command when you seek help regarding anything in R.</p> <p>Now let’s discuss a bit about how R functions. As the name suggests, R is a programming language. In other statistical packages such Stata, SPSS, EViews, Tableau etc., you have to choose the right options based on what results you want. However in R, rather than picking the right options and clicking on them, you have to write commands to get the desired output. To aid this process, there are different packages in R. These R packages were built for various purposes based on what analysis you want to do. Some of these packages are already built-in and installed. However, to use an existing installed package, you have to load it in every work secession before starting to use it. There are other packages of R which are not installed but available online. If you think these packages serve your purpose, then you have to install and load it before using it. Next time when you use these newly installed packages, you only have to load it in each work secession before starting to use it.</p> <p>Now let’s get started working with our dataset. First, download the dataset “HyperactiveChildren.sav” from the textbook <a href="#front-matter-data-sets" target="_blank" rel="noopener noreferrer">Data Sets</a>. Then open RStudio and go to File <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6a5598f6c52dfad4d548aabcf09fbca4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" />" title="Rendered by QuickLaTeX.com" height="11" width="12" style="vertical-align: 0px;"&gt; Import Dataset <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6a5598f6c52dfad4d548aabcf09fbca4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" />" title="Rendered by QuickLaTeX.com" height="11" width="12" style="vertical-align: 0px;"&gt; From SPSS.</p> <div class="wp-caption aligncenter" id="attachment_441" aria-describedby="caption-attachment-441" style="width: 791px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_2.png"><img class="wp-image-441" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_2-300x159.png" alt="" width="791" height="419" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_2-300x159.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_2-1024x542.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_2-768x406.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_2-1536x813.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_2-65x34.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_2-225x119.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_2-350x185.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/L1_R_2.png 1920w" /></a><div class="wp-caption-text" id="caption-attachment-441">RStudio screenshot © the R Foundation.</div></div> <p>After that, click the browse button in the pop-up window that will appear and select the dataset from the directory in which you have saved the data in your computer. Then click Import to insert the dataset in R. You can also do the same thing by manually executing the commands written in the Code Preview section by yourself.</p> <div class="wp-caption alignnone" id="attachment_957" aria-describedby="caption-attachment-957" style="width: 827px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-1-1.png"><img class="wp-image-957" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-1-1-300x169.png" alt="" width="827" height="466" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-1-1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-1-1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-1-1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-1-1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-1-1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-1-1-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-1-1.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-957">RStudio screenshot © the R Foundation.</div></div> <p>After inserting the data, you will see this in RStudio.</p> <div class="wp-caption alignnone" id="attachment_958" aria-describedby="caption-attachment-958" style="width: 827px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-2-1.png"><img class="wp-image-958" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-2-1-300x169.png" alt="" width="827" height="466" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-2-1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-2-1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-2-1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-2-1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-2-1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-2-1-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-2-1.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-958">RStudio screenshot © the R Foundation.</div></div> <p>Now we will write our commands in a new window in the upper left interface and save it in our desired folder in the computer to avoid rewriting the commands. This is known as R Script. To open a new R Script, click the arrow located just below and in between File and Edit and then select the first option R Script.</p> <div class="wp-caption alignnone" id="attachment_959" aria-describedby="caption-attachment-959" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-3-1.png"><img class="wp-image-959" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-3-1-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-3-1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-3-1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-3-1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-3-1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-3-1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-3-1-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-3-1.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-959">RStudio screenshot © the R Foundation.</div></div> <p>After selecting the R script, a new R Script will open in a separate window named Untitled1. Save this script with a suitable name in your desired directory on your computer by clicking the old fashioned floppy disk icon. I have saved the script with the name Lesson 1\_RScript in my computer.</p> <div class="wp-caption alignnone" id="attachment_961" aria-describedby="caption-attachment-961" style="width: 822px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-4.png"><img class="wp-image-961" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-4-300x169.png" alt="" width="822" height="463" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-4-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-4-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-4-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-4-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-4-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-4-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-4.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-961">RStudio screenshot © the R Foundation.</div></div> <p>Before starting to work, let’s get to know couple of things. Among these things, some are obligatory to know if anybody wants to work in R while others can make our life a lot easier and efficient. You can run the commands a lot quickly through the keyboard by clicking Ctrl and Enter. Other than the commands, you can also write notes in the R Script for your future references. To write anything other than the commands, just give a Hash (\#) sign in the beginning. Another thing you must know is that to work with any dataset in R after inserting it in the beginning, you have to attach it in the current work secession to work with it further. To attach the Smoking dataset for the current work secession, run the following command.</p> <p>&gt; attach(Hyperactive_Children)</p> <p>Now let’s start working with our dataset. Similar to other software packages, a variable has to be numeric to use it for statistical analysis. Thus any qualitative string variable needs to be transformed into numeric quantitative variable if we want to conduct analysis with it. In our dataset, the variable sex&nbsp; is a qualitative string variable with two categories male and female. Let’s create a new variable sex\_new which will take the value 1 for male and 2 for female. We can do it with the help of the function <em>ifelse</em>.</p> <p>&gt; Hyperactive_Children$Sex_new &lt;- ifelse(Hyperactive_Children$Sex==1,1,ifelse(Hyperactive_Children$Sex<br /> ==2,2,NA))</p> <p>A new variable Hyperactive_Children\_new is being created. If we view the data by running the following command, we will see that at the end an additional column is being created named Hyperactive_Children which has numeric values of 1 and 2 only.</p> <p>&gt; View(Hyperactive_Children)</p> <div class="wp-caption alignnone" id="attachment_968" aria-describedby="caption-attachment-968" style="width: 820px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-5.png"><img class="wp-image-968" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-5-300x169.png" alt="" width="820" height="462" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-5-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-5-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-5-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-5-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-5-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-5-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-5.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-968">RStudio screenshot © the R Foundation.</div></div> <p>Here a thing to be noted is the use of dollar sign ($). The dollar sign basically calls the variable mentioned after it from the dataset mentioned prior to it or generates the new one mentioned after the sign to the dataset mentioned prior to it.</p> <p>To get the frequency distribution of any variable in R similar in the way it’s shown in many statistics textbook, you have to write codes for each of the columns separately. For example- to get the frequencies, cumulative frequencies, relative frequencies etc. – you have to write separate commands unless you are a program wizard and able to create an R package which will produce such table. First to get the frequency of a variable for its different categories, we can use the function <em>table</em>.</p> <p><span style="text-align: initial; font-size: 1em;">&gt; Age.freq &lt;- table(Hyperactive_Children$Age)</span></p> <p><span style="text-align: initial; font-size: 1em;">&gt; Age.freq&nbsp;</span></p> <p>6 7 8 9 10 11 12<br /> 2 1 2 3&nbsp; 3&nbsp; 2&nbsp; 2</p> <p>&gt; cbind(Age.freq)<br /> Age.freq<br /> 6&nbsp; &nbsp; &nbsp; 2<br /> 7&nbsp; &nbsp; &nbsp; &nbsp;1<br /> 8&nbsp; &nbsp; &nbsp; 2<br /> 9&nbsp; &nbsp; &nbsp; 3<br /> 10&nbsp; &nbsp; 3<br /> 11&nbsp; &nbsp; &nbsp;2<br /> 12&nbsp; &nbsp; 2</p> <p>Here for a better presentation purpose, we have used another function <em>cbind</em> which basically shows the values of the variable and the number of observation it contains in a column. Then to get the cumulative frequencies, we can utilize the function <em>cumsum</em>.</p> <p>&gt; Age.cumfreq &lt;- cumsum(table(Hyperactive_Children$Age))<br /> &gt; cbind(Age.freq, Age.cumfreq)</p> <p>Age.freq&nbsp; &nbsp; &nbsp;Age.cumfreq<br /> 6&nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2<br /> 7&nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3<br /> 8&nbsp; &nbsp; &nbsp; &nbsp;2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5<br /> 9&nbsp; &nbsp; &nbsp; &nbsp;3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 8<br /> 10&nbsp; &nbsp; &nbsp;3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 11<br /> 11&nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 13<br /> 12&nbsp; &nbsp; &nbsp;2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 15</p> <p>To produce pie chart, there is a specific function <em>pie</em> in R. However, since we need the pie chart of the frequency, we have to input <span style="text-align: initial; font-size: 1em;">table(Hyperactive_Children$Age)</span> inside <em>pie</em>. The output will be shown in the lower right window.</p> <p><span style="text-align: initial; font-size: 1em;">&gt; pie(table(Hyperactive_Children$Age))</span></p> <div class="wp-caption alignnone" id="attachment_981" aria-describedby="caption-attachment-981" style="width: 822px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-6.png"><img class="wp-image-981" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-6-300x169.png" alt="" width="822" height="463" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-6-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-6-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-6-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-6-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-6-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-6-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-6.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-981">RStudio screenshot © the R Foundation.</div></div> <p>Now let’s have a look at the descriptive statistics of this variable Educ. To calculate descriptive statistics, we need to install a specific package named <em>psych</em>. After installing and loading this package, we have to use the function <em>describe</em> which is a part of this new package. If any warning signs come, please ignore it.</p> <p><span style="text-align: initial; font-size: 1em;">&gt; library(psych)</span></p> <p>&gt; describe(<span style="text-align: initial; font-size: 1em;">Hyperactive_Children$Age</span>)</p> <p>vars n mean sd median trimmed mad min max range skew kurtosis se<br /> X1 1&nbsp; &nbsp; 15&nbsp; &nbsp;9.2 1.93&nbsp; &nbsp; &nbsp; 9&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;9.23&nbsp; &nbsp; &nbsp; &nbsp;1.48&nbsp; &nbsp; 6&nbsp; &nbsp; &nbsp;12&nbsp; &nbsp; &nbsp; 6&nbsp; &nbsp; &nbsp; &nbsp; -0.21 -1.18&nbsp; &nbsp; &nbsp; 0.5</p> <p>Similarly to get the confidence interval, you need another new package named <em>Rmisc</em>. While installing this package you have to keep the dependencies to true. After installing and loading this package, we have to use one of it’s function <em>CI</em> to get the confidence interval. Also remember that in addition to inserting <span style="text-align: initial; font-size: 1em;">Hyperactive_Children$Age </span>in the domain of the function, you have to also specify the level of confidence interval. Ignore the warning signs here too.</p> <p>&gt; install.packages(‘Rmisc’, dependencies = TRUE)<br /> &gt; library(Rmisc)</p> <p>&gt; CI(Hyperactive_Children$Age, ci = 0.95)<br /> upper&nbsp; &nbsp; &nbsp; &nbsp; mean&nbsp; &nbsp; &nbsp; &nbsp; lower<br /> 10.271372 9.200000 8.128628</p> <p>Finally, to produce the histogram, stem and leaf display and boxplot, there are specific functions in R with their names. These functions are <em>hist</em>, <em>stem</em> and <em>boxplot</em>&nbsp;respectively.</p> <p>&gt; hist(Hyperactive_Children$Age)</p> <div class="wp-caption alignnone" id="attachment_999" aria-describedby="caption-attachment-999" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-7.png"><img class="wp-image-999" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-7-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-7-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-7-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-7-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-7-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-7-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-7-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-7.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-999">RStudio screenshot © the R Foundation.</div></div> <p>&gt; stem(Hyperactive_Children$Age)</p> <p>The decimal point is at the |</p> <p>6 | 000<br /> 8 | 00000<br /> 10 | 00000<br /> 12 | 00</p> <p>&gt; boxplot(Hyperactive_Children$Age)</p> <div class="wp-caption alignnone" id="attachment_1002" aria-describedby="caption-attachment-1002" style="width: 827px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-8.png"><img class="wp-image-1002" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-8-300x169.png" alt="" width="827" height="466" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-8-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-8-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-8-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-8-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-8-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-8-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Hyp-Rstud-8.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1002">RStudio screenshot © the R Foundation.</div></div> <p>&nbsp;</p> </div></div>
<div class="part " id="part-slug-3-descriptive-statistics-central-tendency-and-dispersion"><div class="part-title-wrap"><h3 class="part-number">III</h3><h1 class="part-title">3. Descriptive Statistics: Central Tendency and Dispersion</h1></div><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-3-1-central-tendency-mean-median-mode" title="3.1 Central Tendency: Mean, Median, Mode"><div class="chapter-title-wrap"><h3 class="chapter-number">8</h3><h2 class="chapter-title">3.1 Central Tendency: Mean, Median, Mode</h2></div><div class="ugc chapter-ugc">
<p>Mean, median and mode are measures of the central tendency of the data. That is, as data are collected while sampling from a population, there values will tend to cluster around these measures. Let’s define them one by one.</p> <h1 id="chapter-43-section-1" class="section-header">3.1.1 Mean</h1> <p>The mean is the average of the data. We distinguish between a sample mean and a population mean with the following symbols :</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8d09d1ae1cfee27e1141f67b640f0abc_l3.svg" height="17" width="138" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\bar{x} = sample\hspace{.1cm}mean\]" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f90f0928a3f1c583f266e90dc96d730f_l3.svg" height="17" width="166" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\mu   = population\hspace{.1cm}mean\]" title="Rendered by QuickLaTeX.com" /></p> <p>The formula for a sample mean is :</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 38px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8c9e3f100f3e1098c11fc63155186bfe_l3.svg" height="38" width="97" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \bar{x} = \frac{ \sum_{i=1}^{n} x_{i} }{n} \]" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is the number of data points in the sample, the <em>sample size</em>. For a population, the formula is</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae4c8d629c1ccba95c95b7f7ec3d071f_l3.svg" height="42" width="97" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \mu = \frac{ \sum_{i=1}^{N} x_{i} }{N} \]" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5793832f979c2268e3694c246d53b1bb_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="N" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: 0px;" /> is the size of the population.</p> <p><strong>Example 3.1</strong> :&nbsp;Find the mean of the following data set :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 100%;"><tbody><tr><td style="width: 10%; text-align: center;">84</td> <td style="width: 10%; text-align: center;">12</td> <td style="width: 10%; text-align: center;">27</td> <td style="width: 10%; text-align: center;">15</td> <td style="width: 10%; text-align: center;">40</td> <td style="width: 10%; text-align: center;">18</td> <td style="width: 10%; text-align: center;">33</td> <td style="width: 10%; text-align: center;">33</td> <td style="width: 10%; text-align: center;">14</td> <td style="width: 10%; text-align: center;">4</td> </tr> <tr><td style="width: 10%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1ee89d257836594b43959a4b9ba70cc6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{1}" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: -4px;" /></td> <td style="width: 10%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1b8f7c11a53579abfdd4b94207dfc798_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{2}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> <td style="width: 10%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f8da9f892e82a1b725a090cd05fd186f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{3}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> <td style="width: 10%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e21b17f7b96942f7faaafc2c3982c3b0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{4}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> <td style="width: 10%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-44e2d69de7a94973b9083bc39dc2ecde_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{5}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> <td style="width: 10%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a41b84c4ae07c3a1a1503b8897103739_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{6}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> <td style="width: 10%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2e683d52cf31c852571fea53755df9e1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{7}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> <td style="width: 10%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fe7ae8e0e1261f641c8c8152c05123a6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{8}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> <td style="width: 10%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fd589345bf6374c2db7b280db5fe4c5d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{9}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> <td style="width: 10%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-032658c147319dda9cff9998ef901604_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{10}" title="Rendered by QuickLaTeX.com" height="12" width="24" style="vertical-align: -4px;" /></td> </tr> </tbody> </table> <p>To illustrate how the indexed symbols that represent the data in the formula work, they have been written below the data values. To get in the habit, let’s organize our data as a table. We will need to do that for more complicated formulae and also that’s how you need to enter data into SPSS, as a column of numbers :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 3.29324%; height: 107px;"><tbody><tr style="height: 14px;"><td class="shaded" style="width: 50%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /></td> <td class="shaded" style="width: 50%; text-align: center; height: 14px;">label</td> </tr> <tr style="height: 30px;"><td style="width: 50%; height: 30px; text-align: center;">84</td> <td style="width: 50%; height: 30px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1ee89d257836594b43959a4b9ba70cc6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{1}" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">12</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1b8f7c11a53579abfdd4b94207dfc798_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{2}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">27</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f8da9f892e82a1b725a090cd05fd186f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{3}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">15</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e21b17f7b96942f7faaafc2c3982c3b0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{4}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">40</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-44e2d69de7a94973b9083bc39dc2ecde_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{5}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">18</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a41b84c4ae07c3a1a1503b8897103739_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{6}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">33</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2e683d52cf31c852571fea53755df9e1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{7}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">33</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fe7ae8e0e1261f641c8c8152c05123a6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{8}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">14</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fd589345bf6374c2db7b280db5fe4c5d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{9}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">4</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-032658c147319dda9cff9998ef901604_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{10}" title="Rendered by QuickLaTeX.com" height="12" width="24" style="vertical-align: -4px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 50%; text-align: center; height: 14px;">Total = 280</td> <td style="width: 50%; text-align: center; height: 14px;"></td> </tr> </tbody> </table> <p>Since <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a545146ef1b6216866958e2b6d2fc003_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n = 10" title="Rendered by QuickLaTeX.com" height="13" width="52" style="vertical-align: -1px;" /> we have <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-eb08456406cc3b0df26de85e1bb1852d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x} = \frac{\sum x_{i}}{n} = \frac{280}{10} = 28" title="Rendered by QuickLaTeX.com" height="25" width="157" style="vertical-align: -7px;" />.</p> <p style="text-align: right;">☐</p> <p><strong>Mean for grouped data</strong> : If you have a frequency table for a dataset but not the actual data, you can still compute the (approximate) mean of the dataset. This somewhat artificial situation for datasets will be a fundamental situation when we consider probability distributions. The formula for the mean of grouped data is</p> <p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">(3.1) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f2e3a98e54ce9e90d4c8d58b256be18c_l3.svg" height="42" width="124" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*}  \bar{x} = \frac{ \sum_{i=1}^{G} f_i x_{m_{i}}}{n}\ \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-40bfe09f34d89df3e344bfbaaf73d8ef_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="f_{i}" title="Rendered by QuickLaTeX.com" height="16" width="14" style="vertical-align: -4px;" /> is the frequency of group <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="i" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-08e68cb37d295630698f596e678674c4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{m_{i}}" title="Rendered by QuickLaTeX.com" height="13" width="26" style="vertical-align: -5px;" /> is the <em>class center</em> of group <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="i" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is the number of data points in the original dataset. Recall that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cde2901295b08f1fe7f90b9764bf290d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n = \sum f_{i}" title="Rendered by QuickLaTeX.com" height="18" width="70" style="vertical-align: -5px;" /> so we can write this formula as</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bb15275e22d90721288a947c3ff86aa3_l3.svg" height="51" width="124" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\bar{x} = \frac{ \sum_{i=1}^{G} f_i x_{m_{i}}}{\sum_{i=1}^{G} f_{i}}\]" title="Rendered by QuickLaTeX.com" /></p> <p>which is a form that more closely matches with a generic weighted mean formula; the formula for the mean of grouped data is a special case of a more general weighted mean that we will look at next. The <em>class center</em>&nbsp;is literally the center of the class — the next example shows how to find it.</p> <p><strong>Example 3.2</strong>&nbsp;: Find the mean of the dataset summarized in the following frequency table.</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 99.8788%; height: 126px;"><tbody><tr style="height: 14px;"><td class="shaded" style="width: 20%; height: 14px; text-align: center;">Class</td> <td class="shaded" style="width: 20%; height: 14px; text-align: center;">Class Boundaries</td> <td class="shaded" style="width: 20%; height: 14px; text-align: center;">Frequency, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-40bfe09f34d89df3e344bfbaaf73d8ef_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="f_{i}" title="Rendered by QuickLaTeX.com" height="16" width="14" style="vertical-align: -4px;" /></td> <td class="shaded" style="width: 20%; height: 14px; text-align: center;">Midpoint, x_{m_{i}}</td> <td class="shaded" style="width: 20%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7a63aaaecc93964b57947cc309daab35_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="f_{i}x_{m_{i}}" title="Rendered by QuickLaTeX.com" height="17" width="40" style="vertical-align: -5px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 20%; height: 14px; text-align: center;">1</td> <td style="width: 20%; height: 14px; text-align: center;">5.5 – 10.5</td> <td style="width: 20%; height: 14px; text-align: center;">1</td> <td style="width: 20%; height: 14px; text-align: center;">8</td> <td style="width: 20%; height: 14px; text-align: center;">8</td> </tr> <tr style="height: 14px;"><td style="width: 20%; height: 14px; text-align: center;">2</td> <td style="width: 20%; height: 14px; text-align: center;">10.5 – 15.5</td> <td style="width: 20%; height: 14px; text-align: center;">2</td> <td style="width: 20%; height: 14px; text-align: center;">13</td> <td style="width: 20%; height: 14px; text-align: center;">26</td> </tr> <tr style="height: 14px;"><td style="width: 20%; height: 14px; text-align: center;">3</td> <td style="width: 20%; height: 14px; text-align: center;">15.5 – 20.5</td> <td style="width: 20%; height: 14px; text-align: center;">3</td> <td style="width: 20%; height: 14px; text-align: center;">18</td> <td style="width: 20%; height: 14px; text-align: center;">54</td> </tr> <tr style="height: 14px;"><td style="width: 20%; height: 14px; text-align: center;">4</td> <td style="width: 20%; height: 14px; text-align: center;">20.5 – 25.5</td> <td style="width: 20%; height: 14px; text-align: center;">5</td> <td style="width: 20%; height: 14px; text-align: center;">23</td> <td style="width: 20%; height: 14px; text-align: center;">115</td> </tr> <tr style="height: 14px;"><td style="width: 20%; height: 14px; text-align: center;">5</td> <td style="width: 20%; height: 14px; text-align: center;">25.5 – 30.5</td> <td style="width: 20%; height: 14px; text-align: center;">4</td> <td style="width: 20%; height: 14px; text-align: center;">28</td> <td style="width: 20%; height: 14px; text-align: center;">112</td> </tr> <tr style="height: 14px;"><td style="width: 20%; height: 14px; text-align: center;">6</td> <td style="width: 20%; height: 14px; text-align: center;">30.5 – 35.5</td> <td style="width: 20%; height: 14px; text-align: center;">3</td> <td style="width: 20%; height: 14px; text-align: center;">33</td> <td style="width: 20%; height: 14px; text-align: center;">99</td> </tr> <tr style="height: 14px;"><td style="width: 20%; height: 14px; text-align: center;">7</td> <td style="width: 20%; height: 14px; text-align: center;">35.5 – 40.5</td> <td style="width: 20%; height: 14px; text-align: center;">2</td> <td style="width: 20%; height: 14px; text-align: center;">38</td> <td style="width: 20%; height: 14px; text-align: center;">76</td> </tr> <tr style="height: 14px;"><td style="width: 20%; height: 14px; text-align: center;">sums</td> <td style="width: 20%; height: 14px; text-align: center;"></td> <td style="width: 20%; height: 14px; text-align: center;">n=<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5832ffbe8387852b09cc7bfab81f59f7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sum f_{i}" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -5px;" /> = 20</td> <td style="width: 20%; height: 14px; text-align: center;"></td> <td style="width: 20%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fb72e93b6e4dc4e59df1d46b747b1496_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sum f_{i}x_{m_{i}}" title="Rendered by QuickLaTeX.com" height="18" width="62" style="vertical-align: -5px;" /> = 490</td> </tr> </tbody> </table> <p><strong>Solution</strong> : The first step is to write down the formula to cue you to what quantities you need to compute :</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 38px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d2629ac4c2f7d2f24c82995cd121487e_l3.svg" height="38" width="106" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\bar{x} = \frac{\sum_{i} f_{i} x_{m_{i}}}{n}\]" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: left;">We need the sum in the numerator and the value for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> in the denominator. Get the numbers from the sums of the columns as shown in the frequency table :</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 38px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ee633d6e6fcd8a972dcb3adf8f6d2312_l3.svg" height="38" width="216" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\bar{x} = \frac{\sum_{i} f_i x_{m_{i}}}{n} = \frac{490}{20} = 24.5\]" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: right;">☐</p> <p>Note that the grouped data formula gives an approximation of the mean of the original dataset in the following way. The exact mean is given by</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 45px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4c2172ead2d9b646fc35645ff2f2f2e6_l3.svg" height="45" width="253" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\bar{x} = \frac{\sum_{i=1}^{n} x_{i}}{n} = \frac{\sum_{j=1}^{G} (\sum_{k=1}^{f_{i}} x_{k} ) }{n}.\]" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: left;">So the approximation is that</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 55px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-70987fb9401f0dce3305844961f7b08f_l3.svg" height="55" width="111" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\sum_{k=1}^{f_{i}} x_{k} = f_{i} x_{m_{i}}\]" title="Rendered by QuickLaTeX.com" /></p> <p>which would be exact only if all <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-38bcee04814a90df8d8c1bd777a2a002_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{k}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /> in group <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="i" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> were equal to the class center <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-08e68cb37d295630698f596e678674c4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{m_{i}}" title="Rendered by QuickLaTeX.com" height="13" width="26" style="vertical-align: -5px;" />.</p> <p><strong>Generic Weighted Mean</strong> : The general formula for weighted mean is</p> <p class="ql-center-displayed-equation" style="line-height: 45px;"><span class="ql-right-eqno">(3.2) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d680148c1db0a751cfd38f2dcda32207_l3.svg" height="45" width="114" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*}  \bar{x} = \frac{\sum_{i=1}^{n} w_{i} x_{i}}{\sum_{i=1}^{n} w_{i}} \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4bb422554ce7070ee57d327ac4bac198_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="w_{i}" title="Rendered by QuickLaTeX.com" height="11" width="18" style="vertical-align: -3px;" /> is the <em>weight</em>&nbsp;for data point <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="i" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />. Weights can be assigned to data points for a variety of reasons. In the formula for grouped data, as a weighted mean, treats the class centers as data points and the group frequencies as weights. The next example weights grades.</p> <p><strong>Example 3.3</strong> : In this example grades are weighted by credit units. The weights are as given in the table :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 100%;"><tbody><tr><td class="shaded" style="width: 25%; text-align: center;">Course</td> <td class="shaded" style="width: 25%; text-align: center;">Credit Units, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4bb422554ce7070ee57d327ac4bac198_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="w_{i}" title="Rendered by QuickLaTeX.com" height="11" width="18" style="vertical-align: -3px;" /></td> <td class="shaded" style="width: 25%; text-align: center;">Grade, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{i}" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /></td> <td class="shaded" style="width: 25%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8a5a84c1df8bd3ec80b1c1b1b16857e2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="w_{i}x_{i}" title="Rendered by QuickLaTeX.com" height="11" width="33" style="vertical-align: -3px;" /></td> </tr> <tr><td style="width: 25%; text-align: center;">English</td> <td style="width: 25%; text-align: center;">3</td> <td style="width: 25%; text-align: center;">80</td> <td style="width: 25%; text-align: center;">240</td> </tr> <tr><td style="width: 25%; text-align: center;">Psych</td> <td style="width: 25%; text-align: center;">3</td> <td style="width: 25%; text-align: center;">75</td> <td style="width: 25%; text-align: center;">225</td> </tr> <tr><td style="width: 25%; text-align: center;">Biology</td> <td style="width: 25%; text-align: center;">4</td> <td style="width: 25%; text-align: center;">60</td> <td style="width: 25%; text-align: center;">240</td> </tr> <tr><td style="width: 25%; text-align: center;">PhysEd</td> <td style="width: 25%; text-align: center;">2</td> <td style="width: 25%; text-align: center;">82</td> <td style="width: 25%; text-align: center;">164</td> </tr> <tr><td style="width: 25%; text-align: center;"></td> <td style="width: 25%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-27f8895207d5f1b93c7ebf80491286d0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sum w_{i}" title="Rendered by QuickLaTeX.com" height="18" width="40" style="vertical-align: -5px;" /> = 12</td> <td style="width: 25%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a04e68275e12fcd99459cca3cecba568_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sum x_{i}" title="Rendered by QuickLaTeX.com" height="18" width="37" style="vertical-align: -5px;" /> = 297</td> <td style="width: 25%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e0172332d4073b0f48276a4d503d91da_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sum w_{i}x_{i}" title="Rendered by QuickLaTeX.com" height="18" width="55" style="vertical-align: -5px;" /> = 869</td> </tr> </tbody> </table> <p>The formula for weighted mean is</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-62686980f0f74dbe022b31446868ffaa_l3.svg" height="42" width="92" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\bar{x} = \frac{\sum w_i x_i}{\sum w_i}\]" title="Rendered by QuickLaTeX.com" /></p> <p>so we need two sums. The double bars in the table above separate given data from columns added for calculation purposes. We will be using this convention with the double bars in other procedures to come. Using the sums for the table we get</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8e58126e0f00acaf6d094d5751414ab0_l3.svg" height="42" width="203" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\bar{x} = \frac{\sum w_i x_i}{\sum w_i} = \frac{869}{12} = 72.4\]" title="Rendered by QuickLaTeX.com" /></p> <p>Note, that the unweighted mean for these data is</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 39px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fa10f43b23c066feb623bbbcb002999b_l3.svg" height="39" width="184" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\bar{x} = \frac{\sum x_i}{n} = \frac{297}{4} = 74.3\]" title="Rendered by QuickLaTeX.com" /></p> <p>which is, of course, different from the weighted sum.</p> <p style="text-align: right;">☐</p> <h1 id="chapter-43-section-2" class="section-header">3.1.2 Median</h1> <p>The symbol we use for median is MD and it is the midpoint of the data set with the data put in order. We illustrate this with a couple of examples :</p> <ul><li>&nbsp;If there are an odd number of data points, MD is the middle number.</li> </ul> <p style="text-align: center;">Given data in order:&nbsp; 180&nbsp; 186&nbsp; 191&nbsp; 201&nbsp; 209&nbsp; 219&nbsp; 220</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7d3b950abb9cd4a949bf23d9e7fc7da9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\uparrow" title="Rendered by QuickLaTeX.com" height="17" width="9" style="vertical-align: -4px;" /></p> <p style="text-align: center;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-95e2075b25d2305d26315fc4ebd2486d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="MD = 201" title="Rendered by QuickLaTeX.com" height="13" width="84" style="vertical-align: -1px;" /></p> <ul><li>If there are an even number of data points, MD is the average of the two middle points :</li> </ul> <p style="text-align: center;">&nbsp;Given data in order:&nbsp; 656&nbsp; 684&nbsp; 702&nbsp; 764&nbsp; 856&nbsp; 1132&nbsp; 1133&nbsp; 1303</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7d3b950abb9cd4a949bf23d9e7fc7da9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\uparrow" title="Rendered by QuickLaTeX.com" height="17" width="9" style="vertical-align: -4px;" />&nbsp; &nbsp; &nbsp; &nbsp;<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7d3b950abb9cd4a949bf23d9e7fc7da9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\uparrow" title="Rendered by QuickLaTeX.com" height="17" width="9" style="vertical-align: -4px;" /></p> <p style="text-align: center;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2960d8312616ade78b2cf0b4de25b92a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="MD = \frac{764 + 856}{2} = 810" title="Rendered by QuickLaTeX.com" height="22" width="164" style="vertical-align: -6px;" /></p> <p>In these examples, the tedious work of putting the data in order from smallest to largest was done for us. With a random bunch of numbers, the work of finding the median is mostly putting the data in order.</p> <h1 id="chapter-43-section-3" class="section-header">3.1.3 Mode</h1> <p>In a given dataset the mode is the data value that occurs the most. Note that :</p> <ul><li>it may be there is no mode.</li> <li>there may be more than one mode.</li> </ul> <p><strong>Example 3.4 :&nbsp;</strong> In the dataset</p> <p style="text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-10980fb6b5001f21df0aa4b79f678a73_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\underline{8}" title="Rendered by QuickLaTeX.com" height="15" width="9" style="vertical-align: -3px;" />, 9, 9, 14, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-10980fb6b5001f21df0aa4b79f678a73_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\underline{8}" title="Rendered by QuickLaTeX.com" height="15" width="9" style="vertical-align: -3px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-10980fb6b5001f21df0aa4b79f678a73_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\underline{8}" title="Rendered by QuickLaTeX.com" height="15" width="9" style="vertical-align: -3px;" />, 10, 7, 6, 9, 7, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-10980fb6b5001f21df0aa4b79f678a73_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\underline{8}" title="Rendered by QuickLaTeX.com" height="15" width="9" style="vertical-align: -3px;" />, 10, 14, 11, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-10980fb6b5001f21df0aa4b79f678a73_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\underline{8}" title="Rendered by QuickLaTeX.com" height="15" width="9" style="vertical-align: -3px;" />, 14, 11</p> <p>8 occurs 5 times, more than any other number. So the <em>mode is 8</em>.</p> <p style="text-align: right;">☐</p> <p><strong>Example 3.5 :&nbsp;</strong> The dataset</p> <p style="text-align: center;">110, 731, 1031, 84, 20, 118, 1162, 1977, 103, 72</p> <p>has no mode. Do not say that the mode is zero. Zero is not in the dataset.</p> <p style="text-align: right;">☐</p> <p><strong>Example 3.6</strong><strong>&nbsp;: </strong>The dataset</p> <p style="text-align: center;">15, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6201b3235940c6fe574d789e615ffba8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\underline{18, 18, 18,}" title="Rendered by QuickLaTeX.com" height="18" width="74" style="vertical-align: -6px;" /> 20, 22, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-94022410d8663e6c86ca8576e6113100_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\underline{24, 24, 24,}" title="Rendered by QuickLaTeX.com" height="18" width="74" style="vertical-align: -6px;" /> 26, 26</p> <p>has two modes: 18 and 24. This data set is <em>bimodal</em>.</p> <p>The concept of mode really makes more sense for frequency table/histogram data.</p> <p style="text-align: right;">☐</p> <p><strong>Example 3.7</strong> <strong>:</strong> The mode of the following frequency table data is the class with the highest frequency.</p> <table class="grid alignleft" style="border-collapse: collapse; width: 75.2727%; height: 112px;"><tbody><tr style="height: 14px;"><td class="shaded" style="width: 33.3333%; height: 14px; text-align: center;">Class</td> <td class="shaded" style="width: 33.3333%; height: 14px; text-align: center;">Class Boundaries</td> <td class="shaded" style="width: 33.3333%; height: 14px; text-align: center;">Freq</td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; height: 14px; text-align: center;">1</td> <td style="width: 33.3333%; height: 14px; text-align: center;">5.5 – 10.5</td> <td style="width: 33.3333%; height: 14px; text-align: center;">1</td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; height: 14px; text-align: center;">2</td> <td style="width: 33.3333%; height: 14px; text-align: center;">10.5 – 15.5</td> <td style="width: 33.3333%; height: 14px; text-align: center;">2</td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; height: 14px; text-align: center;">3</td> <td style="width: 33.3333%; height: 14px; text-align: center;">15.5 – 20.5</td> <td style="width: 33.3333%; height: 14px; text-align: center;">3</td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; height: 14px; text-align: center;">4</td> <td style="width: 33.3333%; height: 14px; text-align: center;">20.5 – 25.5</td> <td style="width: 33.3333%; height: 14px; text-align: center;">5 (Modal Class)</td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; height: 14px; text-align: center;">5</td> <td style="width: 33.3333%; height: 14px; text-align: center;">25.5 – 30.5</td> <td style="width: 33.3333%; height: 14px; text-align: center;">4</td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; height: 14px; text-align: center;">6</td> <td style="width: 33.3333%; height: 14px; text-align: center;">30.5 – 35.5</td> <td style="width: 33.3333%; height: 14px; text-align: center;">3</td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; height: 14px; text-align: center;">7</td> <td style="width: 33.3333%; height: 14px; text-align: center;">35.5 – 40.5</td> <td style="width: 33.3333%; height: 14px; text-align: center;">2</td> </tr> </tbody> </table> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p style="text-align: right;">☐</p> <h1 id="chapter-43-section-4" class="section-header">3.1.4 Midrange</h1> <p>The midrange, which we’ll denote symbolically by MR, is defined simply by</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 37px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8d7a190d87fb5815765e7f41d94bf812_l3.svg" height="37" width="105" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\mbox{MR} = \frac{H+L}{2}\]" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-379db1fc1f84b7ce56b92463183097f9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-66a9f474fc3c52efdfb0ba6a70199ee8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="L" title="Rendered by QuickLaTeX.com" height="12" width="12" style="vertical-align: 0px;" /> are the high and low data values.</p> <p><strong>Example 3.8</strong> : Given the following data : 2,&nbsp; 3,&nbsp; 6,&nbsp; 8,&nbsp; 4,&nbsp; 1. We have</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 36px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8a19b53fbdc884f993cdec19ff696bfd_l3.svg" height="36" width="141" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\mbox{MR} = \frac{8+1}{2} = 4.5\]" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: right;">☐</p> <h1 id="chapter-43-section-5" class="section-header">3.1.5 Mean, Median and Mode in Histograms: Skewness</h1> <p>If the shape of the histogram of a dataset is not too bizarre<span class="footnote">For the purposes of deciding the skewness of a dataset in assignments and exams, you can assume that the histogram shape is not too bizarre.</span> (e.g. unimodal) then we may determine the <em>skewness</em>&nbsp;of the dataset’s histogram (which would be a probability distribution of the data represented a population and not a sample) by comparing the mean or median to the mode. (Always compare something to the mode, no reliable information comes from comparing the median and mean.) If you have SPSS output with the skewness number calculated (we will see the formula for skewness later) then a left skewed distribution will have a negative skewness value, a symmetric distribution will have a skewness of 0 and, a right skewed distribution will have a positive skewness value.</p> <div class="wp-caption aligncenter" id="attachment_566" aria-describedby="caption-attachment-566" style="width: 435px"><img class="wp-image-566" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig11png-300x189.png" alt="" width="435" height="274" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig11png-300x189.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig11png-65x41.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig11png-225x142.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig11png-350x221.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig11png.png 639w" /><div class="wp-caption-text" id="caption-attachment-566">Figure 3.1: A right skewed histogram (or distribution) generally has the mean and median to the right, or positive side of the mode. The tail of the histogram stretches to the right or positive side.</div></div> <p><strong>Symmetric distribution</strong></p> <div class="wp-caption aligncenter" id="attachment_570" aria-describedby="caption-attachment-570" style="width: 404px"><img class="wp-image-570" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig12png-300x200.png" alt="" width="404" height="269" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig12png-300x200.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig12png-65x43.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig12png-225x150.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig12png-350x234.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig12png.png 636w" /><div class="wp-caption-text" id="caption-attachment-570">Figure 3.2: A symmetric distribution (histogram) has the mean, median and mode all in the same place. Its shape is symmetric.</div></div> <p><strong>Negatively skewed or left skewed histograms</strong></p> <div class="wp-caption aligncenter" id="attachment_571" aria-describedby="caption-attachment-571" style="width: 406px"><img class="wp-image-571" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig13png-300x179.jpg" alt="" width="406" height="242" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig13png-300x179.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig13png-65x39.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig13png-225x134.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig13png-350x209.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig13png.jpg 614w" /><div class="wp-caption-text" id="caption-attachment-571">Figure 3.3: A left skewed histogram (or distribution) generally has the mean and median to the left, or negative side of the mode. The tail of the histogram stretches to the left or negative side.</div></div> <h1 id="chapter-43-section-6" class="section-header">3.1.6 Mean, Median and Mode in Distributions: Geometric Aspects</h1> <p>To understand the geometrical aspects of histograms we make the abstraction of letting the class widths shrink to zero so that the histogram curve becomes smooth. So let’s consider the mode, median and mean in turn.</p> <p><strong>Mode</strong></p> <p>The mode is the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> value where the frequency <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a7ee323bc5a3f73ad5e066b13bed5504_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="f(x)" title="Rendered by QuickLaTeX.com" height="18" width="34" style="vertical-align: -4px;" /> is maximum, see Figure 3.4. More accurately the mode is a “local maximum” of the histogram<span class="footnote">**In calculus terms, local maximums and minimums (and inflexion points) are where the derivative equals zero, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e942d46b7822f7509c9877a7de63ae88_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\frac{df}{dx}=0" title="Rendered by QuickLaTeX.com" height="23" width="49" style="vertical-align: -6px;" />.</span> (so if there are multiple modes, they don’t all have to have the same maximum value).</p> <div class="wp-caption aligncenter" id="attachment_573" aria-describedby="caption-attachment-573" style="width: 466px"><img class="wp-image-573" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig14png-300x143.jpg" alt="" width="466" height="222" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig14png-300x143.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig14png-65x31.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig14png-225x107.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig14png-350x167.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig14png.jpg 728w" /><div class="wp-caption-text" id="caption-attachment-573">Figure 3.4: The mode is the maximum of the histogram (distribution).</div></div> <p><strong>Median</strong></p> <p>The area under the curve is equal on either side of the median. In Figure 3.5 each area <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-25b206f25506e6d6f46be832f7119ffa_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="A" title="Rendered by QuickLaTeX.com" height="12" width="13" style="vertical-align: 0px;" /> is the same. For relative frequencies (and so for probabilities) the total area under the curve is one. So the area on each side of the median is half. The median represents the 50/50 probability point; it is equally probable that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> is below the median as above it.</p> <div class="wp-caption aligncenter" id="attachment_577" aria-describedby="caption-attachment-577" style="width: 438px"><img class="wp-image-577" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig15png-300x145.jpg" alt="" width="438" height="212" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig15png-300x145.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig15png-65x31.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig15png-225x109.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig15png-350x169.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig15png.jpg 717w" /><div class="wp-caption-text" id="caption-attachment-577">Figure 3.5: The median divides the area under the histogram into two equal areas <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-25b206f25506e6d6f46be832f7119ffa_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="A" title="Rendered by QuickLaTeX.com" height="12" width="13" style="vertical-align: 0px;" />.</div></div> <p><strong>Mean</strong></p> <p>The mean is the balance point of the histogram/distribution as shown in Figure 3.6.</p> <div class="wp-caption aligncenter" id="attachment_580" aria-describedby="caption-attachment-580" style="width: 444px"><img class="wp-image-580" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig16png-300x119.jpg" alt="" width="444" height="176" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig16png-300x119.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig16png-1024x406.jpg 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig16png-768x305.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig16png-65x26.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig16png-225x89.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig16png-350x139.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig16png.jpg 1169w" /><div class="wp-caption-text" id="caption-attachment-580">Figure 3.6: The mean is the balance point of the histogram. It is where the “first moments” of the area of the histogram balance. Here the moments are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-503f8c2833dc6583bf5d0c198d05341d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="Ay" title="Rendered by QuickLaTeX.com" height="16" width="22" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b11d19854c79238a2fbfbeae35ec9b5e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="Bz" title="Rendered by QuickLaTeX.com" height="12" width="23" style="vertical-align: 0px;" /> balance. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-395a3da7a2691be4850a7420559e4d85_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="Ay = Bz" title="Rendered by QuickLaTeX.com" height="16" width="70" style="vertical-align: -4px;" />.</div></div> <hr /> <p>**<em><strong>A proof that the mean is the center of gravity of a histogram:</strong></em></p> <p>In physics, a <em>moment</em> is weight <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3e2a3b7b9d8913e71519bf7df9eb51b3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\times" title="Rendered by QuickLaTeX.com" height="9" width="10" style="vertical-align: 0px;" /> moment arm : </p> <p class="ql-center-displayed-equation" style="line-height: 12px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2f46731f3ad8ed2e81a306f373d112a8_l3.svg" height="12" width="72" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[M = W x\]" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-10ebb71bad275c1815a8f2a8c5dea0be_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="M" title="Rendered by QuickLaTeX.com" height="12" width="19" style="vertical-align: 0px;" /> is moment, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4caed22919a1780df1b6310b338b904e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="W" title="Rendered by QuickLaTeX.com" height="12" width="19" style="vertical-align: 0px;" /> is weight and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> is the moment arm (a distance).</p> <p>Say we have two kids, kid1 and kid2 on a teeter-totter (Figure 3.7).</p> <div class="wp-caption aligncenter" id="attachment_583" aria-describedby="caption-attachment-583" style="width: 427px"><img class="wp-image-583" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/teter.png-300x184.jpg" alt="" width="427" height="262" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/teter.png-300x184.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/teter.png-65x40.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/teter.png-225x138.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/teter.png-350x214.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/teter.png.jpg 423w" /><div class="wp-caption-text" id="caption-attachment-583">Figure 3.7</div></div> <p>Kid1 with weight <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b0cc697af249424c40eadd8d65e4e1a7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="W_{1}" title="Rendered by QuickLaTeX.com" height="16" width="23" style="vertical-align: -4px;" /> is heavy, kid2 with weight <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9b9f5ff487bc6c46955077a3980124e1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="W_{2}" title="Rendered by QuickLaTeX.com" height="15" width="24" style="vertical-align: -3px;" /> is light.</p> <p>To balance the teeter-totter we must have </p> <p class="ql-center-displayed-equation" style="line-height: 15px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-63087e693f31d8a77ab051a8e8133228_l3.svg" height="15" width="112" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[W_{1} x_{1} = W_{2} x_{2}.\]" title="Rendered by QuickLaTeX.com" /></p> <p>The moment arm, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1ee89d257836594b43959a4b9ba70cc6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{1}" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: -4px;" />, of the heavier kid must be smaller than the moment arm, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1b8f7c11a53579abfdd4b94207dfc798_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{2}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" />, of the lighter kid if they are to balance.</p> <div></div> <div>So now let’s define the center of gravity. If you have a bunch of weights <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-57c8663e1fff39b02dd8833b73234798_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="W_{i}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> with corresponding moment arms <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{i}" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /> then the center of gravity (c of g) is the moment arm <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9c306962e41414b14fab5a026405d1fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{g}" title="Rendered by QuickLaTeX.com" height="14" width="17" style="vertical-align: -6px;" /> (distance) that satisfies :</div> <div><p class="ql-center-displayed-equation" style="line-height: 25px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5d1702eac121844dcb3eec473b420025_l3.svg" height="25" width="129" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\sum W_{i} x_{i} = W_{t} x_{g}\]" title="Rendered by QuickLaTeX.com" /></p> </div> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-19e5fa740045923db1bd5d01a2d242db_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="W_{t} = \sum W_{i}" title="Rendered by QuickLaTeX.com" height="18" width="90" style="vertical-align: -5px;" /> is the total weight.</p> <p>With histograms, instead of weight <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4caed22919a1780df1b6310b338b904e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="W" title="Rendered by QuickLaTeX.com" height="12" width="19" style="vertical-align: 0px;" /> we have area <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-25b206f25506e6d6f46be832f7119ffa_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="A" title="Rendered by QuickLaTeX.com" height="12" width="13" style="vertical-align: 0px;" />. You can think of area as having a weight. (Think of cutting out a piece of the blackboard with a jigsaw after you draw a histogram on it.) So for a histogram (see Figure 3.8):</p> <div class="wp-caption aligncenter" id="attachment_586" aria-describedby="caption-attachment-586" style="width: 518px"><img class="wp-image-586" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/balancepng-300x170.jpg" alt="" width="518" height="293" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/balancepng-300x170.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/balancepng-1024x579.jpg 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/balancepng-768x434.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/balancepng-65x37.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/balancepng-225x127.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/balancepng-350x198.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/balancepng.jpg 1483w" /><div class="wp-caption-text" id="caption-attachment-586">Figure 3.8</div></div> <p>(We assume, for simplicity but “without loss of generality”, that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{i}" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /> are integers and also the classes. This is the case for discrete probability distributions as we’ll see.) So, for the c of g, </p> <p class="ql-center-displayed-equation" style="line-height: 25px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5d1702eac121844dcb3eec473b420025_l3.svg" height="25" width="129" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\sum W_{i} x_{i} = W_{t} x_{g}\]" title="Rendered by QuickLaTeX.com" /></p> <p>translates to</p> <p style="text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1e948237c56555a092643c4770dcb297_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sum A_{i} x_{i} = A_{t} x_{g}" title="Rendered by QuickLaTeX.com" height="19" width="116" style="vertical-align: -6px;" /></p> <p style="text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7f5a51c14df91abe6d32dd553f2af97c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sum f_{i} x_{i} =  (\sum f_{i} ) x_{g}" title="Rendered by QuickLaTeX.com" height="20" width="142" style="vertical-align: -6px;" /></p> <p style="text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c6bb11d09c864af69ea781c357bb6ca8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sum f_{i} x_{i} = n x_{g}" title="Rendered by QuickLaTeX.com" height="19" width="103" style="vertical-align: -6px;" /></p> <p style="text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8721af48b3245e450ba758b1a20e3a5d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{g} = \frac{\sum f_{i} x_{i}}{n}" title="Rendered by QuickLaTeX.com" height="24" width="86" style="vertical-align: -6px;" /></p> <p>where we have used <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e1ec670ebf0a44f5bb4114bbdf66a44a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="A_{i} = f_{i}" title="Rendered by QuickLaTeX.com" height="16" width="56" style="vertical-align: -4px;" /> because the class widths are one, so</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 38px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0dda062c2aa1d1209ad052efb3433f84_l3.svg" height="38" width="135" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[x_{g} = \overline{x} = \frac{\sum f_{i} x_{i}}{n}.\]" title="Rendered by QuickLaTeX.com" /></p> <p>Because our “weight” is area, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x}" title="Rendered by QuickLaTeX.com" height="11" width="11" style="vertical-align: 0px;" /> is technically called the “1st moment of area”. (Variance, covered next, is the “2nd moment of area about the mean”.)</p> <p style="text-align: right;">◻</p> 
</div></div>
<div class="chapter standard" id="chapter-slug-3-2-dispersion-variance-and-standard-deviation" title="3.2 Dispersion: Variance and Standard Deviation"><div class="chapter-title-wrap"><h3 class="chapter-number">9</h3><h2 class="chapter-title">3.2 Dispersion: Variance and Standard Deviation</h2></div><div class="ugc chapter-ugc"><p>Variance, and its square root standard deviation, measure how &#8220;wide&#8221; or &#8220;spread out&#8221; a data distribution is. We begin by using the formula definitions; they are slightly different for populations and samples.</p> <p style="text-align: left;"><span style="text-decoration: underline;"><strong><em>1. Population</em> Formulae</strong></span> :</p> <p style="text-align: left;"><strong style="font-size: 1em;">Variance</strong> <span style="font-size: 1em;">: </span></p> <p style="text-align: center;"><span style="text-align: initial; font-size: 1em;"></span></p> <p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">(3.3) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-258218865da67d8b4e8f6270f40b6e86_l3.svg" height="42" width="156" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#123;&#78;&#125;&#40;&#120;&#95;&#123;&#105;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#125;&#123;&#78;&#125;&#92; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p></p> <p><span style="text-align: initial; font-size: 1em;">where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5793832f979c2268e3694c246d53b1bb_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#78;" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: 0px;" /> is the size of the population, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> is the mean of the population and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /> is an individual value from the population.</span></p> <p><strong>Standard Deviation</strong> : </p> <p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-59d99e9b87fe25176fbdb99536f3774e_l3.svg" height="18" width="68" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#92;&#115;&#105;&#103;&#109;&#97;&#32;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>The standard deviation, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />, is a population parameter, we will learn about how to make inferences about population parameters using statistics from samples.</p> <p><span style="text-decoration: underline;"><strong>2. Sample Formulae</strong></span> :</p> <p><strong>Variance</strong> :</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">(3.4) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-18c7cafcbcbfd016d8d12c9a592d1ef6_l3.svg" height="43" width="152" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#115;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#123;&#110;&#125;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#41;&#94;&#50;&#125;&#123;&#40;&#110;&#45;&#49;&#41;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> = sample size (number of data points), <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f30b71e7fcec69d119f30f67cf09c975_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="13" width="40" style="vertical-align: -1px;" /> = degrees of freedom for the given sample, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="11" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /> is a data value.</p> <p><strong>Standard Deviation</strong> : </p> <p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8c9f6a09292aa36d4c0034f150e6f863_l3.svg" height="18" width="64" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#115;&#32;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#115;&#94;&#50;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>Equations (3.3) and (3.4) are the definitions of variance as the second moment about the mean; you need to determine the means (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="11" style="vertical-align: 0px;" />) before you can compute variance with those formulae. They are algebraically equivalent to a &#8220;short cut&#8221; formula that allow you to compute the variance directly from sums and sums of squares of the data without computing the mean first. For the sample standard deviation (the useful one) the short cut formula is</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 47px;"><span class="ql-right-eqno">(3.5) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c85095d4117708ec4bbd86b0acffce91_l3.svg" height="47" width="212" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#115;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#123;&#110;&#125;&#120;&#94;&#123;&#50;&#125;&#95;&#123;&#105;&#125;&#32;&#45;&#32;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#92;&#115;&#117;&#109;&#94;&#110;&#95;&#123;&#105;&#61;&#49;&#125;&#120;&#95;&#105;&#41;&#94;&#50;&#125;&#123;&#110;&#125;&#41;&#125;&#123;&#110;&#45;&#49;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>At this point you should figure out how to compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> on your calculator for a given set of data.</p> <p><strong>Fact</strong> (not proved here) : The sample standard deviation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> is the &#8220;optimal unbiased estimate&#8221; of the population standard deviation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> is a statistic&#8221;, the best statistic it turns out, that is used to estimate the population parameter <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />. It is the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f30b71e7fcec69d119f30f67cf09c975_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="13" width="40" style="vertical-align: -1px;" /> in the denominator that makes <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> the optimal unbiased estimator of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />. We won&#8217;t prove that here but we will try and build up a little intuition about what that should be so &#8212; why dividing by <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f30b71e7fcec69d119f30f67cf09c975_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="13" width="40" style="vertical-align: -1px;" /> should be better than dividing by <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />. (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f30b71e7fcec69d119f30f67cf09c975_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="13" width="40" style="vertical-align: -1px;" /> is known as the degrees of freedom of the estimator <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" />). First notice that you can&#8217;t guess or estimate a value for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> (i.e. compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" />) with only one data point. There is no spread of values in a data set of one point! This is part of the reason why the degrees of freedom is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f30b71e7fcec69d119f30f67cf09c975_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="13" width="40" style="vertical-align: -1px;" /> and not <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />. A more direct reason is that you need to remove one piece of information (the mean) from your sample before you can guess <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> (compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" />).</p> <p><strong>Coefficient of Variation</strong></p> <p>The coefficient of variation, CVar, is a &#8220;normalized&#8221; measure of data spread. It will not be useful for any inferential statistics that we will be doing. It is a pure descriptive statistic. As such it can be useful as a dependent variable but we treat it here as a descriptive statistic that combines the mean and standard deviation. The definition is :</p> <p class="ql-center-displayed-equation" style="line-height: 32px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fd2112873f60118c54d3010f0ee0642f_l3.svg" height="32" width="226" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#109;&#98;&#111;&#120;&#123;&#67;&#86;&#97;&#114;&#125;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#125;&#123;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#48;&#48;&#92;&#37;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#92;&#32;&#92;&#32;&#92;&#32;&#92;&#32;&#115;&#97;&#109;&#112;&#108;&#101;&#115;&#125;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 36px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7e6fdf4071c35c605cd5205a24762c39_l3.svg" height="36" width="249" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#109;&#98;&#111;&#120;&#123;&#67;&#86;&#97;&#114;&#125;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#125;&#123;&#92;&#109;&#117;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#48;&#48;&#32;&#92;&#37;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#92;&#32;&#92;&#32;&#92;&#32;&#92;&#32;&#112;&#111;&#112;&#117;&#108;&#97;&#116;&#105;&#111;&#110;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p><strong>Example 3.9</strong> : In this example we take the data given in the following table as representing the whole <em>population</em> of size <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4b46308f4b39d89a8e494591f92a7743_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#78;&#61;&#54;" title="Rendered by QuickLaTeX.com" height="12" width="49" style="vertical-align: 0px;" />. So we use the formula of Equation (3.3) which requires us to sum <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-50f41f3ede742a71a11244ba533c7ef7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#40;&#120;&#95;&#123;&#105;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="68" style="vertical-align: -4px;" />.</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 55.8788%; height: 181px;"><tbody><tr><td class="shaded" style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /></td> <td class="shaded" style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a047c1bb48a406194f7239e00fd410b3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#108;&#101;&#102;&#116;&#40;&#120;&#95;&#123;&#105;&#125;&#45;&#92;&#109;&#117;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="21" width="68" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">10</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-34d3e677c26ea1bb6e466744e210c783_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#108;&#101;&#102;&#116;&#40;&#49;&#48;&#45;&#51;&#53;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="21" width="77" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">60</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-25601c6a326ed824cbc4b3a9673dcbdc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#108;&#101;&#102;&#116;&#40;&#54;&#48;&#45;&#51;&#53;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="21" width="77" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">50</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8aacb804ed6096e2d607166e012261c7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#108;&#101;&#102;&#116;&#40;&#53;&#48;&#45;&#51;&#53;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="21" width="77" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">30</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-83eef5ee66d453c4439929e2bf69bd4f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#108;&#101;&#102;&#116;&#40;&#51;&#48;&#45;&#51;&#53;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="21" width="77" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">40</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-495de11060b90e5c43c89c34334de052_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#108;&#101;&#102;&#116;&#40;&#52;&#48;&#45;&#51;&#53;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="21" width="77" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;">20</td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e0668c5184fb5c2758d3100a14d1e560_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#108;&#101;&#102;&#116;&#40;&#50;&#48;&#45;&#51;&#53;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="21" width="77" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-be657f1a2835888b07063e77f04fbc70_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#117;&#109;&#32;&#120;&#95;&#123;&#105;&#125;&#61;&#50;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="18" width="88" style="vertical-align: -5px;" /></td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d5b680f324e7468dc5e3f84d4c81c2f0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#117;&#109;&#92;&#108;&#101;&#102;&#116;&#40;&#120;&#95;&#123;&#105;&#125;&#45;&#92;&#109;&#117;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#123;&#50;&#125;&#61;&#49;&#55;&#53;&#48;" title="Rendered by QuickLaTeX.com" height="22" width="151" style="vertical-align: -5px;" /></td> </tr> </tbody> </table> <p>Using the sum in the first column we compute the mean :</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 38px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fa71bc2bc8c8e45c773f5672216912e9_l3.svg" height="38" width="175" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#109;&#117;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#32;&#120;&#95;&#105;&#125;&#123;&#78;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#49;&#48;&#125;&#123;&#54;&#125;&#32;&#61;&#32;&#51;&#53;&#46;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>Then with that mean we compute the quantities in the second (calculation) column above and sum them. And then we may compute the variance :</p> <p class="ql-center-displayed-equation" style="line-height: 39px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-79c5e421b4fabd53a849542d12e10c04_l3.svg" height="39" width="262" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#125;&#123;&#78;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#55;&#53;&#48;&#125;&#123;&#54;&#125;&#32;&#61;&#32;&#50;&#57;&#49;&#46;&#55;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>and standard deviation</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 19px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-aa55d0211b705c93eaa2d26df649e622_l3.svg" height="19" width="206" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#115;&#105;&#103;&#109;&#97;&#32;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#32;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#50;&#57;&#49;&#46;&#55;&#125;&#32;&#61;&#32;&#49;&#55;&#46;&#49;&#46;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: left;">Finally, because we can, we compute the coefficient of variation:</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 41px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5687d54213b697801b519c7a7b17a45a_l3.svg" height="41" width="338" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#109;&#98;&#111;&#120;&#123;&#67;&#86;&#97;&#114;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#125;&#123;&#92;&#109;&#117;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#48;&#48;&#92;&#37;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#55;&#46;&#49;&#125;&#123;&#51;&#53;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#48;&#48;&#92;&#37;&#32;&#61;&#32;&#52;&#56;&#46;&#57;&#92;&#37;&#46;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: right;">◻</p> <p><strong>Example 3.10</strong> : In this example, we have a <em>sample</em>. This is the usual circumstance under which we would compute variance and sample standard deviation. We can use either Equation (3.4) or (3.5). Using Equation (3.4) follows the sample procedure that is given in Example 3.9 and we&#8217;ll leave that as an exercise. Below we&#8217;ll apply the short-cut formula and see how <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> may be computed without knowing <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" />. The dataset is given in the table below in the column to the left of the double line. The columns to the right of the double line are, as usual, our calculation columns. The size of the sample is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d7fc2201c80103aaa425fc3eb5c3eac6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#61;&#54;" title="Rendered by QuickLaTeX.com" height="12" width="43" style="vertical-align: 0px;" />.</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 61.3333%; height: 180px;"><tbody><tr><td class="shaded" style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /></td> <td class="shaded" style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-233326803cdddd444c651f9eefb98791_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#108;&#101;&#102;&#116;&#40;&#120;&#95;&#123;&#105;&#125;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="21" width="67" style="vertical-align: -4px;" /></td> <td class="shaded" style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae05fb351d8b3e0549ff90d00b11ec6a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="20" width="17" style="vertical-align: -5px;" /></td> </tr> <tr><td style="width: 33.3333%; text-align: center;">11.2</td> <td style="width: 33.3333%; text-align: center;"></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-152d115b33d55637de3804e8c11a0abf_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#49;&#49;&#46;&#50;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="38" style="vertical-align: -1px;" /> = 125.44</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">11.9</td> <td style="width: 33.3333%; text-align: center;"></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-467f500813203948eed9630c16e17054_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#49;&#49;&#46;&#57;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="38" style="vertical-align: -1px;" /> = 141.161</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">12.0</td> <td style="width: 33.3333%; text-align: center;">exercise</td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fe5ffcc7f6ad014c6853e9b02262f674_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#49;&#50;&#46;&#48;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="38" style="vertical-align: -1px;" /> = 144</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">12.8</td> <td style="width: 33.3333%; text-align: center;"></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3f39125917b08930a99211b17b56841f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#49;&#50;&#46;&#56;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="38" style="vertical-align: -1px;" /> = 163.84</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">13.4</td> <td style="width: 33.3333%; text-align: center;"></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4c4de9b22c494a84113e08559a657e51_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#49;&#51;&#46;&#52;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="38" style="vertical-align: -1px;" /> = 179.56</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">14.3</td> <td style="width: 33.3333%; text-align: center;"></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bc35502253fab6de03b4a51311cb991f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#49;&#52;&#46;&#51;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="38" style="vertical-align: -1px;" /> = 204.49</td> </tr> <tr><td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5512c1663d76a53791fb4348d06d6b12_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#117;&#109;&#32;&#120;&#95;&#123;&#105;&#125;&#61;&#55;&#53;&#46;&#54;" title="Rendered by QuickLaTeX.com" height="18" width="93" style="vertical-align: -5px;" /></td> <td style="width: 33.3333%; text-align: center;"></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-acd607e4cc632dabb4ddb4663c4a533a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#117;&#109;&#32;&#120;&#95;&#123;&#105;&#125;&#94;&#123;&#50;&#125;&#61;&#57;&#53;&#56;&#46;&#57;&#52;" title="Rendered by QuickLaTeX.com" height="20" width="113" style="vertical-align: -5px;" /></td> </tr> </tbody> </table> <p>To find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> compute </p> <p class="ql-center-displayed-equation" style="line-height: 46px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4e935badae981dd4451fb6e000f54c76_l3.svg" height="46" width="534" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#115;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#32;&#120;&#95;&#123;&#105;&#125;&#94;&#123;&#50;&#125;&#32;&#45;&#32;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#92;&#115;&#117;&#109;&#32;&#120;&#95;&#123;&#105;&#125;&#41;&#94;&#123;&#50;&#125;&#125;&#123;&#110;&#125;&#41;&#125;&#123;&#110;&#45;&#49;&#125; &#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#57;&#53;&#56;&#46;&#57;&#52;&#32;&#45;&#32;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#53;&#55;&#49;&#53;&#46;&#51;&#54;&#125;&#123;&#54;&#125;&#41;&#125;&#123;&#54;&#45;&#49;&#125; &#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#57;&#53;&#56;&#46;&#57;&#52;&#45;&#57;&#53;&#50;&#46;&#53;&#54;&#125;&#123;&#53;&#125;&#32;&#61;&#32;&#49;&#46;&#50;&#56; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>So </p> <p class="ql-center-displayed-equation" style="line-height: 19px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-904d7c6b8e0223cb6b1ffa470815d13b_l3.svg" height="19" width="193" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#115;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#115;&#94;&#50;&#125;&#32;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#49;&#46;&#50;&#56;&#125;&#32;&#61;&#32;&#49;&#46;&#49;&#51;&#46;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>Note that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a188571c36702c81dbbf0a7ed05c9d6f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="15" style="vertical-align: 0px;" /> is never negative! If it were then you couldn&#8217;t take the square root to find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" />. Also not that we have not yet determined the mean. We can do that now:</p> <p class="ql-center-displayed-equation" style="line-height: 38px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-afb00b390aa4542a4910c9c77dc8b998_l3.svg" height="38" width="203" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#32;&#120;&#95;&#105;&#125;&#123;&#110;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#55;&#53;&#46;&#54;&#125;&#123;&#54;&#125;&#32;&#61;&#32;&#49;&#50;&#46;&#54;&#48;&#46;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>And with the mean we can then compute</p> <p class="ql-center-displayed-equation" style="line-height: 37px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5f5f4f52a4d74e4a3dfd58368032893c_l3.svg" height="37" width="267" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#109;&#98;&#111;&#120;&#123;&#67;&#86;&#97;&#114;&#32;&#125;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#125;&#123;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#46;&#49;&#51;&#125;&#123;&#49;&#50;&#46;&#54;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#48;&#48;&#92;&#37;&#32;&#61;&#32;&#57;&#46;&#48;&#92;&#37;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: right;">◻</p> <p><strong>Grouped Sample Formula for Variance</strong></p> <p>As with the mean, we can compute an approximation of the data variance from frequency table, histogram, data. And again this computation is precise for probability distributions with class widths of one. The grouped sample formula for variance is</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 48px;"><span class="ql-right-eqno">(3.6) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5a7ab40206f8a90f363a4c15ae232b8a_l3.svg" height="48" width="282" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#115;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#123;&#71;&#125;&#32;&#40;&#102;&#95;&#123;&#105;&#125;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#120;&#94;&#123;&#50;&#125;&#95;&#123;&#109;&#95;&#123;&#105;&#125;&#125;&#41;&#32;&#45;&#32;&#91;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#123;&#71;&#125;&#32;&#102;&#95;&#123;&#105;&#125;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#120;&#95;&#123;&#109;&#95;&#123;&#105;&#125;&#125;&#41;&#94;&#50;&#125;&#123;&#110;&#125;&#93;&#125;&#123;&#110;&#45;&#49;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-30a79c32f18567063fe44716929e7ced_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#71;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> is the number of groups or classes, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-08e68cb37d295630698f596e678674c4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#109;&#95;&#123;&#105;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="26" style="vertical-align: -5px;" /> is the class center of group <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-40bfe09f34d89df3e344bfbaaf73d8ef_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#102;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="14" style="vertical-align: -4px;" /> is the frequency of group <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> and </p> <p class="ql-center-displayed-equation" style="line-height: 53px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9b5868ac819bdf4b5890aec08f926c21_l3.svg" height="53" width="77" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#110;&#32;&#61;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#123;&#71;&#125;&#32;&#102;&#95;&#123;&#105;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>is the sample size. Equation (3.6) the short-cut version of the formula. We can also write</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-31b7faa6d63e7c189da3cf322073fd66_l3.svg" height="43" width="182" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#115;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#123;&#71;&#125;&#32;&#102;&#95;&#123;&#105;&#125;&#32;&#40;&#120;&#95;&#123;&#109;&#95;&#123;&#105;&#125;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#123;&#50;&#125;&#125;&#123;&#110;&#45;&#49;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>or if we are dealing with a population, and the class width is one so that the class center <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-63c54b335625b7121927d75587bff642_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#88;&#95;&#123;&#109;&#95;&#123;&#105;&#125;&#125;&#32;&#61;&#32;&#88;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="17" width="76" style="vertical-align: -5px;" />,</p> <p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2ad1e81866fde06132f934cd4fcdbe96_l3.svg" height="42" width="190" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#123;&#71;&#125;&#32;&#102;&#95;&#123;&#105;&#125;&#32;&#40;&#88;&#95;&#123;&#109;&#95;&#123;&#105;&#125;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#123;&#50;&#125;&#125;&#123;&#78;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>which will be useful when we talk about probability distributions. In fact, let&#8217;s look ahead a bit and make the frequentist definition for the probability for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6a346f70114070d95be58519d5eaf26e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#88;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="20" style="vertical-align: -3px;" /> as <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-658ad65a665b6a819344afe7ea6f2818_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#88;&#95;&#123;&#105;&#125;&#41;&#32;&#61;&#32;&#102;&#95;&#123;&#105;&#125;&#47;&#78;" title="Rendered by QuickLaTeX.com" height="19" width="110" style="vertical-align: -5px;" /> (which is the relative frequency of class <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />) so that</p> <p class="ql-center-displayed-equation" style="line-height: 53px;"><span class="ql-right-eqno">(3.7) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c646e891fc6d6d7e5d14058ed4b69eb5_l3.svg" height="53" width="197" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#123;&#71;&#125;&#32;&#80;&#40;&#88;&#95;&#123;&#105;&#125;&#41;&#32;&#40;&#88;&#95;&#123;&#105;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#123;&#50;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>If we make the same substitution <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-658ad65a665b6a819344afe7ea6f2818_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#88;&#95;&#123;&#105;&#125;&#41;&#32;&#61;&#32;&#102;&#95;&#123;&#105;&#125;&#47;&#78;" title="Rendered by QuickLaTeX.com" height="19" width="110" style="vertical-align: -5px;" /> in the grouped mean formula, Equation (3.1) with population items <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d4ee28752517d6062a3ca0314890342d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#88;" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5793832f979c2268e3694c246d53b1bb_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#78;" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: 0px;" /> in place of the sample items <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />, then it becomes</p> <p class="ql-center-displayed-equation" style="line-height: 53px;"><span class="ql-right-eqno">(3.8) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f2130927b30ced832d2c603f1d5a75a_l3.svg" height="53" width="135" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#117;&#32;&#61;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#123;&#71;&#125;&#32;&#80;&#40;&#88;&#95;&#123;&#105;&#125;&#41;&#32;&#88;&#95;&#123;&#105;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>More on probability distributions later, for now let&#8217;s see how we use Equation (3.6) for frequency table data.</p> <p><strong>Example 3.11</strong> : Given the frequency table data to the left of the double dividing line in the table below, compute the variance and standard deviation of the data using the grouped data formula.</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 100%;"><tbody><tr><td class="shaded" style="width: 14.2857%; text-align: center;">Class</td> <td class="shaded" style="width: 14.2857%; text-align: center;">Class Boundaries</td> <td class="shaded" style="width: 14.2857%; text-align: center;">Freq, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-40bfe09f34d89df3e344bfbaaf73d8ef_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#102;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="14" style="vertical-align: -4px;" /></td> <td class="shaded" style="width: 14.2857%; text-align: center;">Class Centre <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-08e68cb37d295630698f596e678674c4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#109;&#95;&#123;&#105;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="26" style="vertical-align: -5px;" /></td> <td class="shaded" style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-61f21697927bf1c45617119fbc9b6369_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#102;&#95;&#123;&#105;&#125;&#92;&#99;&#100;&#111;&#116;&#32;&#120;&#95;&#123;&#109;&#95;&#123;&#105;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="17" width="53" style="vertical-align: -5px;" /></td> <td class="shaded" style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-35ac6b2543ee6a5f69752938a9192fe8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#94;&#123;&#50;&#125;&#95;&#123;&#109;&#95;&#123;&#105;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="21" width="26" style="vertical-align: -6px;" /></td> <td class="shaded" style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-528ac1ee5b4d0ca01be2a2141acd065b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#102;&#95;&#123;&#105;&#125;&#92;&#99;&#100;&#111;&#116;&#32;&#120;&#94;&#123;&#50;&#125;&#95;&#123;&#109;&#95;&#123;&#105;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="21" width="53" style="vertical-align: -6px;" /></td> </tr> <tr><td style="width: 14.2857%; text-align: center;">1</td> <td style="width: 14.2857%; text-align: center;">5.5 &#8211; 10.5</td> <td style="width: 14.2857%; text-align: center;">1</td> <td style="width: 14.2857%; text-align: center;">8</td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ed7e2b8caa85aaad48f1d10bdb3a6aef_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#49;&#92;&#99;&#100;&#111;&#116;&#32;&#56;&#32;&#61;&#32;&#56;" title="Rendered by QuickLaTeX.com" height="13" width="62" style="vertical-align: -1px;" /></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a2ed3d9d246a71279088eb36d261c15f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#56;&#94;&#123;&#50;&#125;&#61;&#54;&#52;" title="Rendered by QuickLaTeX.com" height="16" width="58" style="vertical-align: -1px;" /></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a25938eb18da19e2818c4396614dfd73_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#49;&#92;&#99;&#100;&#111;&#116;&#32;&#54;&#52;&#32;&#61;&#32;&#54;&#52;" title="Rendered by QuickLaTeX.com" height="13" width="80" style="vertical-align: -1px;" /></td> </tr> <tr><td style="width: 14.2857%; text-align: center;">2</td> <td style="width: 14.2857%; text-align: center;">10.5 &#8211; 15.5</td> <td style="width: 14.2857%; text-align: center;">2</td> <td style="width: 14.2857%; text-align: center;">13</td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9b4b163a24baddcce927b5e0893fc88d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#50;&#92;&#99;&#100;&#111;&#116;&#32;&#49;&#51;&#32;&#61;&#32;&#50;&#54;" title="Rendered by QuickLaTeX.com" height="13" width="81" style="vertical-align: -1px;" /></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0dfbfa6807d8f95a58319034a4e960d0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#49;&#51;&#94;&#123;&#50;&#125;&#61;&#49;&#54;&#57;" title="Rendered by QuickLaTeX.com" height="16" width="75" style="vertical-align: -1px;" /></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-334088578e95f682d56ffcacc86b255a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#50;&#92;&#99;&#100;&#111;&#116;&#32;&#49;&#54;&#57;&#32;&#61;&#32;&#51;&#51;&#56;" title="Rendered by QuickLaTeX.com" height="13" width="99" style="vertical-align: -1px;" /></td> </tr> <tr><td style="width: 14.2857%; text-align: center;">3</td> <td style="width: 14.2857%; text-align: center;">15.5 &#8211; 20.5</td> <td style="width: 14.2857%; text-align: center;">3</td> <td style="width: 14.2857%; text-align: center;">18</td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9c6a29c0e5f0cd50fcd1fabddfff14d6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#51;&#92;&#99;&#100;&#111;&#116;&#32;&#49;&#56;&#32;&#61;&#32;&#53;&#52;" title="Rendered by QuickLaTeX.com" height="14" width="81" style="vertical-align: -1px;" /></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-84867bd8bc8ca2b4d7f4845d3cf54083_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#49;&#56;&#94;&#123;&#50;&#125;&#61;&#51;&#50;&#52;" title="Rendered by QuickLaTeX.com" height="16" width="75" style="vertical-align: -1px;" /></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cf34a0002602651ba4cd5763830c0531_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#51;&#92;&#99;&#100;&#111;&#116;&#32;&#51;&#50;&#52;&#32;&#61;&#32;&#57;&#55;&#50;" title="Rendered by QuickLaTeX.com" height="14" width="98" style="vertical-align: -1px;" /></td> </tr> <tr><td style="width: 14.2857%; text-align: center;">4</td> <td style="width: 14.2857%; text-align: center;">20.5 &#8211; 25.5</td> <td style="width: 14.2857%; text-align: center;">5</td> <td style="width: 14.2857%; text-align: center;">23</td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f86d764456c21eab80b6c9a3dac62e9c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#53;&#92;&#99;&#100;&#111;&#116;&#32;&#50;&#51;&#32;&#61;&#32;&#49;&#49;&#53;" title="Rendered by QuickLaTeX.com" height="14" width="89" style="vertical-align: -1px;" /></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-236bdf3763584a45e854f76faa6bd9a3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#50;&#51;&#94;&#123;&#50;&#125;&#61;&#53;&#50;&#57;" title="Rendered by QuickLaTeX.com" height="15" width="76" style="vertical-align: 0px;" /></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d3fc0b662c847cb5b314152a158b4e1b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#53;&#92;&#99;&#100;&#111;&#116;&#32;&#53;&#50;&#57;&#32;&#61;&#32;&#50;&#54;&#52;&#53;" title="Rendered by QuickLaTeX.com" height="14" width="107" style="vertical-align: -1px;" /></td> </tr> <tr><td style="width: 14.2857%; text-align: center;">5</td> <td style="width: 14.2857%; text-align: center;">25.5 &#8211; 30.5</td> <td style="width: 14.2857%; text-align: center;">4</td> <td style="width: 14.2857%; text-align: center;">28</td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-41ffaebe7606518b089c731e4aefa76b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#52;&#92;&#99;&#100;&#111;&#116;&#32;&#50;&#56;&#32;&#61;&#32;&#49;&#49;&#50;" title="Rendered by QuickLaTeX.com" height="13" width="89" style="vertical-align: -1px;" /></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-067515f51dd739b43e129f006f06f3e3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#50;&#56;&#94;&#123;&#50;&#125;&#61;&#55;&#56;&#52;" title="Rendered by QuickLaTeX.com" height="16" width="76" style="vertical-align: -1px;" /></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d7b0bf8ef27a9be48bee85b5d178b624_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#52;&#92;&#99;&#100;&#111;&#116;&#32;&#55;&#56;&#52;&#32;&#61;&#32;&#51;&#49;&#51;&#54;" title="Rendered by QuickLaTeX.com" height="14" width="108" style="vertical-align: -1px;" /></td> </tr> <tr><td style="width: 14.2857%; text-align: center;">6</td> <td style="width: 14.2857%; text-align: center;">30.5 &#8211; 35.5</td> <td style="width: 14.2857%; text-align: center;">3</td> <td style="width: 14.2857%; text-align: center;">33</td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-79d075bbd6135043eeddb41b862182e3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#51;&#92;&#99;&#100;&#111;&#116;&#32;&#51;&#51;&#32;&#61;&#32;&#57;&#57;" title="Rendered by QuickLaTeX.com" height="12" width="81" style="vertical-align: 0px;" /></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0b26ad4007ca2a50986b928bbaad4e90_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#51;&#51;&#94;&#123;&#50;&#125;&#61;&#49;&#48;&#56;&#57;" title="Rendered by QuickLaTeX.com" height="16" width="85" style="vertical-align: -1px;" /></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae004d9e529cda52423d594a93deed8a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#51;&#92;&#99;&#100;&#111;&#116;&#32;&#49;&#48;&#56;&#57;&#32;&#61;&#32;&#51;&#50;&#54;&#55;" title="Rendered by QuickLaTeX.com" height="14" width="117" style="vertical-align: -1px;" /></td> </tr> <tr><td style="width: 14.2857%; text-align: center;">7</td> <td style="width: 14.2857%; text-align: center;">35.5 &#8211; 40.5</td> <td style="width: 14.2857%; text-align: center;">2</td> <td style="width: 14.2857%; text-align: center;">38</td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ca1d952433793761b6d66fbd675cbdc1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#50;&#92;&#99;&#100;&#111;&#116;&#32;&#51;&#56;&#32;&#61;&#32;&#55;&#54;" title="Rendered by QuickLaTeX.com" height="13" width="81" style="vertical-align: 0px;" /></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e0d4b49dab6e5af7fe0fcf2336da6b78_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#51;&#56;&#94;&#123;&#50;&#125;&#61;&#49;&#52;&#52;&#52;" title="Rendered by QuickLaTeX.com" height="16" width="85" style="vertical-align: -1px;" /></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3699b3d0d4d2ece301cf25b0f4dc7e77_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#50;&#92;&#99;&#100;&#111;&#116;&#32;&#49;&#52;&#52;&#52;&#32;&#61;&#32;&#50;&#56;&#56;&#56;" title="Rendered by QuickLaTeX.com" height="13" width="117" style="vertical-align: -1px;" /></td> </tr> <tr><td style="width: 14.2857%; text-align: center;"></td> <td style="width: 14.2857%; text-align: center;"></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7fb44b5d4fb9bd1d1ae3b0f1b4f10469_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#117;&#109;&#32;&#102;&#61;&#50;&#48;" title="Rendered by QuickLaTeX.com" height="18" width="74" style="vertical-align: -5px;" /></td> <td style="width: 14.2857%; text-align: center;"></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0ba9708dd4ed56120763ae0908e7436d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#117;&#109;&#32;&#102;&#120;&#95;&#123;&#109;&#125;&#61;&#52;&#57;&#48;" title="Rendered by QuickLaTeX.com" height="18" width="106" style="vertical-align: -5px;" /></td> <td style="width: 14.2857%; text-align: center;"></td> <td style="width: 14.2857%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6062aae5b913a10ecf24016511e87d95_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#117;&#109;&#32;&#102;&#120;&#94;&#123;&#50;&#125;&#95;&#123;&#109;&#125;&#61;&#49;&#51;&#51;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="20" width="124" style="vertical-align: -5px;" /></td> </tr> </tbody> </table> <p>The formula</p> <p class="ql-center-displayed-equation" style="line-height: 46px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-dafffbbcd3f07b16236014f843bc3ba7_l3.svg" height="46" width="205" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#115;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#32;&#40;&#102;&#32;&#120;&#94;&#123;&#50;&#125;&#95;&#123;&#109;&#125;&#41;&#32;&#45;&#32;&#91;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#92;&#115;&#117;&#109;&#32;&#102;&#32;&#120;&#95;&#123;&#109;&#125;&#41;&#94;&#50;&#125;&#123;&#110;&#125;&#93;&#125;&#123;&#110;&#45;&#49;&#125;&#92;&#110;&#111;&#110;&#117;&#109;&#98;&#101;&#114;&#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>tells us that we need the sums of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3569ef0cdb2942945388878bb00b3ba1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#102;&#32;&#120;&#94;&#123;&#50;&#125;&#95;&#123;&#109;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="33" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2f8fcd003b54663c75dfe0b9b549fc7a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#102;&#32;&#120;&#95;&#123;&#109;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="33" style="vertical-align: -4px;" /> after we compute the class centres <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a3fd8ec6f21c1926d24b54629ea792d6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#109;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="22" style="vertical-align: -3px;" /> and their squares <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f23ed1f994691ad4baf99a1e123c8208_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#94;&#123;&#50;&#125;&#95;&#123;&#109;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="22" style="vertical-align: -4px;" /> &#8212; these calculations we do in the columns added to the right of the double bar in the table above. With the sums we compute</p> <p class="ql-center-displayed-equation" style="line-height: 48px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6f859cae3a78eb876df7fbbff7dcc4e1_l3.svg" height="48" width="545" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#115;&#94;&#123;&#50;&#125;&#32;&#38;&#61;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#32;&#102;&#95;&#123;&#105;&#125;&#32;&#120;&#94;&#50;&#95;&#123;&#109;&#95;&#123;&#105;&#125;&#125;&#32;&#45;&#32;&#91;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#92;&#115;&#117;&#109;&#32;&#102;&#95;&#123;&#105;&#125;&#32;&#120;&#95;&#123;&#109;&#95;&#123;&#105;&#125;&#125;&#41;&#94;&#50;&#125;&#123;&#110;&#125;&#93;&#125;&#123;&#110;&#45;&#49;&#125;&#32;&#92;&#92; &#38;&#61;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#51;&#51;&#49;&#48;&#32;&#45;&#32;&#91;&#92;&#102;&#114;&#97;&#99;&#123;&#52;&#57;&#48;&#94;&#123;&#50;&#125;&#125;&#123;&#50;&#48;&#125;&#93;&#125;&#123;&#50;&#48;&#45;&#49;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#51;&#51;&#49;&#48;&#45;&#49;&#50;&#48;&#48;&#53;&#125;&#123;&#49;&#57;&#125;&#32;&#92;&#92; &#38;&#61;&#38;&#32;&#54;&#56;&#46;&#55;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>So</p> <p class="ql-center-displayed-equation" style="line-height: 19px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d73f447ab5bb4a58299235222953bf69_l3.svg" height="19" width="183" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#115;&#32;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#115;&#94;&#123;&#50;&#125;&#125;&#32;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#54;&#56;&#46;&#55;&#125;&#32;&#61;&#32;&#56;&#46;&#51;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>The mean, from one of the sums already finished is</p> <p class="ql-center-displayed-equation" style="line-height: 38px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4c6654ed487b1dc822f2803423678bc9_l3.svg" height="38" width="211" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#98;&#97;&#114;&#123;&#120;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#32;&#102;&#95;&#105;&#32;&#120;&#95;&#123;&#109;&#95;&#105;&#125;&#125;&#123;&#110;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#52;&#57;&#48;&#125;&#123;&#50;&#48;&#125;&#32;&#61;&#32;&#50;&#52;&#46;&#53; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>and the coefficient of variation is</p> <p class="ql-center-displayed-equation" style="line-height: 37px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-84734c843bd428431277f6333223d482_l3.svg" height="37" width="333" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#98;&#111;&#120;&#123;&#67;&#86;&#97;&#114;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#125;&#123;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#48;&#48;&#92;&#37;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#56;&#46;&#51;&#125;&#123;&#50;&#52;&#46;&#53;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#48;&#48;&#92;&#37;&#32;&#61;&#32;&#51;&#51;&#46;&#57;&#92;&#37; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: right;">◻</p> <p><strong>Now</strong> is a good time to figure out how to compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> (and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />) on your calculators.</p> </div></div>
<div class="chapter standard" id="chapter-slug-3-3-z-score-z-transformation" title="3.3 z-score / z-transformation"><div class="chapter-title-wrap"><h3 class="chapter-number">10</h3><h2 class="chapter-title">3.3 z-score / z-transformation</h2></div><div class="ugc chapter-ugc"><p>The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-score is the result of transformation of data that converts a dataset of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> values, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4dac52717097e406472ae493a06805a8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#123;&#32;&#120;&#95;&#123;&#105;&#125;&#32;&#92;&#125;" title="Rendered by QuickLaTeX.com" height="18" width="31" style="vertical-align: -5px;" />, that has a mean of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> and standard deviation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> to a set of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> values <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7cf60268a13c1c2b8c6e0683bfdad57e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#123;&#122;&#95;&#123;&#105;&#125;&#92;&#125;" title="Rendered by QuickLaTeX.com" height="18" width="30" style="vertical-align: -5px;" /> that has a mean of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d9fd0886cdd17dece2a8f7ad8f51bdea_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#122;&#125;&#32;&#61;&#32;&#48;" title="Rendered by QuickLaTeX.com" height="12" width="42" style="vertical-align: 0px;" /> and a standard deviation of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-62ca0a94188ad33623f86eb67ef6d751_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#95;&#123;&#122;&#125;&#32;&#61;&#32;&#49;" title="Rendered by QuickLaTeX.com" height="15" width="48" style="vertical-align: -3px;" />. It will be very useful when we need to compute probabilities associated with normal distributions. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation is defined by</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 35px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c9fd8936626db18f41e2c2b08f760704_l3.svg" height="35" width="175" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#122;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#120;&#32;&#45;&#32;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#125;&#123;&#115;&#125;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#92;&#32;&#92;&#32;&#92;&#32;&#92;&#32;&#92;&#32;&#40;&#115;&#97;&#109;&#112;&#108;&#101;&#41;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 32px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b87726f7849501a3c217e82a4b82c9fc_l3.svg" height="32" width="206" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#122;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#120;&#45;&#92;&#109;&#117;&#125;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#125;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#92;&#32;&#92;&#32;&#92;&#32;&#92;&#32;&#92;&#32;&#40;&#112;&#111;&#112;&#117;&#108;&#97;&#116;&#105;&#111;&#110;&#41;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p><strong>Example 3.12</strong> : Find the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-scores of the data given in the left column of the table below.</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 100%;"><tbody><tr><td class="shaded" style="width: 33.3333%; text-align: center;">Data <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /></td> <td class="shaded" style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae05fb351d8b3e0549ff90d00b11ec6a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="20" width="17" style="vertical-align: -5px;" /></td> <td class="shaded" style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-score, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-91650b546b756e1d0501b9b6c329b69a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="13" style="vertical-align: -3px;" /></td> </tr> <tr><td style="width: 33.3333%; text-align: center;">18</td> <td style="width: 33.3333%; text-align: center;">324</td> <td style="width: 33.3333%; text-align: center;">(18-9.9)/6.2 = 1.3</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">15</td> <td style="width: 33.3333%; text-align: center;">225</td> <td style="width: 33.3333%; text-align: center;">(15-9.9)/6.2 = 0.8</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">12</td> <td style="width: 33.3333%; text-align: center;">144</td> <td style="width: 33.3333%; text-align: center;">(12-9.9)/6.2 = 0.3</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">6</td> <td style="width: 33.3333%; text-align: center;">36</td> <td style="width: 33.3333%; text-align: center;">(6-9.9)/6.2 = -0.6</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">8</td> <td style="width: 33.3333%; text-align: center;">64</td> <td style="width: 33.3333%; text-align: center;">(8-9.9)/6.2 = -0.3</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">2</td> <td style="width: 33.3333%; text-align: center;">4</td> <td style="width: 33.3333%; text-align: center;">(2-9.9)/6.2 = -1.3</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">3</td> <td style="width: 33.3333%; text-align: center;">9</td> <td style="width: 33.3333%; text-align: center;">(3-9.9)/6.2 = -1.1</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">5</td> <td style="width: 33.3333%; text-align: center;">25</td> <td style="width: 33.3333%; text-align: center;">(5-9.5)/6.2 = -0.8</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">20</td> <td style="width: 33.3333%; text-align: center;">400</td> <td style="width: 33.3333%; text-align: center;">(20-9.5)/6.2 = -1.7</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">10</td> <td style="width: 33.3333%; text-align: center;">100</td> <td style="width: 33.3333%; text-align: center;">(10-9.5)/6.2 = 0.1</td> </tr> <tr><td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3f0a557e78fbd5a4809beab6f7579ba3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#117;&#109;&#32;&#120;&#95;&#123;&#105;&#125;&#61;&#57;&#57;" title="Rendered by QuickLaTeX.com" height="18" width="79" style="vertical-align: -5px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f8514b204bbb9c6c792f6b696e1e8b7b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#117;&#109;&#32;&#120;&#95;&#123;&#105;&#125;&#94;&#123;&#50;&#125;&#61;&#49;&#51;&#51;&#49;" title="Rendered by QuickLaTeX.com" height="20" width="98" style="vertical-align: -5px;" /></td> <td style="width: 33.3333%; text-align: center;"></td> </tr> </tbody> </table> <p>The dataset size is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8c21da861c4a9dbc9d42aead2976d0b6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#61;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="13" width="52" style="vertical-align: -1px;" />. You need to compute the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-score for each data value separately. To do the calculation, both <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> are needed. So in addition to the sum of the data, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-254bd5448ac23117d1d410e1ebed7c2e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#117;&#109;&#32;&#120;" title="Rendered by QuickLaTeX.com" height="18" width="32" style="vertical-align: -5px;" />, we also need the sum of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c3d780c29fe25733498de45061b71c7a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="17" style="vertical-align: 0px;" /> values. The work of getting those sums is shown in the table above. With the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c3d780c29fe25733498de45061b71c7a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="17" style="vertical-align: 0px;" /> sums we get </p> <p class="ql-center-displayed-equation" style="line-height: 39px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-df8e9fc5c4d49560926dcf457121799b_l3.svg" height="39" width="166" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#32;&#120;&#95;&#123;&#105;&#125;&#125;&#123;&#110;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#57;&#57;&#125;&#123;&#49;&#48;&#125;&#32;&#61;&#32;&#57;&#46;&#57;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>and</p> <p class="ql-center-displayed-equation" style="line-height: 46px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8160a89124fe8f5b99514ecc4d66c9a4_l3.svg" height="46" width="465" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#115;&#94;&#123;&#50;&#125;&#32;&#38;&#61;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#32;&#120;&#95;&#123;&#105;&#125;&#94;&#123;&#50;&#125;&#32;&#45;&#32;&#91;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#92;&#115;&#117;&#109;&#32;&#120;&#95;&#105;&#41;&#94;&#50;&#125;&#123;&#110;&#125;&#93;&#125;&#123;&#110;&#45;&#49;&#125;&#32;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#51;&#51;&#49;&#32;&#45;&#32;&#91;&#92;&#102;&#114;&#97;&#99;&#123;&#57;&#57;&#94;&#50;&#125;&#123;&#49;&#48;&#125;&#93;&#125;&#123;&#57;&#125;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#51;&#51;&#49;&#45;&#57;&#56;&#48;&#46;&#49;&#125;&#123;&#57;&#125;&#61;&#51;&#57;&#46;&#48;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-574bb4b8cf05e4d54e2bab5374ab8aa4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#32;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#51;&#57;&#125;&#32;&#61;&#32;&#54;&#46;&#50;&#46;" title="Rendered by QuickLaTeX.com" height="18" width="115" style="vertical-align: -2px;" /></p> <p>Using these values for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> in the third column of the table above, compute the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-scores as shown. If we had computed the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-scores more accurately, they would add up to zero, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b0501d43fd87b5d0a128186cb93e1425_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#117;&#109;&#32;&#122;&#95;&#123;&#105;&#125;&#32;&#61;&#32;&#48;" title="Rendered by QuickLaTeX.com" height="18" width="68" style="vertical-align: -5px;" /> (the mean of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-scores is zero.)</p> <p style="text-align: right;">◻</p> </div></div>
<div class="chapter standard" id="chapter-slug-3-4-spss-lesson-2-combining-variables-and-recoding" title="3.4 SPSS Lesson 2: Combining variables and recoding"><div class="chapter-title-wrap"><h3 class="chapter-number">11</h3><h2 class="chapter-title">3.4 SPSS Lesson 2: Combining variables and recoding</h2></div><div class="ugc chapter-ugc"> <p>Frequently data collection results in a collection of many variables. This happens, for example, with tests or surveys where people answer questions on a 5 or 7 point <em>Lickert scale</em> where questions range from, say, “strongly agree” to “somewhat agree” to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c964c2dc86f5d410f13e592117c5ec06_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\ldots" title="Rendered by QuickLaTeX.com" height="2" width="19" style="vertical-align: 0px;" /> to “strongly disagree”. A bunch of those questions may refer to, say, happiness and adding up the scores, perhaps averaging them, will lead to a single variable, one dependent variable, that becomes our measurement of happiness. This gives us not only a univariate variable that we can subject to a statistical test but likely gives us a stronger and more reliable measurement of happiness. A problem with combining variables in this way arises if the response “1” for “strongly agree” means happiness for one question (e.g. “I wake up happy”) and sadness in another question (e.g. “I go to bed sad”). In such a situation some of the variables will need to be reverse-scaled or <em>recoded</em> before they can be added. Let’s see how to combine and recode variables in SPSS.</p> <p>Open the file “Caregiver.sav” from the textbook <a href="#front-matter-data-sets" target="_blank" rel="noopener noreferrer">Data Sets</a>. This dataset is about the different attributes of diamonds such as its color, price, carat, cutting quality etc. Here one of the variables is cut\_new which basically represents the cutting quality of diamond and takes values from 1 to 5 depending on the cutting quality with 5 being the best quality. Now let’s assume that we need to reverse scale this variable to use it in other calculations in a meaningful manner.&nbsp;To recode cut\_new first open the Transform <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Recode in Same Variables… menu :</p> <div class="wp-caption alignnone" id="attachment_1009" aria-describedby="caption-attachment-1009" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare1.png"><img class="wp-image-1009" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare1-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare1-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare1.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1009">SPSS screenshot © International Business Machines Corporation.</div></div> <p>You can choose the Recode into Different Variables… if you want to, instead. That choice will lead to the creation of a new variable that you would use in place of cut\_new for your analysis. With our choice of Recode in Same Variables… we will overwrite the old values of cut\_new with new ones. (This is a danger if you make a mistake.) Our job is now to map 1 to 5, 2 to 4, 3 to 3, 4 to 2 and 5 to 1, recoding the variable. First move the cut\_new variable over in the pop up menu :</p> <div class="wp-caption alignnone" id="attachment_1011" aria-describedby="caption-attachment-1011" style="width: 827px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare2.png"><img class="wp-image-1011" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare2-300x169.png" alt="" width="827" height="466" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare2-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare2-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare2-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare2-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare2-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare2-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare2.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1011">SPSS screenshot © International Business Machines Corporation.</div></div> <p>then hit the Old and New Values.. button that will bring up a new pop up menu. Next enter 1 under Old Value and 5 in New Value :</p> <div class="wp-caption alignnone" id="attachment_1014" aria-describedby="caption-attachment-1014" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare3-1.png"><img class="wp-image-1014" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare3-1-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare3-1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare3-1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare3-1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare3-1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare3-1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare3-1-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare3-1.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1014">SPSS screenshot © International Business Machines Corporation.</div></div> <p>then hit Add :</p> <div class="wp-caption alignnone" id="attachment_1015" aria-describedby="caption-attachment-1015" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare4.png"><img class="wp-image-1015" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare4-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare4-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare4-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare4-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare4-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare4-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare4-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare4.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1015">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Continue this way to complete the recoding list :</p> <div class="wp-caption alignnone" id="attachment_1017" aria-describedby="caption-attachment-1017" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare5.png"><img class="wp-image-1017" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare5-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare5-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare5-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare5-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare5-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare5-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare5-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare5.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1017">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Hit Continue, then OK. The variable cut\_new will now have the new values in the Data View window.</p> <p>Now suppose we want to add multiple variables to create a new variable. Let’s open the dataset Caregiver from the course website. This dataset is regarding the test scores of students from diverse background in UK. Here we will add the test scores of read, write, math and science to create a new variable totalscore. Pick the Transform <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Compute Variable… menu :</p> <div class="wp-caption alignnone" id="attachment_1019" aria-describedby="caption-attachment-1019" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare6.png"><img class="wp-image-1019" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare6-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare6-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare6-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare6-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare6-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare6-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare6-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare6.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1019">SPSS screenshot © International Business Machines Corporation.</div></div> <p>This will bring up a menu which is essentially the calculator feature of SPSS :</p> <div class="wp-caption alignnone" id="attachment_1048" aria-describedby="caption-attachment-1048" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare7.png"><img class="wp-image-1048" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare7-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare7-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare7-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare7-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare7-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare7-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare7-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare7.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1048">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Fill in the menu as shown above. You can move variable names into the Numeric Expression box by double clicking on the variable name, by clicking on the variable name and the arrow or by simply typing it. There are fancier ways to get a sum of variables experesion in Numeric Expression, but we will keep it simple for now. The target variable name is totalscore which, after you hit OK, shows up as a new variable, ready for statistical analysis, in the last column in the Data View window :</p> <div class="wp-caption alignnone" id="attachment_1052" aria-describedby="caption-attachment-1052" style="width: 822px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare8.png"><img class="wp-image-1052" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare8-300x169.png" alt="" width="822" height="463" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare8-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare8-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare8-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare8-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare8-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare8-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare8.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1052">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Let’s do a couple of (descriptive) analysis with this new variable. Let’s take Caregiver as our dataset. Suppose we want to find the median of the totalscore values. To do this task by hand, we need to put the data in order from smallest to largest. This is tedious but SPSS can do it with a couple of mouse clicks (yes, yes SPSS can compute the median directly but whatever). There are a couple of approaches in SPSS to ordering, or ranking, data. One is to compute the rank, that is, give rank 1 to the lowest value, 2 to the next lowest up to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> for the highest value. Pick Transform <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Rank Cases and move totalscore into the Variable(s) box :</p> <div class="wp-caption alignnone" id="attachment_1055" aria-describedby="caption-attachment-1055" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare9.png"><img class="wp-image-1055" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare9-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare9-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare9-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare9-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare9-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare9-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare9-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare9.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1055">SPSS screenshot © International Business Machines Corporation.</div></div> <p>This is a new menu for us, so let’s take a look at the submenus. First, the Rank Types menu :</p> <div class="wp-caption alignnone" id="attachment_1057" aria-describedby="caption-attachment-1057" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare10.png"><img class="wp-image-1057" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare10-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare10-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare10-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare10-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare10-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare10-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare10-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare10.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1057">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Pretty fancy. Much to advanced for our use, so let’s leave that one be, hit Continue. Next look at Ties…</p> <div class="wp-caption alignnone" id="attachment_1060" aria-describedby="caption-attachment-1060" style="width: 820px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare11.png"><img class="wp-image-1060" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare11-300x169.png" alt="" width="820" height="462" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare11-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare11-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare11-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare11-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare11-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare11-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare11.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1060">SPSS screenshot © International Business Machines Corporation.</div></div> <p>We will assign the average (mean) rank to ties in out classes. To understand the ties options, think of two people in a race who cross the finish line at exactly the same time, a tie. With the mean rank, they both come in 1.5 place. With lowest, they both come in 1st place, with highest, they both come in 2nd place. Hit Continue, the OK and a new variable Rtotalscore with be formed in the Data View menu :</p> <div class="wp-caption alignnone" id="attachment_1063" aria-describedby="caption-attachment-1063" style="width: 822px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare12.png"><img class="wp-image-1063" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare12-300x169.png" alt="" width="822" height="463" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare12-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare12-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare12-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare12-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare12-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare12-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare12.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1063">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Here the variable RCG ranks the total score of the students. But it’s very difficult from this data view to identify which students’ rank the highest or lowest, let alone who falls in the middle to find the median. This is not quite what we are after to easily get the median. Ranking will become useful on Psy 234 (in Chapter 16), but it’s not that useful for us now. What we need, is to shuffle the numbers around from lowest to highest (of course we can do that directly). To shuffle pick Data <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Sort Cases :</p> <div class="wp-caption alignnone" id="attachment_1065" aria-describedby="caption-attachment-1065" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare13.png"><img class="wp-image-1065" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare13-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare13-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare13-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare13-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare13-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare13-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare13-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare13.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1065">SPSS screenshot © International Business Machines Corporation.</div></div> <p>which brings up, after moving over the RCG total score variable :</p> <div class="wp-caption alignnone" id="attachment_1067" aria-describedby="caption-attachment-1067" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare14.png"><img class="wp-image-1067" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare14-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare14-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare14-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare14-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare14-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare14-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare14-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare14.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1067">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Keep the ascending button selected (sort from lowest to highest), then hit OK to sort the file :</p> <div class="wp-caption alignnone" id="attachment_1069" aria-describedby="caption-attachment-1069" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare15.png"><img class="wp-image-1069" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare15-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare15-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare15-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare15-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare15-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare15-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare15-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare15.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1069">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Everything is sorted now. (Note how useful the id variable is now. If that wasn’t there, we’d lose track of who’s data was what.) Now if we scroll down, we will find that the middle two total test scores are both 210. Thus the median of total score is 210.</p> <p>As a final analysis of the Caregiver data, suppose we wanted some descriptive statistics for the male students separate from the female students. To do this we use the “split file” feature of SPSS. Select Data <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Split File to get</p> <div class="wp-caption alignnone" id="attachment_1071" aria-describedby="caption-attachment-1071" style="width: 822px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare16.png"><img class="wp-image-1071" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare16-300x169.png" alt="" width="822" height="463" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare16-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare16-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare16-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare16-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare16-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare16-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare16.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1071">SPSS screenshot © International Business Machines Corporation.</div></div> <p>where the gender variable has been moved into the “Groups Based on” box — you will need to click on the “Organize output by groups” button also. We’ll also leave the “Sort the file by grouping variables” (gender in this case), this will shuffle the file yet again, putting all the males and females together. So, when you hit OK the result is</p> <div class="wp-caption alignnone" id="attachment_1073" aria-describedby="caption-attachment-1073" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare17.png"><img class="wp-image-1073" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare17-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare17-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare17-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare17-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare17-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare17-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare17-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare17.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1073">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Now the file is sorted into Male and Female (the 1-A button at the top has been pressed). Also note that “Split by gender” appears on the lower right corner of the Data View window. Now let’s do a simple descriptive statistics analysis of the total score variable. The output looks like :</p> <div class="wp-caption alignnone" id="attachment_1076" aria-describedby="caption-attachment-1076" style="width: 822px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare18.png"><img class="wp-image-1076" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare18-300x169.png" alt="" width="822" height="463" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare18-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare18-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare18-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare18-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare18-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare18-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare18.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1076">SPSS screenshot © International Business Machines Corporation.</div></div> <p>To unsplit the file, go back to Data <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Split File and hit the “Analyze all cases, do not create groups” button. This will remove the “Split” message from the lower right corner and when the descriptive statistics is run again, you will get :</p> <div class="wp-caption alignnone" id="attachment_1077" aria-describedby="caption-attachment-1077" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare19.png"><img class="wp-image-1077" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare19-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare19-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare19-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare19-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare19-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare19-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare19-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare19.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1077">SPSS screenshot © International Business Machines Corporation.</div></div> <p>From here, with the file unsplit, we can use gender as a factor to get separate descriptive statistics for males and female. Select Analyze <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Explore and use gender as the factor, which results in :</p> <div class="wp-caption alignnone" id="attachment_1078" aria-describedby="caption-attachment-1078" style="width: 822px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare20.png"><img class="wp-image-1078" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare20-300x169.png" alt="" width="822" height="463" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare20-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare20-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare20-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare20-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare20-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare20-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare20.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1078">SPSS screenshot © International Business Machines Corporation.</div></div> <p>From here, with the file unsplit, we can use gender as a factor to get separate descriptive statistics for males and female. Select Analyze <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Explore and use gender as the factor :</p> <div class="wp-caption alignnone" id="attachment_1080" aria-describedby="caption-attachment-1080" style="width: 820px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare21.png"><img class="wp-image-1080" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare21-300x169.png" alt="" width="820" height="462" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare21-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare21-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare21-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare21-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare21-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare21-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare21.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1080">SPSS screenshot © International Business Machines Corporation.</div></div> <p>The result is :</p> <div class="wp-caption alignnone" id="attachment_1082" aria-describedby="caption-attachment-1082" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare22.png"><img class="wp-image-1082" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare22-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare22-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare22-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare22-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare22-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare22-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare22-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/CombineCare22.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1082">SPSS screenshot © International Business Machines Corporation.</div></div> </div></div>
<div class="chapter standard" id="chapter-slug-3-5-rstudio-lesson-2-combining-variables-and-recoding" title="3.5 RStudio Lesson 2: Combining variables and recoding"><div class="chapter-title-wrap"><h3 class="chapter-number">12</h3><h2 class="chapter-title">3.5 RStudio Lesson 2: Combining variables and recoding</h2></div><div class="ugc chapter-ugc"><p>[Coming soon]</p> </div></div>
<div class="part " id="part-slug-4-probability-and-the-binomial-distributions"><div class="part-title-wrap"><h3 class="part-number">IV</h3><h1 class="part-title">4. Probability and the Binomial Distributions</h1></div><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-4-1-probability" title="4.1 Probability"><div class="chapter-title-wrap"><h3 class="chapter-number">13</h3><h2 class="chapter-title">4.1 Probability</h2></div><div class="ugc chapter-ugc"><p>The basic definition of probability is a ratio of things you can count (a ratio of their frequencies) :</p> <p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">(4.1) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4fcb1d3e9852f1ac25f916f1c21b8c64_l3.svg" height="42" width="106" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32;&#32;&#80;&#40;&#69;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#110;&#40;&#69;&#41;&#125;&#123;&#110;&#40;&#83;&#41;&#125;&#32;&#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>where</p> <p style="padding-left: 40px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-75b1197c16ced33df4f4f3b69539d491_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#69;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="41" style="vertical-align: -4px;" /> is the probability that event <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-764e1c770271f92700e1a4fbce46c668_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#69;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> happens,<br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-56333a44523c51826e0a76adebbc289a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#40;&#69;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="38" style="vertical-align: -4px;" /> is the number of ways <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-764e1c770271f92700e1a4fbce46c668_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#69;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> can happen and<br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4f6705290684c57beaf6f7c65c846c2f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#40;&#83;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="35" style="vertical-align: -4px;" /> is the total number of outcomes (all possibilities).</p> <p><strong>Example 4.1</strong> : What is the probability of drawing a queen from a deck of cards :</p> <p style="text-align: left; padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 36px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e0f09b5a751f0d49efdbc7f260aac2d5_l3.svg" height="36" width="583" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#80;&#40;&#69;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#52;&#125;&#123;&#53;&#50;&#125;&#32;&#61;&#32;&#48;&#46;&#48;&#55;&#55;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#92;&#32;&#92;&#32;&#92;&#32;&#40;&#55;&#46;&#55;&#92;&#37;&#32;&#105;&#102;&#32;&#119;&#101;&#32;&#119;&#101;&#114;&#101;&#32;&#116;&#111;&#32;&#101;&#120;&#112;&#114;&#101;&#115;&#115;&#32;&#116;&#104;&#101;&#32;&#114;&#101;&#115;&#117;&#108;&#116;&#32;&#105;&#110;&#32;&#112;&#101;&#114;&#99;&#101;&#110;&#116;&#97;&#103;&#101;&#115;&#41;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: right;">▢</p> <p style="text-align: left;">To use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-75b1197c16ced33df4f4f3b69539d491_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#69;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="41" style="vertical-align: -4px;" /> mathematically we set</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-215f79b5dc05e5136d3cdaa04ae403fb_l3.svg" height="18" width="106" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#48;&#32;&#92;&#108;&#101;&#113;&#32;&#80;&#40;&#69;&#41;&#32;&#92;&#108;&#101;&#113;&#32;&#49;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>Where, probability-wise:</p> <p style="padding-left: 40px;">0 means <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-764e1c770271f92700e1a4fbce46c668_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#69;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> definitely will not occur, and<br /> 1 means <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-764e1c770271f92700e1a4fbce46c668_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#69;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> definitely will occur.</p> <p>This is a method we can use instead of using percent. To compute probabilities, we first need to know how to count.</p> <p><strong>Fundamental Counting Rule </strong></p> <p>Say you have n events in order, and for event <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> there are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-73b8aea547cf5679a0e20f10a1b89132_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="14" style="vertical-align: -3px;" /> ways for it to happen. Then the number of ways for the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> events to play out is :</p> <p class="ql-center-displayed-equation" style="line-height: 50px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-91c1961739d01977baf5163e71307cd8_l3.svg" height="50" width="185" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#107;&#95;&#49;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#107;&#95;&#50;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#107;&#95;&#51;&#32;&#92;&#104;&#100;&#111;&#116;&#115;&#32;&#107;&#95;&#110;&#32;&#61;&#32;&#92;&#112;&#114;&#111;&#100;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#123;&#110;&#125;&#32;&#107;&#95;&#105; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>(The giant pi symbolizes a multiplication convention in the same way that a giant sigma symbolizes a summation convention as described in Section 1.3.)</p> <p><strong>Example 4.2</strong> How many combinations are there on a lock with 3 numbers?</p> <p>Lay out the events as : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3266a11af828984f3e233e73e048c99c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;&#95;&#123;&#49;&#125;&#61;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="17" width="59" style="vertical-align: -4px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-18c29d15d25a436fdb8d106f8ebe115f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;&#95;&#123;&#50;&#125;&#61;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="59" style="vertical-align: -3px;" />, and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5d7db4a860ef6faeb339b56f43c0dbff_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;&#95;&#123;&#51;&#125;&#61;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="59" style="vertical-align: -3px;" />. Note that each number can be anything from 0 to 9 giving 10 possibilities (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-faaf7bf368513af7512e4e9afb8be071_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;&#95;&#123;&#105;&#125;&#32;&#61;&#32;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="56" style="vertical-align: -3px;" />) for each event. So the number of possible lock combinations is</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 20px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-883b3a2704b4d96b0904bcf58d99428d_l3.svg" height="20" width="262" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#107;&#95;&#49;&#32;&#107;&#95;&#50;&#32;&#107;&#95;&#51;&#32;&#61;&#32;&#49;&#48;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#49;&#48;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#49;&#48;&#32;&#61;&#32;&#49;&#48;&#94;&#51;&#32;&#61;&#32;&#49;&#48;&#48;&#48; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>Note that you could have guessed this because the combination range from 000 to 999 &#8212; counting in base 10.</p> <p style="text-align: right;">▢</p> <p><strong>Example 4.3</strong> Suppose that a hardware store can produce paints with the following qualities :</p> <p style="padding-left: 40px;">Colour : red, blue, white, black, green, brown, yellow (7 colours)</p> <p style="padding-left: 40px;">Type : latex, oil (2 types)</p> <p style="padding-left: 40px;">Texture : flat, semigloss, high-gloss (3 textures)</p> <p style="padding-left: 40px;">Use : indoor, outdoor (2 uses)</p> <p>How many ways are there to combine these qualities to produce a can of paint?</p> <p><em><strong>Answer</strong></em> : From the above list <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-05e519b371b2af8bc1266a8a245b9466_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;&#95;&#123;&#49;&#125;&#61;&#55;&#44;&#32;&#107;&#95;&#123;&#50;&#125;&#61;&#50;&#44;&#32;&#107;&#95;&#123;&#51;&#125;&#61;&#51;&#44;&#32;&#107;&#95;&#123;&#52;&#125;&#61;&#50;" title="Rendered by QuickLaTeX.com" height="17" width="220" style="vertical-align: -4px;" /> and the number of possible paint kinds is:</p> <p class="ql-center-displayed-equation" style="line-height: 14px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-178fa8f70d03e5f6fed139fe4936ffda_l3.svg" height="14" width="116" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#55;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#50;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#51;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#50;&#32;&#61;&#32;&#56;&#52; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: right;">▢</p> <p><strong>Applications of the Fundamental Counting Rule</strong></p> <p>We are interested in applying the fundamental counting rule to two special, important cases :</p> <ol><li>Permutations.</li> <li>Combinations.</li> </ol> <p>Let&#8217;s define each one.</p> <ol><li><strong>Permutations</strong>.</li> </ol> <p>The number of ways, or permutations, of selecting <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c409433a9e2dfcdb83360a974d243f18_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#114;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> objects from a collection or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> objects, <em>while keeping track of the order of selection</em> is <span class="footnote">Recall that the definition of factorial follows <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a2b50d96c696c1a54d98a8a6cf68bedc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#53;&#33;&#32;&#61;&#32;&#53;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#52;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#51;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#50;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#49;" title="Rendered by QuickLaTeX.com" height="14" width="132" style="vertical-align: -1px;" /> etc.</span></p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 40px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-47a73dbf535c896b0af2c24b108e142f_l3.svg" height="40" width="114" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#123;&#125;&#95;&#123;&#110;&#125;&#80;&#95;&#123;&#114;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#110;&#33;&#125;&#123;&#40;&#110;&#45;&#114;&#41;&#33;&#125; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>This formula follows from the fundamental counting rule. With <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> objects there are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-227c3c7aa3327235cdc5abe738794d08_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;&#95;&#123;&#49;&#125;&#32;&#61;&#32;&#110;" title="Rendered by QuickLaTeX.com" height="17" width="52" style="vertical-align: -4px;" /> ways to select the first object. After selecting the first object there are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f30b71e7fcec69d119f30f67cf09c975_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="13" width="40" style="vertical-align: -1px;" /> ways to choose the second object so <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8dcadafbb953cc7ced174f76877ac5b7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;&#95;&#123;&#50;&#125;&#32;&#61;&#32;&#110;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="16" width="81" style="vertical-align: -3px;" />, etc. up to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fc2f2240fc908f60e48aa8152d8873f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;&#95;&#123;&#114;&#125;&#32;&#61;&#32;&#110;&#32;&#45;&#32;&#114;&#32;&#43;&#32;&#49;" title="Rendered by QuickLaTeX.com" height="16" width="111" style="vertical-align: -3px;" /> :</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bdc2fff950c899ad0f6703f453eaa783_l3.svg" height="18" width="297" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#123;&#125;&#95;&#110;&#80;&#95;&#114;&#32;&#61;&#32;&#40;&#110;&#41;&#40;&#110;&#45;&#49;&#41;&#40;&#110;&#45;&#50;&#41;&#32;&#92;&#104;&#100;&#111;&#116;&#115;&#32;&#40;&#110;&#45;&#114;&#43;&#49;&#41;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-596b342f935095899ca3078405de2f21_l3.svg" height="42" width="232" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#110;&#41;&#40;&#110;&#45;&#49;&#41;&#32;&#92;&#104;&#100;&#111;&#116;&#115;&#32;&#40;&#50;&#41;&#40;&#49;&#41;&#125;&#123;&#40;&#110;&#45;&#114;&#41;&#40;&#110;&#45;&#114;&#45;&#49;&#41;&#32;&#92;&#104;&#100;&#111;&#116;&#115;&#32;&#40;&#50;&#41;&#40;&#49;&#41;&#125; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p><strong>Example 4.4</strong> : How many ways are there to choose 5 numbered balls from a bucket of 25 to make a lottery number?</p> <p><em><strong>Answer</strong></em> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3d1c71446db738b942bbb2dd61d2d03f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#50;&#53;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#50;&#52;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#50;&#51;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#50;&#50;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#50;&#49;&#32;&#61;&#32;&#54;&#44;&#51;&#55;&#53;&#44;&#54;&#48;&#48;" title="Rendered by QuickLaTeX.com" height="17" width="242" style="vertical-align: -4px;" /> possibilities.</p> <p style="text-align: right;">▢</p> <p><strong>      2. Combinations</strong>.</p> <p>The number of ways of selecting <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> objects from a collection of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> objects <em>without</em> caring about the order is :</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9042342684dd346f95892ea1e4a5b0ea_l3.svg" height="43" width="264" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#123;&#125;&#95;&#110;&#67;&#95;&#120;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#110;&#33;&#125;&#123;&#40;&#110;&#45;&#120;&#41;&#33;&#120;&#33;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#123;&#125;&#95;&#110;&#80;&#95;&#120;&#125;&#123;&#120;&#33;&#125;&#32;&#61; &#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#99;&#125;&#32;&#110;&#32;&#92;&#92;&#32;&#120; &#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>That last symbol <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2a6ca023a202e1f6a7f9457268fb0794_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#99;&#125;&#32;&#110;&#32;&#92;&#92;&#32;&#120; &#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;" title="Rendered by QuickLaTeX.com" height="43" width="47" style="vertical-align: -17px;" /> is colloquially called &#8220;<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> choose <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" />&#8221;. The second last expression demonstrates the application of the fundamental counting principal, it says</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-27399c26cb044cdbfb41b4033a9dbd89_l3.svg" height="43" width="269" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#99;&#125;&#32;&#110;&#32;&#92;&#92;&#32;&#120; &#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#110;&#41;&#40;&#110;&#45;&#49;&#41;&#32;&#92;&#104;&#100;&#111;&#116;&#115;&#32;&#40;&#110;&#45;&#120;&#45;&#49;&#41;&#125;&#123;&#120;&#33;&#125; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a32350c294b30c5fe532ac647914750c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#33;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> is just the number of ways of arranging <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> objects while caring about the order, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-57e405dc2f2941b3588272caccaa6d15_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#33;&#32;&#61;&#32;&#123;&#125;&#95;&#123;&#120;&#125;&#80;&#95;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="66" style="vertical-align: -3px;" />.</p> <p>As a practical matter, never try to compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-da0ef996f36e1b32a0f26f6e896e1771_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#33;" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: 0px;" /> It will usually be unimaginably big. Use the formula that directly shows the fundamental counting rule as shown in the following example.</p> <p><strong>Example 4.5</strong> : How many ways are there to select 10 balls from a bucket of 100?</p> <p><em><strong>Answer</strong></em> : </p> <p class="ql-center-displayed-equation" style="line-height: 45px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-11fc6457d770718433ca9266b7153363_l3.svg" height="45" width="662" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#99;&#125;&#32;&#49;&#48;&#48;&#32;&#92;&#92;&#32;&#49;&#48;&#32;&#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41; &#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#48;&#48;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#57;&#57;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#57;&#56;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#57;&#55;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#57;&#54;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#57;&#53;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#57;&#52;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#57;&#51;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#57;&#50;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#57;&#49;&#125; &#123;&#49;&#48;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#57;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#56;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#55;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#54;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#53;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#52;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#51;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#50;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#49;&#125;&#32;&#92;&#92; &#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#54;&#46;&#50;&#56;&#49;&#53;&#54;&#53;&#49;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#48;&#94;&#123;&#49;&#57;&#125;&#125;&#123;&#51;&#44;&#54;&#50;&#56;&#44;&#56;&#48;&#48;&#125;&#32;&#61;&#32;&#92;&#117;&#110;&#100;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#49;&#55;&#46;&#51;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#48;&#94;&#123;&#49;&#50;&#125;&#125; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: right;">▢</p> <p>The symbol <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3ef0ca14af4b9a00c4856437091409f0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#99;&#125;&#32;&#110;&#32;&#92;&#92;&#32;&#120;&#32;&#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;" title="Rendered by QuickLaTeX.com" height="43" width="47" style="vertical-align: -17px;" /> is also known as the <em>binomial coefficient</em> because it shows up in algebra when you expand expressions of the form <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6361924ca0cf532832256be750b7223d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#40;&#120;&#43;&#121;&#41;&#94;&#123;&#110;&#125;" title="Rendered by QuickLaTeX.com" height="18" width="62" style="vertical-align: -4px;" />. For example<span class="footnote">You don't need this algebra for this statistics course. It's just interesting.</span></p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 21px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-61d3c6cc9f017d4e58bb8b428f515e31_l3.svg" height="21" width="192" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#40;&#120;&#43;&#121;&#41;&#94;&#110;&#32;&#61;&#32;&#120;&#94;&#50;&#32;&#43;&#32;&#50;&#120;&#121;&#32;&#43;&#32;&#121;&#94;&#50; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 69px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b818a11c0fdf8f7fdc77f9a31a0ecda3_l3.svg" height="69" width="478" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#40;&#120;&#43;&#121;&#41;&#94;&#51;&#32;&#38;&#61;&#38;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#99;&#125;&#32;&#51;&#92;&#92;&#48;&#32;&#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#120;&#94;&#51;&#32;&#43;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#99;&#125;&#32;&#51;&#92;&#92;&#49;&#32;&#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#120;&#94;&#50;&#121;&#32;&#43;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#99;&#125;&#32;&#51;&#92;&#92;&#50;&#32;&#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#120;&#121;&#94;&#50;&#32;&#43;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#99;&#125;&#32;&#51;&#92;&#92;&#51;&#32;&#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#121;&#94;&#51;&#32;&#92;&#92; &#38;&#61;&#38;&#32;&#120;&#94;&#51;&#32;&#43;&#32;&#51;&#120;&#94;&#50;&#121;&#32;&#43;&#32;&#51;&#120;&#121;&#94;&#50;&#32;&#43;&#32;&#121;&#94;&#51; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>The binomial coefficients can be quickly computed using Pascal&#8217;s triangle :</p> <p class="ql-center-displayed-equation" style="line-height: 184px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e633b10e3c3d48a763c310e9dc903726_l3.svg" height="184" width="424" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#99;&#99;&#99;&#99;&#99;&#99;&#99;&#99;&#99;&#99;&#99;&#99;&#99;&#99;&#99;&#125; &#38;&#38;&#38;&#38;&#38;&#38;&#38;&#38;&#38;&#38;&#38;&#38;&#38;&#38;&#32;&#110;&#32;&#61;&#32;&#92;&#92; &#38;&#38;&#38;&#38;&#38;&#38;&#32;&#49;&#32;&#38;&#38;&#38;&#38;&#38;&#38;&#38;&#38;&#32;&#48;&#32;&#92;&#92; &#38;&#38;&#38;&#38;&#38;&#32;&#49;&#32;&#38;&#38;&#32;&#49;&#32;&#38;&#38;&#38;&#38;&#38;&#38;&#38;&#32;&#49;&#32;&#92;&#92; &#38;&#38;&#38;&#38;&#32;&#49;&#32;&#38;&#38;&#32;&#50;&#32;&#38;&#38;&#32;&#49;&#32;&#38;&#38;&#38;&#38;&#38;&#38;&#32;&#50;&#32;&#92;&#92; &#38;&#38;&#38;&#32;&#49;&#32;&#38;&#38;&#32;&#51;&#32;&#38;&#38;&#32;&#51;&#32;&#38;&#38;&#32;&#49;&#32;&#38;&#38;&#38;&#38;&#38;&#32;&#51;&#32;&#92;&#92; &#38;&#38;&#32;&#49;&#32;&#38;&#38;&#32;&#52;&#32;&#38;&#38;&#32;&#54;&#32;&#38;&#38;&#32;&#52;&#32;&#38;&#38;&#32;&#49;&#32;&#38;&#38;&#38;&#38;&#32;&#52;&#32;&#92;&#92; &#38;&#32;&#49;&#32;&#38;&#38;&#32;&#53;&#32;&#38;&#38;&#32;&#49;&#48;&#32;&#38;&#38;&#32;&#49;&#48;&#32;&#38;&#38;&#32;&#53;&#32;&#38;&#38;&#32;&#49;&#32;&#38;&#38;&#38;&#32;&#53;&#32;&#92;&#92; &#49;&#32;&#38;&#38;&#32;&#54;&#32;&#38;&#38;&#32;&#49;&#53;&#32;&#38;&#38;&#32;&#50;&#48;&#32;&#38;&#38;&#32;&#49;&#53;&#32;&#38;&#38;&#32;&#54;&#32;&#38;&#38;&#32;&#49;&#32;&#38;&#38;&#32;&#54;&#32;&#92;&#92; &#38;&#38;&#38;&#38;&#38;&#38;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#101;&#116;&#99;&#46;&#125; &#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>Referring to Pascal&#8217;s triangle we can quickly write</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 21px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a5a6ce107fc9dc832f35f59e51814415_l3.svg" height="21" width="480" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#40;&#120;&#43;&#121;&#41;&#94;&#54;&#32;&#61;&#32;&#120;&#94;&#54;&#32;&#43;&#32;&#54;&#120;&#94;&#53;&#121;&#32;&#43;&#32;&#49;&#53;&#120;&#94;&#52;&#121;&#94;&#50;&#32;&#43;&#32;&#50;&#48;&#120;&#94;&#51;&#121;&#94;&#51;&#32;&#43;&#32;&#49;&#53;&#120;&#94;&#50;&#121;&#94;&#52;&#32;&#43;&#32;&#54;&#120;&#121;&#94;&#53;&#32;&#43;&#32;&#121;&#94;&#54; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>for example.</p> </div></div>
<div class="chapter standard" id="chapter-slug-4-2-binomial-distribution" title="4.2 Binomial Distribution"><div class="chapter-title-wrap"><h3 class="chapter-number">14</h3><h2 class="chapter-title">4.2 Binomial Distribution</h2></div><div class="ugc chapter-ugc">
 <p>Given a success/failure situation (or yes/no, black/white, any 2 outcome, dichotomous situation) and a probability of success <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-53cbd44115f6025b5b2a4d3282b5bc5d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(S)=p" title="Rendered by QuickLaTeX.com" height="18" width="72" style="vertical-align: -4px;" /> (and so a probability of failure <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-54c323ab504d1e16961c8eb0550815da_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(F) = q = 1 -p" title="Rendered by QuickLaTeX.com" height="18" width="137" style="vertical-align: -4px;" />), what is the probability of achieving <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> <em>successes in <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> trials? </em>In symbols<span class="footnote">Here the | is read as "given".</span> what is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-650eb7688af6737ac325425b5c9a5982_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" />(<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> successes | <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> trials)? Or with simpler notation, what is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-24d7c76a376777c33fdb8ea5116cd98b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x \mid n)" title="Rendered by QuickLaTeX.com" height="18" width="63" style="vertical-align: -4px;" />? The answer is :</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">(4.2) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c44c7de078c4a34985af83e222e13314_l3.svg" height="43" width="201" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} P(x \mid n) = \left( \begin{array}{c} n \\ x \end{array} \right) p^{x} q^{n-x}. \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p><em><strong>**Proof of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-24d7c76a376777c33fdb8ea5116cd98b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x \mid n)" title="Rendered by QuickLaTeX.com" height="18" width="63" style="vertical-align: -4px;" /> formula</strong></em></p> <p>Use the boxes we used in defining the fundamental counting rule to represent each trial.</p> <p>Consider <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-289014eb3f580212739c24a497c864d1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n = 1" title="Rendered by QuickLaTeX.com" height="13" width="42" style="vertical-align: -1px;" />.</p> <p><span style="font-size: 1em;">The probability that a success occurs is the definition of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />. So</span></p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b5edeea0ddcbdf2f2e2c4684cf872489_l3.svg" height="43" width="207" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[P(1 \mid 1) = p = \left( \begin{array}{c} 1 \\ 1 \end{array} \right) p^{1} q^{0}.\]" title="Rendered by QuickLaTeX.com" /></p> <p>Consider <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a47a3377f14fefc160d10b089a4aab45_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n = 2" title="Rendered by QuickLaTeX.com" height="12" width="42" style="vertical-align: 0px;" />. What is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-46a3e66e4602c8ecb7169e60b9c1f38d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(0 \mid 2)" title="Rendered by QuickLaTeX.com" height="18" width="59" style="vertical-align: -4px;" />? This is all failures :</p> <p>The probability of each failure is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ac7da57d7f507262338bb5168feb3e06_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="q" title="Rendered by QuickLaTeX.com" height="12" width="8" style="vertical-align: -4px;" /> so the probability of getting FF is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-79152249a75377e4bef05364ecef7150_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="q \cdot q = q^{2}" title="Rendered by QuickLaTeX.com" height="19" width="69" style="vertical-align: -4px;" />. So</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bc62e98de732e0d03dc03c6b7fa9ba12_l3.svg" height="43" width="215" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ P(0 \mid 2) = q^{2} = \left( \begin{array}{c} 2 \\ 0 \end{array} \right) p^{0} q^{2}. \]" title="Rendered by QuickLaTeX.com" /></p> <p>(Note that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-dc9f5db9cf48acd3001027cd2c5f49a8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\left( \begin{array}{c} 2 \\ 0 \end{array} \right) = 1" title="Rendered by QuickLaTeX.com" height="43" width="80" style="vertical-align: -17px;" /> <em>by definition</em>. There is exactly one way to draw no things from a collection of 2.)</p> <p>What is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-73a225324bb693aca079b53ebf9da78b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(1 \mid 2)" title="Rendered by QuickLaTeX.com" height="18" width="59" style="vertical-align: -4px;" />? Each probability of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-681c58403dc24316ae3a1afe4f0c3831_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p \cdot q" title="Rendered by QuickLaTeX.com" height="12" width="31" style="vertical-align: -4px;" /> (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-681c58403dc24316ae3a1afe4f0c3831_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p \cdot q" title="Rendered by QuickLaTeX.com" height="12" width="31" style="vertical-align: -4px;" /> for the first one, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-174531cb423372dec7312bb967de28ae_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="q \cdot p" title="Rendered by QuickLaTeX.com" height="12" width="30" style="vertical-align: -4px;" /> for the second one). So</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bc5baaa774d1a529538c1f6b16db49aa_l3.svg" height="43" width="251" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ P(1 \mid 2) = 2 \cdot p \cdot q = \left( \begin{array}{c} 2 \\ 1 \end{array} \right) p^{1} q^{1}. \]" title="Rendered by QuickLaTeX.com" /></p> <p>For <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3976ff8b81cbf5060581dc2ccd19c5c1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x = 2" title="Rendered by QuickLaTeX.com" height="12" width="42" style="vertical-align: 0px;" /> we have</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f67fa0d3f63802f0681715e220aa3024_l3.svg" height="43" width="175" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ P(2 \mid 2) = \left( \begin{array}{c} 2 \\ 2 \end{array} \right) p^{2} q^{0}. \]" title="Rendered by QuickLaTeX.com" /></p> <p>We can continue this way for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-01ed39fd64fe9f493cb65bf7b651dba3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n = 3, 4, \ldots" title="Rendered by QuickLaTeX.com" height="16" width="88" style="vertical-align: -4px;" /> but this is clearly tedious. The way of “mathematical induction” is the formal way to proceed but let’s try a more intuitive approach.</p> <p style="text-align: left;">For <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> successes in <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> trials, consider our <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> boxes, then any given sequence with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> successes will have <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b227bf7e2a6ef909a649f224cb2125ad_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n-x" title="Rendered by QuickLaTeX.com" height="8" width="42" style="vertical-align: 0px;" /> failures and so that given sequence will have a probability of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fd7a860294a6ecc9b6e65637b7911165_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p^{x}q^{n-x}" title="Rendered by QuickLaTeX.com" height="16" width="54" style="vertical-align: -4px;" />. But how many specific sequences with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> successes are there? Think of it this way. Of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> boxes, how many ways are there to write <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> S’s in the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> boxes? There are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> possibilities (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> boxes are available) to write the first S, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f30b71e7fcec69d119f30f67cf09c975_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n-1" title="Rendered by QuickLaTeX.com" height="13" width="40" style="vertical-align: -1px;" /> ways after that to write the second S, etc. But we don’t care which order we wrote the S’s into the boxes so divide by <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-da0ef996f36e1b32a0f26f6e896e1771_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n!" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: 0px;" />. In other words there are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b5660da083636989faa4d45f94adfdfb_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\left( \begin{array}{c} n\\ x \end{array} \right)" title="Rendered by QuickLaTeX.com" height="43" width="47" style="vertical-align: -17px;" /> <em>specific</em> sequences with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> successes. Putting it all together :</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e37cc1e53dc8a358a50cd17efa5e3966_l3.svg" height="43" width="201" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ P(x \mid n) = \left( \begin{array}{c} n \\ x \end{array} \right) p^{x} q^{n-x}. \]" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: right;">▢</p> <p><strong>Example 4.6</strong> : In bucket of 100 toys with 20 dinosaurs and 80 bugs, consider drawing a dinosaur a success. So <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b8b9eb0d3670c50448216e5b0a750066_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(S)=p=0.2" title="Rendered by QuickLaTeX.com" height="18" width="118" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0615b941c451d426a4b667eb162717dc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(F)=q = 1-p=0.8" title="Rendered by QuickLaTeX.com" height="18" width="183" style="vertical-align: -4px;" />. Let us make an approximation and assume that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> does not change with each draw<span class="footnote">**By assuming that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> does not change, we will be lead to the binomial distribution. If we more accurately assume that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5c3e6412a05d8f2f91a54a8133c2cada_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(S)" title="Rendered by QuickLaTeX.com" height="18" width="39" style="vertical-align: -4px;" /> changes with each draw we will be lead to the hypergeometic distribution. For fun, let's consider the case where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5c3e6412a05d8f2f91a54a8133c2cada_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(S)" title="Rendered by QuickLaTeX.com" height="18" width="39" style="vertical-align: -4px;" /> changes with each draw. It's just another application of the fundamental counting rule. To begin, there are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a94616962b97fe3fc13a9a5dc5322843_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\left( \begin{array}{c} 100 \\ 10 \end{array}\right) = 17.3 \times 10^{12}" title="Rendered by QuickLaTeX.com" height="43" width="175" style="vertical-align: -17px;" /> ways of drawing 10 toys from the bucket without caring if it is a dinosaur or a bug. This is the size of the <em>sample space</em>; it is how many ways there are to make a sample of size 10 from the bucket of 100 choices; it is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4f6705290684c57beaf6f7c65c846c2f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n(S)" title="Rendered by QuickLaTeX.com" height="18" width="35" style="vertical-align: -4px;" /> in Equation (4.1). There are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-30e823d4c7e2ebda60802045f89d4d59_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="17.3 \times 10^{12}" title="Rendered by QuickLaTeX.com" height="16" width="84" style="vertical-align: -1px;" /> samples of 10 in the bucket. If we want 3 dinosaurs in our sample, as in the example in text then of the 20 dinosaurs in the bucket, there are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f8b5c35053159f2290458f521b9fa8c9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\left( \begin{array}{c} 20 \\ 3 \end{array} \right) = 1140" title="Rendered by QuickLaTeX.com" height="43" width="117" style="vertical-align: -17px;" /> ways to get 3 dinosaurs and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1baaea938a9689a8fd5960d6aeaae007_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\left( \begin{array}{c} 80 \\ 7 \end{array} \right) = 3.18 \times 10^{9}" title="Rendered by QuickLaTeX.com" height="43" width="159" style="vertical-align: -17px;" /> ways to get 7 bugs from the 80 in the bucket. So there are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cd9e8e3e47b2bb3e0120958e3262fee0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\left( \begin{array}{c} 20 \\ 3 \end{array} \right) \cdot \left( \begin{array}{c} 80 \\ 7 \end{array} \right) = 3.62 \times 10^{12}" title="Rendered by QuickLaTeX.com" height="43" width="239" style="vertical-align: -17px;" /> ways to draw 3 dinosaurs and 7 bugs from the bucket. This number is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-56333a44523c51826e0a76adebbc289a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n(E)" title="Rendered by QuickLaTeX.com" height="18" width="38" style="vertical-align: -4px;" /> in Equation (4.1). And so </span></p> <p class="ql-center-displayed-equation" style="line-height: 92px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2795d47b7e2686e662b26e29bc24458d_l3.svg" height="92" width="516" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ P(3 \mbox{ dinosaurs} \mid 10 \mbox{ toys}) = \frac{\left( \begin{array}{c} 20 \\ 3 \end{array} \right) \left( \begin{array}{c} 80 \\ 7 \end{array} \right)}{\left( \begin{array}{c} 100 \\ 10 \end{array} \right)} = \frac{3.62 \times 10^{12}}{17.3 \times 10^12} = 0.209 \]" title="Rendered by QuickLaTeX.com" /></p> <p>Note how close this is to the answer from the binomial distribution of 0.201.</p> <p>Say we want to know <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-650eb7688af6737ac325425b5c9a5982_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" />(3 successes <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9c673c985af91f39f38f81d1bf1a488f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mid" title="Rendered by QuickLaTeX.com" height="18" width="1" style="vertical-align: -4px;" />10 trials). In other words, what is the probability that if I take 10 toys out of the bucket that exactly 3 of them are dinosaurs? Using Equation (4.2) we find</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8ce840344829cd9f969c5035171d77e5_l3.svg" height="43" width="285" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ P(3 \mid 10) = \left( \begin{array}{c} 10 \\ 3 \end{array} \right) 0.2^{3} 0.8^{7} = 0.201. \]" title="Rendered by QuickLaTeX.com" /></p> <p>The actual process of doing this calculation is somewhat tedious and therefore error prone. So in a test, for example, you will want to use the <strong>Binomial Distribution Table</strong> included in this text in the <a href="#back-matter-appendix-tables" target="_blank" rel="noopener noreferrer">Appendix</a>. In the <strong>Binomial Distribution Table</strong>, you simply find the appropriate <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> and then <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> in the column on the left and then look under the appropriate <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> column to find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-24d7c76a376777c33fdb8ea5116cd98b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x \mid n)" title="Rendered by QuickLaTeX.com" height="18" width="63" style="vertical-align: -4px;" /> for the given <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />.</p> <p style="text-align: right;">▢</p> <p>The complete binomial distribution specifies the probabilities of all <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> successes from 0 to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />, and can be plotted as a histogram. Note that there is a binomial distribution for each <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />. Let’s plot the binomial distribution for getting <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> successes (dinosaurs) in forming a sample of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8c21da861c4a9dbc9d42aead2976d0b6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n=10" title="Rendered by QuickLaTeX.com" height="13" width="52" style="vertical-align: -1px;" /> toys with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-25de85f00c04d70c3a0000ea3b6a889f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p=0.2" title="Rendered by QuickLaTeX.com" height="16" width="56" style="vertical-align: -4px;" />. The <strong>Binomial Distribution Table</strong> contains the relative frequency table for the histogram that represents the binomial distribution shown in Figure 4.1.</p> <div class="wp-caption aligncenter" id="attachment_1473" aria-describedby="caption-attachment-1473" style="width: 578px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig17png.png"><img class="wp-image-1473" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig17png-300x168.png" alt="" width="578" height="324" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig17png-300x168.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig17png-768x429.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig17png-65x36.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig17png-225x126.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig17png-350x196.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig17png.png 914w" /></a><div class="wp-caption-text" id="caption-attachment-1473">Figure 4.1 : The binomial distribution for the example of forming samples of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8c21da861c4a9dbc9d42aead2976d0b6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n=10" title="Rendered by QuickLaTeX.com" height="13" width="52" style="vertical-align: -1px;" /> toys with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> representing the number of dinosaurs in the sample and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-737e33eb575b4c98ac933cb999c8689a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p = 0.2" title="Rendered by QuickLaTeX.com" height="16" width="56" style="vertical-align: -4px;" /> being the probability of selecting a dinosaur in forming the sample. Note that the probability of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> = 8, 9 or 10 is not zero, just less than 0.001.</div></div> <p>The binomial distribution is an example of a <em>discrete probability distribution</em>. It is a histogram of relative frequencies obtained by counting possibilities in sample space.<span class="footnote">Sample space is the set of all possible samples.</span></p> <p style="text-align: left;">The mean and variance of any discrete distribution are given by</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 37px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3530854c9cbed5cb805b21672c402e8e_l3.svg" height="37" width="123" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \mu = \sum_{x} x \cdot P(x) \]" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 54px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8b5217de2bed9a595492a44ad7c3f1cb_l3.svg" height="54" width="363" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \sigma^{2} = \sum_{x}(x-\mu)^2 \cdot P(x) = \left [ \sum_{x} x^2 \cdot P(x) \right] - \mu^2 \]" title="Rendered by QuickLaTeX.com" /></p> <p>These two formulae come from the grouped data expressions <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b155c44b315a956eccb7ba52e3aa6501_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu = \sum f(x) x/n" title="Rendered by QuickLaTeX.com" height="19" width="121" style="vertical-align: -5px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d487d9d5971a62f126c602ec2d5a5497_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma^{2} = \sum f(x)(x - \mu)^2/n" title="Rendered by QuickLaTeX.com" height="20" width="182" style="vertical-align: -5px;" />, by substituting <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-407e0e8749e46f14faf11d9a47bc626f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x) = f(x)/n" title="Rendered by QuickLaTeX.com" height="19" width="116" style="vertical-align: -5px;" />. If we substitute Equation 4.2 for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a80be6e42ac3b3c6528958bbfa21f92c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x)" title="Rendered by QuickLaTeX.com" height="18" width="37" style="vertical-align: -4px;" /> in these general equations we get</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 12px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6d7d1d2e08163f27be51590af6075488_l3.svg" height="12" width="54" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \mu = n p \]" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 21px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-46265dd03c05c76cd844056a74ae9e74_l3.svg" height="21" width="70" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \sigma^2 = npq \]" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: left;">which are the mean and variance for a binomial distribution with parameters <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />. The mean is the <em>expected value</em>.</p> <p><strong>Example 4.7</strong>&nbsp;: For the bucket of toys example:</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9319fcc2dcb30f18b673a2f872e9a2a2_l3.svg" height="16" width="184" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \mu = n \cdot p = 10 \cdot 0.20 = 2 \]" title="Rendered by QuickLaTeX.com" /></p> <p>So given any random sample of 10 toys we <em>expect</em>&nbsp;that 2 of them will be red.</p> <p style="text-align: right;">▢</p> <h1 id="chapter-59-section-1" class="section-header"><strong>4.2.1 Practical Binomial Distribution Examples</strong></h1> <p>The examples given here illustrate the <em>sampling theory</em> for forming samples from a dichotomous (with success/fail items; items of interest and no interest) population. In this situation we know exactly what is in the population and ask questions about what kind of samples can be formed and what is their probability. The sampling theory is completely described by the binomial distribution. Later, we will have a sampling theory based on the Central Limit Theorem which will lead us to the normal distribution.</p> <p>In practically solving these kinds of problems keep in mind that you need to identify: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" />.</p> <p><strong>Example 4.8</strong> : It was reported that 5<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> of Americans are afraid of being alone in a house at night. In a random sample of 20 Americans, what are the probabilities that the sample contains</p> <ol><li>exactly 5 afraid people?</li> <li>at most 3 afraid people?</li> <li>at least 3 afraid people?</li> </ol> <p><strong>Solution</strong> : First identify: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5fae3af19d57918bda74ca4246f9ad8b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n=20" title="Rendered by QuickLaTeX.com" height="12" width="52" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6e4f834e25bd23cbc31195a5246ca9fe_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p=0.05" title="Rendered by QuickLaTeX.com" height="17" width="65" style="vertical-align: -4px;" /> and the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> as specific to each question :</p> <ol><li>For this case, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-76b66d60b66f4d319ddd321906558954_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x = 5" title="Rendered by QuickLaTeX.com" height="13" width="42" style="vertical-align: 0px;" />, so from the <strong>Binomial Distribution Table</strong> get <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5db9f1ff18bd420e3c8d0d9ffbe382c9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x=5)=0.002" title="Rendered by QuickLaTeX.com" height="18" width="134" style="vertical-align: -4px;" />.</li> <li>For this case <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-69deb06de751e80bf5f09f379ee2bc53_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x = 0" title="Rendered by QuickLaTeX.com" height="12" width="43" style="vertical-align: 0px;" />, 1, 2 and 3 and we have to add up the probabilities<br /> From the <strong>Binomial Distribution Table</strong>:<br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ccaf45bc97a61396d89d4471007a9b2f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x=0) = 0.358" title="Rendered by QuickLaTeX.com" height="18" width="135" style="vertical-align: -4px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-47228bccac27818a929dd824950c23d8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x=1) = 0.377" title="Rendered by QuickLaTeX.com" height="18" width="135" style="vertical-align: -4px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-672ecc20f4c4dd0749be2a31b703c800_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x=2) = 0.189" title="Rendered by QuickLaTeX.com" height="18" width="135" style="vertical-align: -4px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-855a1f7be2740f2e5276f9ada2598968_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x=3) = 0.060" title="Rendered by QuickLaTeX.com" height="18" width="135" style="vertical-align: -4px;" /><br /> So <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-77ee2d46324ba504810297a097567dca_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x \textrm{ is at most 3}) = 0.358 + 0.377 + 0.189 + 0.060 = 0.989" title="Rendered by QuickLaTeX.com" height="18" width="450" style="vertical-align: -4px;" /></li> <li><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e2c4e122462fb25369bbf71c27252ddb_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x = 3" title="Rendered by QuickLaTeX.com" height="12" width="43" style="vertical-align: 0px;" />, 4, 5, 6, 7, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e0026e562e880ea1957118b74174b430_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\hdots" title="Rendered by QuickLaTeX.com" height="2" width="19" style="vertical-align: 0px;" />, 20<br /> From the <strong>Binomial Distribution Table</strong>:<br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-855a1f7be2740f2e5276f9ada2598968_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x=3) = 0.060" title="Rendered by QuickLaTeX.com" height="18" width="135" style="vertical-align: -4px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a0df8d5f559385cbd1723750c86fd3d3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x=4) = 0.013" title="Rendered by QuickLaTeX.com" height="18" width="135" style="vertical-align: -4px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-80b772b19d4eab0ae976e8c88a9560cd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x=5) = 0.002" title="Rendered by QuickLaTeX.com" height="18" width="134" style="vertical-align: -4px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5cde76e6b36c7bdf3a0bd4213e8b1de7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x=6 \textrm{ or more}) = \textrm{ approximately zero}" title="Rendered by QuickLaTeX.com" height="18" width="315" style="vertical-align: -4px;" /></li> </ol> <p>Since the probabilities of high <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> are too small to appear in the <strong>Binomial Distribution Table</strong> (and there would be many terms to consider if they weren’t) we should use the following trick :</p> <p class="ql-center-displayed-equation" style="line-height: 72px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae2779c20dcf1c154ae55779b32878ae_l3.svg" height="72" width="452" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{eqnarray*} P(x=3 \mbox{ or more}) &amp;=&amp; 1 - P(x \mbox{ is less than } 3) \\ &amp; = &amp; 1 - [P(0)+P(1)+P(2)]\\ &amp; = &amp; 1-[0.358+0.377+0.189]=0.076 \end{eqnarray*}" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: right;">▢</p> 
</div></div>
<div class="chapter standard" id="chapter-slug-4-3-spss-lesson-3-combining-variables-advanced" title="4.3 SPSS Lesson 3: Combining variables - advanced"><div class="chapter-title-wrap"><h3 class="chapter-number">15</h3><h2 class="chapter-title">4.3 SPSS Lesson 3: Combining variables - advanced</h2></div><div class="ugc chapter-ugc"> <p>In SPSS Lesson 2 we saw how we can take variables defined on a Lickert scale and add them together, reverse scaling if necessary, to produce a single, better, variable for analysis. This works because the Lickert scale variables all have the same “units” (number of answer choices). You can combine any variables that have the same units, like feet or years or whatever. But if the units are different, but the variables still measure the same thing, like, for example, number of diet days per week and calories eaten per meal both measure levels of healthy eating habits but it makes no sense to simply add two such variables. It is literally like adding apples and oranges. The solution is to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform the variables you want to add first. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform converts whatever units the original variable has to the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformed variable’s units of standard deviation distance from the mean. So when you add two <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformed variables you end up with another variable whose units are standard deviation distance from the mean.</p> <p>Let’s start by opening the file “HeightLatency.sav” from the <a href="#front-matter-data-sets" target="_blank" rel="noopener noreferrer">Data Sets</a>. There are two variables in this file that we will combine into fewer variables. We begin by combining the variables Height and Latency into a new variable.</p> <div class="wp-caption aligncenter" id="attachment_1635" aria-describedby="caption-attachment-1635" style="width: 820px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height1.png"><img class="wp-image-1635" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height1-300x169.png" alt="" width="820" height="462" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height1-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height1-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height1-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1635">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Since Height and Latency have different units, we need to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform them first by running a descriptive analysis, making sure you have the “Save standardized values as variables” box checked :</p> <div class="wp-caption aligncenter" id="attachment_1637" aria-describedby="caption-attachment-1637" style="width: 839px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height2.png"><img class="wp-image-1637" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height2-300x169.png" alt="" width="839" height="473" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height2-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height2-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height2-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height2-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height2-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height2-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height2-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height2-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1637">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Hit Ok.&nbsp;This will produce two new variables, visible in the Data View window, called ZHeight and ZLatency. We don’t care about the actual descriptive statistics output here. Now you can simply add the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transforms to produce the required new variable :</p> <div class="wp-caption aligncenter" id="attachment_1638" aria-describedby="caption-attachment-1638" style="width: 947px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height3.png"><img class="wp-image-1638" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height3-300x169.png" alt="" width="947" height="534" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height3-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height3-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height3-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height3-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height3-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height3-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height3-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height3-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1638">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Now let’s combine a couple of sets of variables that have compatible units. First add ZHeight to ZLatency (note the fancy new way to add) to produce a new variable Sub :</p> <div class="wp-caption aligncenter" id="attachment_1639" aria-describedby="caption-attachment-1639" style="width: 817px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height4.png"><img class="wp-image-1639" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height4-300x169.png" alt="" width="817" height="460" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height4-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height4-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height4-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height4-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height4-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height4-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height4-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height4-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1639">SPSS screenshot © International Business Machines Corporation.</div></div> <p>The new variable shows clearly on SPSS sheet :</p> <div class="wp-caption aligncenter" id="attachment_1640" aria-describedby="caption-attachment-1640" style="width: 858px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height5.png"><img class="wp-image-1640" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height5-300x169.png" alt="" width="858" height="483" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height5-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height5-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height5-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height5-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height5-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height5-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height5-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height5-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1640">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Next we will make a conversion from a quantitative variable to a qualitative variable essentially by dividing the data into classes. First a simple case. Create the new variable Life from the variable Latency as the following :</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8ecbdb8f274982cdb852d2e36a3490b9_l3.svg" height="43" width="262" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ {\rm Latency} = \left\{ \begin{array}{c} 1 {\rm \ if\ \ Latency} &lt; 17.5 \\ 2 {\rm \ if\ \ Latency} \geq 17.5 \end{array} \right. \]" title="Rendered by QuickLaTeX.com" /></p> <div class="wp-caption aligncenter" id="attachment_1641" aria-describedby="caption-attachment-1641" style="width: 867px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height6.png"><img class="wp-image-1641" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height6-300x169.png" alt="" width="867" height="488" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height6-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height6-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height6-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height6-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height6-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height6-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height6-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height6-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1641">SPSS screenshot © International Business Machines Corporation.</div></div> <p>We’ll need to do this in two steps. First pull up Transform <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Compute Variable and set it up so that 1 is in the Numeric Expression box. Then hit the If… button at the bottom left hand of the menu window to bring up :</p> <div class="wp-caption aligncenter" id="attachment_1643" aria-describedby="caption-attachment-1643" style="width: 843px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height7.png"><img class="wp-image-1643" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height7-300x169.png" alt="" width="843" height="475" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height7-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height7-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height7-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height7-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height7-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height7-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height7-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height7-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1643">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Then click Continue, then hit OK. That will create the new LatencyCat variable, with missing values. Those values will be filled in the next step.</p> <div class="wp-caption aligncenter" id="attachment_1644" aria-describedby="caption-attachment-1644" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height8.png"><img class="wp-image-1644" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height8-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height8-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height8-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height8-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height8-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height8-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height8-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height8-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height8-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1644">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Pull up Transform → Compute Variable again and, leaving LatencyCat where it is, put 2 in the Numeric Expression box, then hit the “If” button again and change the expression in the condition box, then hit Continue, then OK.&nbsp;Now LatencyCat is either 1 or 2 with no missing values&nbsp;:</p> <div class="wp-caption aligncenter" id="attachment_1645" aria-describedby="caption-attachment-1645" style="width: 822px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height9.png"><img class="wp-image-1645" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height9-300x169.png" alt="" width="822" height="463" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height9-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height9-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height9-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height9-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height9-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height9-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height9-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp4Height9-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1645">SPSS screenshot © International Business Machines Corporation.</div></div> </div></div>
<div class="chapter standard" id="chapter-slug-4-4-rstudio-lesson-3-combining-variables-advanced" title="4.4 RStudio Lesson 3: Combining variables - advanced"><div class="chapter-title-wrap"><h3 class="chapter-number">16</h3><h2 class="chapter-title">4.4 RStudio Lesson 3: Combining variables - advanced</h2></div><div class="ugc chapter-ugc"><p>[Coming soon]</p> </div></div>
<div class="part " id="part-slug-5-the-normal-distributions"><div class="part-title-wrap"><h3 class="part-number">V</h3><h1 class="part-title">5. The Normal Distributions</h1></div><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-5-1-discrete-versus-continuous-distributions" title="5.1 Discrete versus Continuous Distributions"><div class="chapter-title-wrap"><h3 class="chapter-number">17</h3><h2 class="chapter-title">5.1 Discrete versus Continuous Distributions</h2></div><div class="ugc chapter-ugc"><p>We can describe populations in terms of discrete variables (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-192557a1801849f8ef19298d141a8259_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#90;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="44" style="vertical-align: -1px;" />) or continuous variables (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5dd56a8e9c5e12a00cda4c65de181936_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="45" style="vertical-align: -1px;" />). In the last chapter we saw how to describe discrete probability distributions with the example of the binomial distributions. Discrete probabilities need to be added in inferential statistics and this can lead to complicated formulae. Calculus turns sums into integrals<span class="footnote">If you have no calculus background, an integral is a way of calculating areas under curves.</span> which generally lead to simpler formulae. In the following table we compare, and show the relationship between, discrete and continuous variables and their associated probability distributions.</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 100%;"><tbody><tr><td class="shaded" style="width: 50%; text-align: center;">Discrete</td> <td class="shaded" style="width: 50%; text-align: center;">Continuous</td> </tr> <tr><td style="width: 50%; text-align: center;"><ul><li style="text-align: left;">We have a finite number of values between the high and low values</li> <li style="text-align: left;">A histogram plot of the random variables <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> may be interpreted as a <strong style="orphans: 1; font-family: inherit; font-size: inherit;">probability distribution</strong><span style="orphans: 1; font-family: inherit; font-size: inherit;">.</span></li> </ul> </td> <td style="width: 50%; text-align: center;"><ul><li style="text-align: left;">We have an infinite number of values between the high and low values.</li> <li style="text-align: left;">With continuous random variables we have a <strong style="orphans: 1; font-family: inherit; font-size: inherit;">probability density</strong><span style="orphans: 1; font-family: inherit; font-size: inherit;">.</span></li> </ul> </td> </tr> <tr><td style="width: 50%; text-align: center;" colspan="2">By increasing the number of values in an appropriate limiting way you make<br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a7c9a0ffed59c3620a61d22aaeaf5fe7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#108;&#111;&#110;&#103;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;" title="Rendered by QuickLaTeX.com" height="11" width="27" style="vertical-align: -1px;" /> the discrete probability distribution <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a7c9a0ffed59c3620a61d22aaeaf5fe7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#108;&#111;&#110;&#103;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;" title="Rendered by QuickLaTeX.com" height="11" width="27" style="vertical-align: -1px;" /><br /> approach a probability density.</td> </tr> <tr><td style="width: 50%; text-align: left;"><ul><li>The units of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a80be6e42ac3b3c6528958bbfa21f92c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="37" style="vertical-align: -4px;" /> are probability.</li> </ul> </td> <td style="width: 50%; text-align: left;"><ul><li>The units of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a80be6e42ac3b3c6528958bbfa21f92c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="37" style="vertical-align: -4px;" /> are probability density. Probabilities are given by areas under the curve only.</li> </ul> </td> </tr> </tbody> </table> <p>We will be slurring our language and call a probability density, a probability distribution. So we&#8217;ll say normal distribution instead of normal density. Continuing the comparison, probability distributions and densities have means, moments, skewness, etc. :</p> <ul><li>Means and variances of a discrete probability distribution, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a80be6e42ac3b3c6528958bbfa21f92c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="37" style="vertical-align: -4px;" />, are given by the application of the grouped data formulae we saw in Chapter 4 : <p class="ql-center-displayed-equation" style="line-height: 37px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-053ad0e1d72ef3834e5ab14a78d88753_l3.svg" height="37" width="343" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#109;&#117;&#32;&#61;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#120;&#125;&#32;&#120;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#80;&#40;&#120;&#41;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#120;&#125;&#91;&#40;&#120;&#45;&#92;&#109;&#117;&#41;&#94;&#50;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#80;&#40;&#120;&#41;&#93;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> </li> <li>Means and variances of a continuous probability density, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a80be6e42ac3b3c6528958bbfa21f92c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="37" style="vertical-align: -4px;" /> are given by the integrals : <p class="ql-center-displayed-equation" style="line-height: 40px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fe9de3dfb1944670598779224a3f2de9_l3.svg" height="40" width="365" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#109;&#117;&#32;&#61;&#32;&#92;&#105;&#110;&#116;&#32;&#120;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#80;&#40;&#120;&#41;&#32;&#92;&#58;&#32;&#100;&#120;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#48;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#61;&#32;&#92;&#105;&#110;&#116;&#32;&#40;&#120;&#45;&#92;&#109;&#117;&#41;&#94;&#50;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#80;&#40;&#120;&#41;&#32;&#92;&#58;&#32;&#100;&#120;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>Recall that the variance is the second moment of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> about the mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" />.</p></li> </ul> <p>We don&#8217;t have to stop at the second moment about the mean. The third and fourth moments about the mean are called skewness and kurtosis respectively :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 100%; height: 42px;"><tbody><tr style="height: 14px;"><td class="shaded" style="width: 33.3333%; height: 14px; text-align: center;"></td> <td class="shaded" style="width: 33.3333%; height: 14px; text-align: center;">Discrete</td> <td class="shaded" style="width: 33.3333%; height: 14px; text-align: center;">Continuous</td> </tr> <tr style="height: 14px;"><td class="shaded" style="width: 33.3333%; height: 14px; text-align: center;">Skewness</td> <td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8cbb404cf396029a2c675be5176e332d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#95;&#51;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#51;&#125;&#125;&#32;&#92;&#115;&#117;&#109;&#40;&#120;&#45;&#92;&#109;&#117;&#41;&#94;&#123;&#51;&#125;&#80;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="183" style="vertical-align: -7px;" /></td> <td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-44722a6204953dcb2e1ffcd82b9ad388_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#95;&#51;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#51;&#125;&#125;&#32;&#92;&#105;&#110;&#116;&#40;&#120;&#45;&#92;&#109;&#117;&#41;&#94;&#123;&#51;&#125;&#80;&#40;&#120;&#41;&#100;&#120;" title="Rendered by QuickLaTeX.com" height="23" width="197" style="vertical-align: -7px;" /></td> </tr> <tr style="height: 14px;"><td class="shaded" style="width: 33.3333%; height: 14px; text-align: center;">Kurtosis</td> <td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-87bdc87a8a7a4ee45e39dce93e0d61eb_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#95;&#52;&#32;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#52;&#125;&#125;&#32;&#92;&#115;&#117;&#109;&#40;&#120;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#123;&#52;&#125;&#80;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="183" style="vertical-align: -7px;" /></td> <td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a16be03bd04ceae63cb9ab42f07b6f85_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#95;&#52;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#52;&#125;&#125;&#32;&#92;&#105;&#110;&#116;&#32;&#40;&#120;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#52;&#32;&#80;&#40;&#120;&#41;&#92;&#58;&#100;&#120;" title="Rendered by QuickLaTeX.com" height="23" width="200" style="vertical-align: -7px;" /></td> </tr> </tbody> </table> <p>SPSS will easily compute skewness and kurtosis. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e17258fb6b8dff8e7f9bf629ed8a1bd1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#95;&#123;&#51;&#125;" title="Rendered by QuickLaTeX.com" height="12" width="18" style="vertical-align: -4px;" /> is positive for a positively skewed distribution, negative for a negative skewed distribution. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-64cd76f457d77762c4e20de95387b6e7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#51;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8a29c9bfd45fcdb35341e02bafdd60ea_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#52;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" /> are &#8220;normalization&#8221; factors; they make the moments of the normal distribution simple.</p> <p style="text-align: left;">The moments of a probability distribution are important. In fact, if you specify all the moments of a distribution then you have completely specified the distribution. Let&#8217;s say that in another way. The specify a probability distribution you can either give its formula (as generally derived from counting) or you can give all its moments. The normal distribution with a mean of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> and a variance of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cc9e02a7ee97ee0f78742edeb5b38bdc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" /> is specified by the formula</p> <p class="ql-center-displayed-equation" style="line-height: 46px;"><span class="ql-right-eqno">(5.1) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6d61e3b7e164a7e6042673c6c19d97cc_l3.svg" height="46" width="156" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#80;&#40;&#120;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#101;&#94;&#123;&#45;&#40;&#120;&#45;&#92;&#109;&#117;&#41;&#94;&#50;&#47;&#50;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#125;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#50;&#92;&#112;&#105;&#125;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>or by its moments. The normal distribution with a mean of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> and a variance of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cc9e02a7ee97ee0f78742edeb5b38bdc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" /> is the only continuous probability distribution with moments (from first to second an on up) of: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cc9e02a7ee97ee0f78742edeb5b38bdc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" />, 0, 1, 0, 1, 0, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c964c2dc86f5d410f13e592117c5ec06_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#108;&#100;&#111;&#116;&#115;" title="Rendered by QuickLaTeX.com" height="2" width="19" style="vertical-align: 0px;" />. The normal distribution is special that way among probability distributions.</p> <p>&nbsp;</p> </div></div>
<div class="chapter standard" id="chapter-slug-5-2-the-normal-distribution-as-a-limit-of-binomial-distributions" title="5.2 **The Normal Distribution as a Limit of Binomial Distributions"><div class="chapter-title-wrap"><h3 class="chapter-number">18</h3><h2 class="chapter-title">5.2 **The Normal Distribution as a Limit of Binomial Distributions</h2></div><div class="ugc chapter-ugc"><p>The results of the derivation given here may be used to understand the origin of the Normal Distribution as a limit of Binomial Distributions<span class="footnote">The formula for the Binomial Distribution was apparently derived by Newton according to: Lindsay RB, Margenau. Foundations of Physics. Dover, New York, 1957 (originally published 1936). For that claim, Lindsay &amp; Margenau quote: von Mises R. Probability, Statistics, and Truth. Macmillan, New York, 1939 (originally published 1928). The derivation of the Normal Distribution presented here largely follows that given in Lindsay &amp; Margenau's book.</span>. A mathematical &#8220;trick&#8221; using logarithmic differentiation will be used.</p> <p>First, recall the definition of the Binomial Distribution<span class="footnote">In class we denoted the Binomial distribution as <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-24d7c76a376777c33fdb8ea5116cd98b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#120;&#32;&#92;&#109;&#105;&#100;&#32;&#110;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="63" style="vertical-align: -4px;" />. Here we use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-941fade6685f8746a5fcc445377a6f3c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;&#32;&#61;&#32;&#80;&#40;&#120;&#32;&#92;&#109;&#105;&#100;&#32;&#110;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="132" style="vertical-align: -4px;" /> to avoid using too many P's and p's.</span> as</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">(5.2) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9ff4f66a39bf210dc642faf38b6c6365_l3.svg" height="43" width="167" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;&#32;&#61;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#33;&#92;&#33;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#99;&#125;&#32;&#110;&#32;&#92;&#92;&#32;&#120;&#32;&#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#92;&#33;&#92;&#33;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#112;&#94;&#123;&#120;&#125;&#32;&#113;&#94;&#123;&#110;&#45;&#120;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> is the probability of success, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9f6c4185094b1a4662f8c423aae0cd7a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#113;&#32;&#61;&#32;&#49;&#32;&#45;&#32;&#112;" title="Rendered by QuickLaTeX.com" height="16" width="72" style="vertical-align: -4px;" /> is probability of failure and</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">(5.3) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-dcb8e5e2a4981210b00b9039aef91ca3_l3.svg" height="43" width="141" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#108;&#101;&#102;&#116;&#40;&#92;&#33;&#92;&#33;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#99;&#125;&#32;&#110;&#32;&#92;&#92;&#32;&#120;&#32;&#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#92;&#33;&#92;&#33;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#110;&#33;&#125;&#123;&#120;&#33;&#40;&#110;&#45;&#120;&#41;&#33;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>is the binomial coefficient that counts the number of ways to select <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> items from <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> items without caring about the order of selection. Here <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> is a discrete variable, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-192557a1801849f8ef19298d141a8259_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#90;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="44" style="vertical-align: -1px;" />, with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-56f0c5cf8c2212ccb1a99c37e0db2dca_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#48;&#32;&#92;&#108;&#101;&#113;&#32;&#120;&#32;&#92;&#108;&#101;&#113;&#32;&#110;" title="Rendered by QuickLaTeX.com" height="15" width="77" style="vertical-align: -3px;" />.</p> <p>The trick is to find a way to deal with the fact that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-192557a1801849f8ef19298d141a8259_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#90;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="44" style="vertical-align: -1px;" /> (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> is a discrete variable) for the Binomial Distribution and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5dd56a8e9c5e12a00cda4c65de181936_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="45" style="vertical-align: -1px;" /> (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> is a continuous variable) for the Normal Distribution<span class="footnote">Remember that the Normal Distribution is technically a probability density but we slur the use of the word distribution between probability distribution (discrete <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" />) and probability density (continuous <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" />) like everyone else.</span> In other words as we let <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f779f634df7735ddc73bedd032ccb239_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;" title="Rendered by QuickLaTeX.com" height="11" width="55" style="vertical-align: -1px;" /> we need to come up with a way to let <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b7398eb19d4a7b42e0948c84ca560c29_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#120;" title="Rendered by QuickLaTeX.com" height="12" width="25" style="vertical-align: 0px;" /> shrink<span class="footnote"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d6341e07661257df99f387922f201445_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#120;&#32;&#61;&#32;&#49;" title="Rendered by QuickLaTeX.com" height="13" width="57" style="vertical-align: -1px;" /> for the Binomial Distribution.</span> so that a probability density limit (the Normal Distribution) is reached from a sequence of probability distributions (modified Binomial Distributions). So let <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1865e783a3bb6175f82eb4c13d72e1f7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" /> represent the Normal Distribution with mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-933906eec46e63238508af3e2021785e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#32;&#61;&#32;&#110;&#112;" title="Rendered by QuickLaTeX.com" height="15" width="54" style="vertical-align: -4px;" /> and variance <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4d9ee19168626c4d1e23e0f187eb66b4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#110;&#112;&#113;" title="Rendered by QuickLaTeX.com" height="19" width="70" style="vertical-align: -4px;" />. We will show how <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c6386b4b4304e968bb0309e535bf39ea_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#108;&#105;&#109;&#95;&#123;&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#32;&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;&#32;&#61;&#32;&#119;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="170" style="vertical-align: -4px;" /> where each Binomial Distribution <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cdaab81dee75b30672f303b5919d2fa6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="45" style="vertical-align: -4px;" /> also has mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-933906eec46e63238508af3e2021785e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#32;&#61;&#32;&#110;&#112;" title="Rendered by QuickLaTeX.com" height="15" width="54" style="vertical-align: -4px;" /> and variance <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4d9ee19168626c4d1e23e0f187eb66b4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#110;&#112;&#113;" title="Rendered by QuickLaTeX.com" height="19" width="70" style="vertical-align: -4px;" />.</p> <p>The heart of the trick is to notice<span class="footnote">Remember that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ffe608e601e8c7193b5d915f441da188_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#125;&#123;&#100;&#120;&#125;&#32;&#92;&#108;&#110;&#40;&#120;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="22" width="92" style="vertical-align: -6px;" /> and use the chain rule to notice this.</span> that<br /> <a id="id3114419563"></a></p> <p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">(5.4) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5b6334e4590bd7a7a5eb6ca7a1a563ae_l3.svg" height="42" width="296" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#102;&#114;&#97;&#99;&#123;&#100;&#125;&#123;&#100;&#120;&#125;&#32;&#92;&#108;&#110;&#32;&#119;&#40;&#120;&#41;&#32;&#61;&#32;&#92;&#108;&#105;&#109;&#95;&#123;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#120;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#48;&#125;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#119;&#40;&#120;&#32;&#43;&#32;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#120;&#41;&#32;&#45;&#32;&#119;&#40;&#120;&#41;&#125;&#123;&#119;&#40;&#120;&#41;&#32;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#120;&#125;&#46;&#32; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>This is perfectly true for the density <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1865e783a3bb6175f82eb4c13d72e1f7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" />. The trick is to substitute the distribution <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cdaab81dee75b30672f303b5919d2fa6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="45" style="vertical-align: -4px;" /> for the density <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1865e783a3bb6175f82eb4c13d72e1f7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" /> in the RHS of Equation (5.4) to get :</p> <p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">(5.5) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-dd7a8bfdd803d9b99b98d2a1b915ae6e_l3.svg" height="42" width="332" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#102;&#114;&#97;&#99;&#123;&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#32;&#43;&#32;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#120;&#41;&#32;&#45;&#32;&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;&#125;&#123;&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;&#32;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#120;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#32;&#43;&#32;&#49;&#41;&#32;&#45;&#32;&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;&#125;&#123;&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>because <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d6341e07661257df99f387922f201445_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#120;&#32;&#61;&#32;&#49;" title="Rendered by QuickLaTeX.com" height="13" width="57" style="vertical-align: -1px;" />. The trick is to now pretend that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cdaab81dee75b30672f303b5919d2fa6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="45" style="vertical-align: -4px;" /> is a continuous function defined at all <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5dd56a8e9c5e12a00cda4c65de181936_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="45" style="vertical-align: -1px;" />; we just don&#8217;t know what its values should be for non-integer <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" />. With such a &#8220;continuation&#8221; of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cdaab81dee75b30672f303b5919d2fa6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="45" style="vertical-align: -4px;" /> we can write<span class="footnote">You can probably imagine many ways to continue the Binomial Distribution from <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-192557a1801849f8ef19298d141a8259_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#90;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="44" style="vertical-align: -1px;" /> to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5dd56a8e9c5e12a00cda4c65de181936_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="45" style="vertical-align: -1px;" />. It doesn't matter which one you pick as long as the behaviour of your new function is not too crazy between the integers; that is, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f6878acf811eb313a5e74f62d7a8f04a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#108;&#105;&#109;&#95;&#123;&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#32;&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="109" style="vertical-align: -4px;" /> should exist at all <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5dd56a8e9c5e12a00cda4c65de181936_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="45" style="vertical-align: -1px;" />.</span></p> <p class="ql-center-displayed-equation" style="line-height: 187px;"><span class="ql-right-eqno">(..) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-938923dbf56f678df151cf67f0daa187_l3.svg" height="187" width="460" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#92;&#102;&#114;&#97;&#99;&#123;&#100;&#125;&#123;&#100;&#120;&#125;&#32;&#92;&#108;&#110;&#32;&#119;&#40;&#120;&#41;&#32;&#38;&#32;&#61;&#32;&#92;&#108;&#105;&#109;&#95;&#123;&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#32;&#43;&#32;&#49;&#41;&#32;&#45;&#32;&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;&#125;&#123;&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;&#125;&#32;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#54;&#125;&#92;&#92; &#38;&#32;&#61;&#32;&#92;&#108;&#105;&#109;&#95;&#123;&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#33;&#92;&#33;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#99;&#125;&#32;&#110;&#32;&#92;&#92;&#32;&#120;&#43;&#49;&#32;&#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#32;&#92;&#33;&#92;&#33;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#112;&#94;&#123;&#120;&#43;&#49;&#125;&#113;&#94;&#123;&#110;&#45;&#120;&#45;&#49;&#125;&#32;&#125;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#33;&#92;&#33;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#99;&#125;&#32;&#110;&#32;&#92;&#92;&#32;&#120;&#32;&#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#32;&#92;&#33;&#92;&#33;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#112;&#94;&#123;&#120;&#125;&#32;&#113;&#94;&#123;&#110;&#45;&#120;&#125;&#32;&#125;&#32;&#45;&#32;&#49;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#55;&#125;&#92;&#92; &#38;&#32;&#61;&#32;&#92;&#108;&#105;&#109;&#95;&#123;&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#110;&#45;&#120;&#125;&#123;&#120;&#43;&#49;&#125;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#112;&#125;&#123;&#113;&#125;&#32;&#45;&#49;&#46;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#56;&#125; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>Equation (5.8) has no limit; it blows up as <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f779f634df7735ddc73bedd032ccb239_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;" title="Rendered by QuickLaTeX.com" height="11" width="55" style="vertical-align: -1px;" />. We need to transform <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> in such a way to gain control on <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b7398eb19d4a7b42e0948c84ca560c29_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#120;" title="Rendered by QuickLaTeX.com" height="12" width="25" style="vertical-align: 0px;" /> (getting it to shrink as <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f779f634df7735ddc73bedd032ccb239_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;" title="Rendered by QuickLaTeX.com" height="11" width="55" style="vertical-align: -1px;" />) and to get something that converges. To do that we introduce <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b7cb70500422a28b00c92c64e0f48426_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#104;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="27" width="56" style="vertical-align: -11px;" /> and a new variable <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-85121c64652eec713992940b0eb56c02_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#117;&#32;&#61;&#32;&#104;&#40;&#120;&#32;&#45;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#41;&#32;&#61;&#32;&#104;&#40;&#120;&#32;&#45;&#32;&#110;&#112;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="198" style="vertical-align: -4px;" />. With this transformation of variables, the chain rule gives</p> <p><a id="id993200935"></a></p> <p class="ql-center-displayed-equation" style="line-height: 37px;"><span class="ql-right-eqno">(5.9) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-69caea17bba205550cca2be0d9042ceb_l3.svg" height="37" width="321" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#102;&#114;&#97;&#99;&#123;&#100;&#125;&#123;&#100;&#120;&#125;&#32;&#92;&#108;&#110;&#32;&#119;&#40;&#120;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#117;&#125;&#123;&#100;&#120;&#125;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#125;&#123;&#100;&#117;&#125;&#32;&#92;&#108;&#110;&#32;&#119;&#40;&#117;&#41;&#32;&#61;&#32;&#104;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#125;&#123;&#100;&#117;&#125;&#32;&#92;&#108;&#110;&#32;&#119;&#40;&#117;&#41;&#32; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>and the RHS of Equation (5.8) becomes, using <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-10e04920be5be202b00899c416ed1642_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#104;&#125;&#32;&#43;&#32;&#110;&#112;" title="Rendered by QuickLaTeX.com" height="19" width="87" style="vertical-align: -6px;" /></p> <p><a id="id1943002573"></a></p> <p class="ql-center-displayed-equation" style="line-height: 320px;"><span class="ql-right-eqno">(..) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-854330d3308fc569751ab833aafce37c_l3.svg" height="320" width="408" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#92;&#102;&#114;&#97;&#99;&#123;&#110;&#45;&#120;&#125;&#123;&#120;&#43;&#49;&#125;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#112;&#125;&#123;&#113;&#125;&#32;&#45;&#49;&#32;&#38;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#110;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#104;&#125;&#32;&#45;&#32;&#110;&#112;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#112;&#125;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#104;&#125;&#32;&#43;&#32;&#110;&#112;&#32;&#43;&#32;&#49;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#113;&#125;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#49;&#48;&#125;&#92;&#92; &#38;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#110;&#40;&#49;&#45;&#112;&#41;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#104;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#125;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#104;&#125;&#32;&#43;&#32;&#110;&#112;&#32;&#43;&#32;&#49;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#113;&#125;&#123;&#112;&#125;&#125;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#49;&#49;&#125;&#92;&#92; &#38;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#110;&#113;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#104;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#125;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#113;&#125;&#123;&#104;&#112;&#125;&#32;&#43;&#32;&#110;&#113;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#113;&#125;&#123;&#112;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#125;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#49;&#50;&#125;&#92;&#92; &#38;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#49;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#110;&#104;&#113;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#125;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#110;&#104;&#112;&#125;&#32;&#43;&#32;&#49;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#112;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#125;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#49;&#51;&#125;&#92;&#92; &#38;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#49;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#110;&#104;&#113;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#125;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#49;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#32;&#43;&#32;&#104;&#125;&#123;&#110;&#104;&#112;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#125;&#32;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#49;&#52;&#125; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>Using Equation (5.9), for the LHS, and Equation (5.14), for the RHS, Equation (5.8) becomes</p> <p class="ql-center-displayed-equation" style="line-height: 251px;"><span class="ql-right-eqno">(..) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0056aac20f31dea63edcb862b16cfd36_l3.svg" height="251" width="573" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;&#32; &#104;&#32;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#125;&#123;&#100;&#117;&#125;&#32;&#92;&#108;&#110;&#32;&#119;&#40;&#117;&#41;&#32;&#38;&#32;&#61;&#32;&#92;&#108;&#105;&#109;&#95;&#123;&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#110;&#104;&#113;&#125;&#125;&#123;&#49;&#43;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#43;&#104;&#125;&#123;&#110;&#104;&#112;&#125;&#125;&#32;&#45;&#32;&#49;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#49;&#53;&#125;&#92;&#92; &#38;&#32;&#61;&#32;&#92;&#108;&#105;&#109;&#95;&#123;&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#49;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#110;&#104;&#113;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#92;&#108;&#101;&#102;&#116;&#91;&#32;&#49;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#43;&#104;&#125;&#123;&#110;&#104;&#112;&#125;&#32;&#43;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#43;&#104;&#125;&#123;&#110;&#104;&#112;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#123;&#50;&#125;&#32;&#45;&#32;&#92;&#108;&#100;&#111;&#116;&#115;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#93;&#32;&#45;&#32;&#49;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#49;&#54;&#125;&#92;&#92; &#38;&#32;&#61;&#32;&#92;&#108;&#105;&#109;&#95;&#123;&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#32;&#32;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#112;&#125;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#110;&#104;&#113;&#125;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#110;&#104;&#112;&#125;&#32;&#43;&#32;&#79;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#49;&#55;&#125;&#92;&#92; &#38;&#32;&#61;&#32;&#32;&#92;&#108;&#105;&#109;&#95;&#123;&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#32;&#32;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#112;&#125;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#110;&#104;&#112;&#113;&#125;&#32;&#32;&#43;&#32;&#79;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#49;&#56;&#125;&#92;&#92; &#38;&#61;&#32;&#92;&#108;&#105;&#109;&#95;&#123;&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#32;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#110;&#104;&#112;&#113;&#125;&#46;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#49;&#57;&#125; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ff4f942bfc7edbe63095ebcf12520547_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#79;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="43" style="vertical-align: -7px;" /> means terms that will go to zero as <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f779f634df7735ddc73bedd032ccb239_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;" title="Rendered by QuickLaTeX.com" height="11" width="55" style="vertical-align: -1px;" />, and we have used the relation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-23ca74ee6403f5631f537ddcae162377_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#49;&#43;&#120;&#125;&#32;&#61;&#32;&#49;&#32;&#45;&#32;&#120;&#32;&#43;&#32;&#120;&#94;&#123;&#50;&#125;&#32;&#45;&#32;&#120;&#94;&#123;&#51;&#125;&#32;&#43;&#32;&#92;&#108;&#100;&#111;&#116;&#115;" title="Rendered by QuickLaTeX.com" height="24" width="212" style="vertical-align: -8px;" /> to get Equation (5.16}) and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f70ddb856da0ca79c1517a5b6b9fa3da_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;&#43;&#113;&#61;&#49;" title="Rendered by QuickLaTeX.com" height="16" width="72" style="vertical-align: -4px;" /> to go from Equation (5.17) to Equation (5.18). Dividing both sides of Equation (5.19) by <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-14b463d0ecd5b350ced6cf1d6a12eef3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#104;" title="Rendered by QuickLaTeX.com" height="13" width="10" style="vertical-align: 0px;" /> leaves</p> <p><a id="id1408163030"></a></p> <p class="ql-center-displayed-equation" style="line-height: 41px;"><span class="ql-right-eqno">(5.20) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d7d713c740f1b81931cb54daeac15223_l3.svg" height="41" width="254" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#102;&#114;&#97;&#99;&#123;&#100;&#125;&#123;&#100;&#117;&#125;&#32;&#92;&#108;&#110;&#32;&#119;&#40;&#117;&#41;&#32;&#61;&#32;&#92;&#108;&#105;&#109;&#95;&#123;&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#110;&#104;&#94;&#123;&#50;&#125;&#112;&#113;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#125;&#123;&#112;&#113;&#125;&#46;&#32; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>Our transformation, with its <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7195eb4914a5720a92f0a9174906eda8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;" title="Rendered by QuickLaTeX.com" height="18" width="25" style="vertical-align: -4px;" />, has given us the exact control we need to keep the limit from disappearing or blowing up. Integrating Equation (5.20) gives</p> <p class="ql-center-displayed-equation" style="line-height: 28px;"><span class="ql-right-eqno">(5.21) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-710977fe018d796870835bf19d0a9d27_l3.svg" height="28" width="114" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#119;&#40;&#117;&#41;&#32;&#61;&#32;&#67;&#32;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#117;&#94;&#123;&#50;&#125;&#125;&#123;&#50;&#112;&#113;&#125;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f34f74d98915e33f37a086f8cbfb996a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#67;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> is the a constant of integration. Switching back to the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> variable</p> <p class="ql-center-displayed-equation" style="line-height: 107px;"><span class="ql-right-eqno">(..) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0c490bb9606f6fd7404e10d22f1b69b2_l3.svg" height="107" width="367" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#119;&#40;&#120;&#41;&#32;&#38;&#32;&#61;&#32;&#67;&#32;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#104;&#91;&#120;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#93;&#41;&#94;&#123;&#50;&#125;&#125;&#123;&#50;&#112;&#113;&#125;&#125;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#50;&#50;&#125;&#92;&#92; &#38;&#32;&#61;&#32;&#67;&#32;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#120;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#41;&#94;&#123;&#50;&#125;&#125;&#123;&#50;&#110;&#112;&#113;&#125;&#125;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#50;&#51;&#125;&#92;&#92; &#38;&#32;&#61;&#32;&#67;&#32;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#120;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#41;&#94;&#123;&#50;&#125;&#125;&#123;&#50;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#125;&#125;&#46;&#32;&#92;&#116;&#97;&#103;&#123;&#53;&#46;&#50;&#52;&#125; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>To evaluate the constant of integration, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f34f74d98915e33f37a086f8cbfb996a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#67;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" />, we impose <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7b8c9a9737d8d8d62f53cd382eea71ca_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#105;&#110;&#116;&#95;&#123;&#45;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#94;&#123;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#32;&#119;&#40;&#120;&#41;&#32;&#92;&#58;&#32;&#100;&#120;&#32;&#61;&#32;&#49;" title="Rendered by QuickLaTeX.com" height="21" width="129" style="vertical-align: -6px;" /> because we want <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1865e783a3bb6175f82eb4c13d72e1f7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" /> to be a probability distribution. So</p> <p class="ql-center-displayed-equation" style="line-height: 41px;"><span class="ql-right-eqno">(5.25) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-68af6540773a0bc064f9dcfdcd345c8e_l3.svg" height="41" width="263" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#67;&#32;&#92;&#105;&#110;&#116;&#95;&#123;&#45;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#94;&#123;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#32;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#120;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#41;&#94;&#123;&#50;&#125;&#125;&#123;&#50;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#125;&#125;&#32;&#92;&#58;&#32;&#100;&#120;&#32;&#61;&#32;&#67;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#50;&#32;&#92;&#112;&#105;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#125;&#32;&#61;&#32;&#49; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>so</p> <p class="ql-center-displayed-equation" style="line-height: 40px;"><span class="ql-right-eqno">(5.26) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f633ed87d05bf713a35e8978e6767cf3_l3.svg" height="40" width="93" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#67;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#50;&#32;&#92;&#112;&#105;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#125;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>and</p> <p class="ql-center-displayed-equation" style="line-height: 41px;"><span class="ql-right-eqno">(5.27) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-54c732df90a28c95a6ace12e348b5b42_l3.svg" height="41" width="182" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#119;&#40;&#120;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#50;&#32;&#92;&#112;&#105;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#125;&#125;&#32;&#92;&#58;&#32;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#120;&#45;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#41;&#94;&#123;&#50;&#125;&#125;&#123;&#50;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#125;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>which is the Normal Distribution that approximates Binomial Distributions with the same mean and variance as <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> gets large.</p> <div class="wp-caption aligncenter" id="attachment_1497" aria-describedby="caption-attachment-1497" style="width: 771px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/NormalBinomialFigpng-e1588650192160.jpg"><img class="wp-image-1497" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/NormalBinomialFigpng-e1588650192160-300x99.jpg" alt="" width="771" height="254" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/NormalBinomialFigpng-e1588650192160-300x99.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/NormalBinomialFigpng-e1588650192160-1024x336.jpg 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/NormalBinomialFigpng-e1588650192160-768x252.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/NormalBinomialFigpng-e1588650192160-1536x505.jpg 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/NormalBinomialFigpng-e1588650192160-65x21.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/NormalBinomialFigpng-e1588650192160-225x74.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/NormalBinomialFigpng-e1588650192160-350x115.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/NormalBinomialFigpng-e1588650192160.jpg 1671w" /></a><div class="wp-caption-text" id="caption-attachment-1497">Figure 5.1 : The transformation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5495d45d1f96bf4da8c3f11141690dfb_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#117;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#120;&#32;&#45;&#32;&#110;&#112;&#41;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="31" width="81" style="vertical-align: -11px;" /> effectively shrinks the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b7398eb19d4a7b42e0948c84ca560c29_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#120;" title="Rendered by QuickLaTeX.com" height="12" width="25" style="vertical-align: 0px;" /> of the Binomial Distribution with mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-98bed034a53916bfff2fd5d4e615d003_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#32;&#61;&#32;&#110;&#32;&#112;" title="Rendered by QuickLaTeX.com" height="15" width="54" style="vertical-align: -4px;" /> and variance <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4d9ee19168626c4d1e23e0f187eb66b4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#110;&#112;&#113;" title="Rendered by QuickLaTeX.com" height="19" width="70" style="vertical-align: -4px;" /> by pulling a continuous version <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cdaab81dee75b30672f303b5919d2fa6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="45" style="vertical-align: -4px;" /> back to the constant Normal Distribution <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-88142412a11ebaf7329405ecfb188d9c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#40;&#117;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" />. Another way of thinking about it is that the transformation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f406f82b99782016f8fc3ea861bc7403_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#32;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;&#32;&#117;&#32;&#43;&#32;&#110;&#112;" title="Rendered by QuickLaTeX.com" height="18" width="111" style="vertical-align: -4px;" /> takes the fixed Normal Distribution <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-88142412a11ebaf7329405ecfb188d9c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#40;&#117;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" /> to the Normal Distribution <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1865e783a3bb6175f82eb4c13d72e1f7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" /> that provides a better and better approximation of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cdaab81dee75b30672f303b5919d2fa6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="45" style="vertical-align: -4px;" /> as <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f779f634df7735ddc73bedd032ccb239_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;" title="Rendered by QuickLaTeX.com" height="11" width="55" style="vertical-align: -1px;" />.</div></div> <p>You may be wondering why that transformation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0cc28399f8f9cb3422c96c9cdcece202_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#117;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;&#125;&#32;&#40;&#120;&#32;&#45;&#32;&#110;&#112;&#41;" title="Rendered by QuickLaTeX.com" height="27" width="122" style="vertical-align: -11px;" /> worked because it seems to have been pulled from the air. According to Lindsay &amp; Margenau, it was Laplace who first used this transformation and derivation in 1812. What this transformation does is pull the Binomial Distribution <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cdaab81dee75b30672f303b5919d2fa6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="45" style="vertical-align: -4px;" /> back to have a mean of zero (by subtracting <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-933906eec46e63238508af3e2021785e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#32;&#61;&#32;&#110;&#112;" title="Rendered by QuickLaTeX.com" height="15" width="54" style="vertical-align: -4px;" />) which keeps <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> from running off to infinity and, more importantly, allows us to define a function <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-88142412a11ebaf7329405ecfb188d9c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#40;&#117;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" /> with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5ddefce35716f5a6507450358e7229ab_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#117;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="45" style="vertical-align: -1px;" /> that has a constant variance of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f226120d35126916a86681ddeb03d3f9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;&#113;" title="Rendered by QuickLaTeX.com" height="12" width="18" style="vertical-align: -4px;" /> that we can match to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fa11e1a95c11d9a80847ab27c56efcaa_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#112;&#113;" title="Rendered by QuickLaTeX.com" height="12" width="28" style="vertical-align: -4px;" /> when we transform back to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> at each <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />, see Figure 5.1. Looking at it the other way around, the Normal Distribution<span class="footnote">Our symbols here are not mathematically clean; we should write something like <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8d284a74d7385d661eaad93390692ebc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#40;&#117;&#40;&#120;&#41;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="60" style="vertical-align: -4px;" /> instead of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1865e783a3bb6175f82eb4c13d72e1f7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" /> or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-dfee5c980777976ae8cf6541893fb572_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;" title="Rendered by QuickLaTeX.com" height="8" width="13" style="vertical-align: 0px;" /> composed with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-43fe27dc3e528266a619764d90fce60b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#117;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8cccf27184a5616c27d62203e5e53203_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#32;&#92;&#99;&#105;&#114;&#99;&#32;&#117;&#95;&#123;&#110;&#125;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="72" style="vertical-align: -4px;" />, instead of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1865e783a3bb6175f82eb4c13d72e1f7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" />. But to emphasize the intuition we use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1865e783a3bb6175f82eb4c13d72e1f7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" />. In clean symbols, the function <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8cccf27184a5616c27d62203e5e53203_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#32;&#92;&#99;&#105;&#114;&#99;&#32;&#117;&#95;&#123;&#110;&#125;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="72" style="vertical-align: -4px;" /> asymptotically approaches <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cdaab81dee75b30672f303b5919d2fa6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="45" style="vertical-align: -4px;" /> where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-59248cdf78bdc20d4e3bf036ecce9f49_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#117;&#95;&#123;&#110;&#125;&#40;&#120;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#120;&#32;&#45;&#32;&#110;&#112;&#41;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="31" width="114" style="vertical-align: -11px;" />.</span> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1865e783a3bb6175f82eb4c13d72e1f7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" /> with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f406f82b99782016f8fc3ea861bc7403_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#32;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;&#32;&#117;&#32;&#43;&#32;&#110;&#112;" title="Rendered by QuickLaTeX.com" height="18" width="111" style="vertical-align: -4px;" /> is an approximation for Binomial Distribution <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cdaab81dee75b30672f303b5919d2fa6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="45" style="vertical-align: -4px;" /> that &#8220;asymptotically&#8221; approaches <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cdaab81dee75b30672f303b5919d2fa6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#119;&#95;&#123;&#110;&#125;&#40;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="45" style="vertical-align: -4px;" /> as <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f779f634df7735ddc73bedd032ccb239_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;" title="Rendered by QuickLaTeX.com" height="11" width="55" style="vertical-align: -1px;" />.</p> <p>This is not the only way to form a probability density limit from a sequence of Binomial distributions. It is one that gives a good approximation of the Binomial Distribution when <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is fairly small if the term <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e742876c1913d5d8b893178c7024906e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#112;&#125;" title="Rendered by QuickLaTeX.com" height="25" width="16" style="vertical-align: -9px;" /> in Equation (5.18) becomes small quickly. If <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> is very small, this does not happen and another limit of Binomial Distributions that leads to the Poisson Distribution is more appropriate. When <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ac7da57d7f507262338bb5168feb3e06_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#113;" title="Rendered by QuickLaTeX.com" height="12" width="8" style="vertical-align: -4px;" /> are close to 0.5 or more generally when <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5b10d0f49f083903e183e801e6bb92d7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#112;&#32;&#92;&#103;&#101;&#113;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="51" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c74f36200f06a8623fbb848b97e7f4cc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#113;&#32;&#92;&#103;&#101;&#113;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="51" style="vertical-align: -4px;" /> then the Normal approximation is a good one. Either way, the density limit is a mathematical idealization, a convenience really, that is based on a discrete probability distribution that just summarizes the result of counting outcomes. Counting gives the foundation for probability theory.</p> </div></div>
<div class="chapter standard" id="chapter-slug-5-3-normal-distribution" title="5.3 Normal Distribution"><div class="chapter-title-wrap"><h3 class="chapter-number">19</h3><h2 class="chapter-title">5.3 Normal Distribution</h2></div><div class="ugc chapter-ugc">
 <p>Let us now take a detailed look at the normal distribution and learn how to apply it to probability problems (in sampling theory) and statistical problems. Its formula (which you will never have to use because we have tables and SPSS) is again:</p> <p><a id="id3929873788"></a></p> <p class="ql-center-displayed-equation" style="line-height: 46px;"><span class="ql-right-eqno">(5.28) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f3f2c9716030e43a5376f7b06162c10_l3.svg" height="46" width="156" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} P(x) = \frac{e^{-(x-\mu)^2/2\sigma^2}}{\sigma \sqrt{2\pi}} \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>The factor <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8a44b0cee7abc6d8151198eea891f3fb_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma \sqrt{2\pi}" title="Rendered by QuickLaTeX.com" height="18" width="46" style="vertical-align: -2px;" /> is a normalization factor that ensures that the area under the whole curve is one:</p> <p class="ql-center-displayed-equation" style="line-height: 40px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-94c9d2229930ead164c01425fc35c821_l3.svg" height="40" width="119" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\int P(x) \: dx = 1.\]" title="Rendered by QuickLaTeX.com" /></p> <p>Without that factor we just have a bell-shaped curve <span class="footnote">**Whose shape is determined essentially by the shape of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b83c7ae19ffc539968121c293eba016c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="y = e^{-{x}^{2}}" title="Rendered by QuickLaTeX.com" height="21" width="66" style="vertical-align: -4px;" />. Plot <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-642a639446b9bfc61192284c42882ea1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="y = e^{-x}" title="Rendered by QuickLaTeX.com" height="16" width="60" style="vertical-align: -4px;" /> and think about the square preventing any negative values for the argument.</span> with the area under the curve equal to one we have a probability function since the total probability is one. For those with a bad math background, the letters in Equation (5.28) are: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0026e5e6812228bdab8f263e5907a2d3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="e = 2.718 \ldots" title="Rendered by QuickLaTeX.com" height="14" width="95" style="vertical-align: -1px;" /> <span class="footnote">** The number <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3fc193f43cc29c1eef788f64ba43c1bd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="e" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> is the natural base implied by functions whose values match how fast it changes, i.e. the derivative of the function is the same as the function.</span>, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-86ec18bba5f240211a8bc0c9cc825436_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\pi = 3.1415 \ldots" title="Rendered by QuickLaTeX.com" height="14" width="106" style="vertical-align: -1px;" /> <span class="footnote">** Of course, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-26d6788550ffd50fe94542bb3e8ee615_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\pi" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> comes from circles: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-26d6788550ffd50fe94542bb3e8ee615_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\pi" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />= circumference/diameter.</span>, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> = mean and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> = standard deviation of the normal distribution. The normal distribution’s shape is as shown in Figure 5.2.</p> <p style="text-align: center;"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig19png.jpg"><img class="aligncenter wp-image-611 size-medium" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig19png-300x126.jpg" alt="" width="300" height="126" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig19png-300x126.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig19png-768x324.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig19png-65x27.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig19png-225x95.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig19png-350x147.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig19png.jpg 897w" /></a><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig20png.jpg"><img class="aligncenter wp-image-612 size-medium" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig20png-300x125.jpg" alt="" width="300" height="125" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig20png-300x125.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig20png-768x320.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig20png-65x27.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig20png-225x94.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig20png-350x146.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig20png.jpg 900w" /></a><em><br /> Figure 5.2: The normal distribution. It is a bell-shaped curve with its mode (= mean and median because it’s symmetric, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-eb543485feb7069aaaf98bae2129eea5_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu_{3} = 0" title="Rendered by QuickLaTeX.com" height="16" width="51" style="vertical-align: -4px;" />) centred on its mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" />. On the left is a distribution with a large <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cc9e02a7ee97ee0f78742edeb5b38bdc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma^{2}" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" /> and on the right one with a smaller <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cc9e02a7ee97ee0f78742edeb5b38bdc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma^{2}" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" />.</em></p> <p>To work with normal distribution, in particular so we can use the <strong>Standard Normal Distribution Table</strong> and the <strong><em>t</em> Distribution Table</strong> in the <a href="#back-matter-appendix-tables" target="_blank" rel="noopener noreferrer">Appendix</a>, we need to transform it to the <em>standard normal distribution</em> using the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform. We need to transform <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a80be6e42ac3b3c6528958bbfa21f92c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x)" title="Rendered by QuickLaTeX.com" height="18" width="37" style="vertical-align: -4px;" />, which has a mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> and standard deviation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3281388049a0f7e2f19025438b5c3d75_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(z)" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" /> which has a mean of 0 and a standard deviation of 1. Recall the definition of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform:</p> <p class="ql-center-displayed-equation" style="line-height: 32px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1a86d5455fd07d5411f49f87601bf573_l3.svg" height="32" width="78" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[z = \frac{x - \mu}{\sigma}\]" title="Rendered by QuickLaTeX.com" /></p> <p>applying this to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a80be6e42ac3b3c6528958bbfa21f92c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x)" title="Rendered by QuickLaTeX.com" height="18" width="37" style="vertical-align: -4px;" /> gives</p> <p class="ql-center-displayed-equation" style="line-height: 38px;"><span class="ql-right-eqno">(5.29) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b3f07c4f64bc7738ffc318c421ce8b2d_l3.svg" height="38" width="139" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} P(z) = \frac{P(x) - \mu}{\sigma}. \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>If we substitute Equation (5.28) into Equation (5.29) and do the algebra we get :</p> <p class="ql-center-displayed-equation" style="line-height: 46px;"><span class="ql-right-eqno">(5.30) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-49d3cb5a48daab68af1f0ea0f96b708f_l3.svg" height="46" width="115" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} P(z) = \frac{e^{-z^{2}/2}}{\sqrt{2 \pi}}. \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>Equation (5.30) defines the standard normal distribution, or as we’ll call it, the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distribution.<br /> Areas under <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3281388049a0f7e2f19025438b5c3d75_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(z)" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" /> are given in the <strong>Standard Normal Distribution Table</strong> in the <a href="#back-matter-appendix-tables" target="_blank" rel="noopener noreferrer">Appendix</a>.</p> <h1 id="chapter-73-section-1" class="section-header"><strong>5.3.1 Computing Areas (Probabilities) under the standard normal curve</strong></h1> <p>Here we learn how to use the <strong>Standard Normal Distribution Table</strong> to get probabilities associated with any old area under the normal curve that we can dream up. The general layout of areas under the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distribution is shown in Figures 5.3 and 5.4.</p> <div class="wp-caption aligncenter" id="attachment_1505" aria-describedby="caption-attachment-1505" style="width: 695px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig22png.jpg"><img class="wp-image-1505" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig22png-300x57.jpg" alt="" width="695" height="132" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig22png-300x57.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig22png-768x145.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig22png-65x12.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig22png-225x43.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig22png-350x66.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig22png.jpg 836w" /></a><div class="wp-caption-text" id="caption-attachment-1505">Figure 5.3 : The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distribution is a probability distribution (total area = 1) and symmetric, so the area on either side of the mean (which is 0) is a half. You will need to remember this information as you calculate areas using the Standard Normal Distribution Table.</div></div> <div class="wp-caption aligncenter" id="attachment_1507" aria-describedby="caption-attachment-1507" style="width: 514px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig23png.jpg"><img class="wp-image-1507" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig23png-300x206.jpg" alt="" width="514" height="353" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig23png-300x206.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig23png-65x45.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig23png-225x154.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig23png-350x240.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig23png.jpg 708w" /></a><div class="wp-caption-text" id="caption-attachment-1507">Figure 5.4 : The units of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> in <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3281388049a0f7e2f19025438b5c3d75_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(z)" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" /> are standard deviations. No matter what the measurement units of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> were before the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation, the units of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> are “standardized” to be standard deviation units. With SPSS you will learn how to standardize (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform) variables so that you can sensibly combine multiple dependent variables into one dependent variable for univariate statistical analysis. The areas, probabilities, associated with each increment in <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> are shown here.</div></div> <p>Let’s divide the types of areas we want to compute into cases, following Bluman<span class="footnote">Bluman AG, <em>Elementary Statistics: A Step-by-Step Approach</em>, numerous editions, McGraw-Hill Ryerson, circa 2005.</span>. For all these cases we’ll use the notation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-882ef368960a71bffce9af3695e2ed54_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="A(z)" title="Rendered by QuickLaTeX.com" height="18" width="35" style="vertical-align: -4px;" /> to represent the area we look up in the <strong>Standard Normal Distribution Table</strong> associated with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />.</p> <p><em><strong>Case 1 : Areas on one side of the mean.</strong> </em>This is the case of finding an area between 0 (which corresponds to the mean before any <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformations) and a given <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />. For this case we simply use the tabulated values, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-95ec5d180abecf7f9d1a0b5f3e0b594c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(0 \leq x \leq z)=A(z)" title="Rendered by QuickLaTeX.com" height="18" width="162" style="vertical-align: -4px;" />, see Figure 5.5. This case also covers when <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> is a negative number: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-177ffbc83d2651c7142e48eac44e4600_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(-z \leq x \leq 0)=A(z)" title="Rendered by QuickLaTeX.com" height="18" width="176" style="vertical-align: -4px;" />.</p> <div class="wp-caption aligncenter" id="attachment_1509" aria-describedby="caption-attachment-1509" style="width: 681px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig24png.jpg"><img class="wp-image-1509" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig24png-300x93.jpg" alt="" width="681" height="211" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig24png-300x93.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig24png-1024x316.jpg 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig24png-768x237.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig24png-65x20.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig24png-225x70.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig24png-350x108.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig24png.jpg 1078w" /></a><div class="wp-caption-text" id="caption-attachment-1509">Figure 5.5 : Case 1: Areas on one side of the mean.</div></div> <p><strong>Example 5.1</strong> : Find the probability that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> is between 0 and 2.34.</p> <p><em>Solution</em> : Look up <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-014b1610dd635450416ec2728f4ba11f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="A(2.34)" title="Rendered by QuickLaTeX.com" height="18" width="58" style="vertical-align: -4px;" /> in the <strong>Standard Normal Distribution Table</strong>, see Figure 5.6. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-924c5514f2615a8a6514e8a51f4ca24d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P = P(0 &lt; z &lt; 2.34) = A(2.34) = 0.4904" title="Rendered by QuickLaTeX.com" height="18" width="318" style="vertical-align: -4px;" />. (Note that it makes no difference whether we use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d5fae947beab7b30f45d5b6603772f41_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&lt;" title="Rendered by QuickLaTeX.com" height="11" width="12" style="vertical-align: 0px;" /> or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f3a9d6292d83e8712327344adf95f519_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\leq" title="Rendered by QuickLaTeX.com" height="15" width="12" style="vertical-align: -3px;" /> because the probability of a single value is 0. That’s why we need to use areas.)</p> <div class="wp-caption aligncenter" id="attachment_1511" aria-describedby="caption-attachment-1511" style="width: 441px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig30png.jpg"><img class="wp-image-1511" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig30png-300x192.jpg" alt="" width="441" height="282" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig30png-300x192.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig30png-65x42.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig30png-225x144.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig30png-350x224.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig30png.jpg 508w" /></a><div class="wp-caption-text" id="caption-attachment-1511">Figure 5.6 : The situation for Example 5.1.</div></div> <p style="text-align: right;">▢</p> <p><strong>Example 5.2</strong> : Find the probability that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> is between -1.75 and 0.</p> <p><em>Solution </em>: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f7a8f81c652982b6d434204a3684e57a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(-1.75 &lt; z &lt; 0) = A(1.75) = 0.4599" title="Rendered by QuickLaTeX.com" height="18" width="294" style="vertical-align: -4px;" />, see Figure 5.7.</p> <div class="wp-caption aligncenter" id="attachment_1512" aria-describedby="caption-attachment-1512" style="width: 503px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig31png.jpg"><img class="wp-image-1512" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig31png-300x192.jpg" alt="" width="503" height="322" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig31png-300x192.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig31png-65x42.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig31png-225x144.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig31png-350x224.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig31png.jpg 508w" /></a><div class="wp-caption-text" id="caption-attachment-1512">Figure 5.7 : The situation for Example 5.2.</div></div> <p style="text-align: right;">▢</p> <p><em><strong>Case 2 : Tail areas.</strong> </em>A tail area is the opposite of the area given in the <strong>Standard Normal Distribution Table</strong> on one half of the normal distribution, see Figure 5.8. The tail area after a given positive <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7839fc37ffea207bdee8dc968cf7a471_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> z) = 0.5 - A(z)" title="Rendered by QuickLaTeX.com" height="18" width="211" style="vertical-align: -4px;"&gt; or before a given negative value <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-96a5976f6bb7c0137cd12c6fb2fc2759_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="-z" title="Rendered by QuickLaTeX.com" height="8" width="22" style="vertical-align: 0px;" /> is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-518dee31b52ea3b4013e189d07a6dfc2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P = P(x &lt; -z) = 0.5 - A(z)" title="Rendered by QuickLaTeX.com" height="18" width="225" style="vertical-align: -4px;" />.</p> <div class="wp-caption aligncenter" id="attachment_1514" aria-describedby="caption-attachment-1514" style="width: 760px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig25png.jpg"><img class="wp-image-1514" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig25png-300x92.jpg" alt="" width="760" height="233" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig25png-300x92.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig25png-1024x314.jpg 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig25png-768x236.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig25png-65x20.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig25png-225x69.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig25png-350x107.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig25png.jpg 1078w" /></a><div class="wp-caption-text" id="caption-attachment-1514">Figure 5.8 : Case 2 : Tail areas.</div></div> <p><strong>Example 5.3</strong>&nbsp;: What is the probability that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-227596f0d39a8a7e49cdb625e8655a98_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> 1.11" title="Rendered by QuickLaTeX.com" height="13" width="64" style="vertical-align: -1px;"&gt;?</p> <p><em>Solution</em> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1e06d27880845cb54933b5eb318169ba_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> 1.11) = 0.5 - A(1.11) = 0.5 - 0.3665 = 0.1335" title="Rendered by QuickLaTeX.com" height="18" width="408" style="vertical-align: -4px;"&gt;, see Figure 5.9.</p> <div class="wp-caption aligncenter" id="attachment_1515" aria-describedby="caption-attachment-1515" style="width: 422px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig32png.jpg"><img class="wp-image-1515" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig32png-300x187.jpg" alt="" width="422" height="263" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig32png-300x187.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig32png-65x41.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig32png-225x140.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig32png-350x218.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig32png.jpg 508w" /></a><div class="wp-caption-text" id="caption-attachment-1515">Figure 5.9 : The situation for Example 5.3.</div></div> <p style="text-align: right;">▢</p> <p><strong>Example 5.4</strong> : What is the probability that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-449579d437a16eb0c0aedf7f56dcbf4f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z &lt; -1.93" title="Rendered by QuickLaTeX.com" height="13" width="79" style="vertical-align: -1px;" />?</p> <p><em>Solution</em> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f643ec0ce35186015d597199830010d8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P = P(z &lt; -1.93) = 0.5 - A(1.93) = 0.5 - 0.4732 = 0.0268" title="Rendered by QuickLaTeX.com" height="18" width="460" style="vertical-align: -4px;" />, see Figure 5.10.</p> <div class="wp-caption aligncenter" id="attachment_1629" aria-describedby="caption-attachment-1629" style="width: 300px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig33png.jpg"><img class="wp-image-1629 size-medium" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig33png-300x188.jpg" alt="" width="300" height="188" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig33png-300x188.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig33png-65x41.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig33png-225x141.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig33png-350x220.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig33png.jpg 508w" /></a><div class="wp-caption-text" id="caption-attachment-1629">Figure 5.10 : The situation for Example 5.2.</div></div> <p style="text-align: right;">▢</p> <p><em><strong>Case 3 : An interval on one side of the mean.</strong></em> Recall that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1e807da9d5a71714232bfb2407e9c58a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu=0" title="Rendered by QuickLaTeX.com" height="16" width="43" style="vertical-align: -4px;" /> for the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distribution. So we are looking for the probabilities <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-10ecd80657d54508782539ac7079f622_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P = P(z_{1} &lt; x &lt; z_{2})" title="Rendered by QuickLaTeX.com" height="18" width="153" style="vertical-align: -4px;" /> for an interval to the right of the mean or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-76dc85ee661574f2de9e63937b837d0c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P = P(-z_{2} &lt; x &lt;- z_{1})" title="Rendered by QuickLaTeX.com" height="18" width="181" style="vertical-align: -4px;" /> for an interval to the left of the mean. In either case <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-85f02050058f95a4a4b4f1fc88584bb4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P = A(z_{2}) - A(z_{1})" title="Rendered by QuickLaTeX.com" height="18" width="144" style="vertical-align: -4px;" />, see Figure 5.11.</p> <div class="wp-caption aligncenter" id="attachment_1925" aria-describedby="caption-attachment-1925" style="width: 570px"><img class="wp-image-1925" src="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.11-300x93.png" alt="" width="570" height="177" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.11-300x93.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.11-1024x317.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.11-768x238.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.11-65x20.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.11-225x70.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.11-350x108.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.11.png 1402w" /><div class="wp-caption-text" id="caption-attachment-1925">Figure 5.11: Case 3: An interval on one side of the mean.</div></div> <p><strong>Example 5.5</strong> : What is the probability that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> is between 2.00 and 2.97?</p> <p><em>Solution</em> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-813db928b177681e3de9cc6fa6a2a0d8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(2.00 &lt; z &lt; 2.97) = A(2.47) - A(2.00) = 0.4932 - 0.4772 = 0.0160" title="Rendered by QuickLaTeX.com" height="18" width="527" style="vertical-align: -4px;" />, see Figure 5.12.</p> <div class="wp-caption aligncenter" id="attachment_1926" aria-describedby="caption-attachment-1926" style="width: 408px"><img class="wp-image-1926" src="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.12-300x161.png" alt="" width="408" height="219" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.12-300x161.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.12-768x411.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.12-65x35.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.12-225x121.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.12-350x188.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.12.png 978w" /><div class="wp-caption-text" id="caption-attachment-1926">Figure 5.12: The situation for Example 5.5.</div></div> <p style="text-align: right;">▢</p> <p><strong>Example 5.6</strong> : What is the probability that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> is between -2.48 and -0.83?</p> <p><em>Solution</em> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5b073fccfa30e4688485010d1ff1b08e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(-2.48 &lt; z &lt; -0.83) = A(2.48) - A(0.83) = 4.934 - 0.2967 = 0.1967" title="Rendered by QuickLaTeX.com" height="18" width="546" style="vertical-align: -4px;" />, see Figure 5.13.</p> <div class="wp-caption aligncenter" id="attachment_1927" aria-describedby="caption-attachment-1927" style="width: 472px"><img class="wp-image-1927" src="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.13-300x173.png" alt="" width="472" height="272" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.13-300x173.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.13-768x442.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.13-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.13-225x130.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.13-350x201.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.13.png 952w" /><div class="wp-caption-text" id="caption-attachment-1927">Figure 5.13: The situation of Example 5.6.</div></div> <p style="text-align: right;">▢</p> <p><em><strong>Case 4 : An interval containing the mean.</strong></em> The situation is as shown in Figure 5.14 with the interval being between a negative and a positive number. In that case <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-88c03a7528c4e866dca3360bcef0740a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(-z_{1} &lt; x &lt; z_{2}) = A(z_{1}) + A(z_{2})" title="Rendered by QuickLaTeX.com" height="18" width="261" style="vertical-align: -4px;" />.</p> <div class="wp-caption aligncenter" id="attachment_1928" aria-describedby="caption-attachment-1928" style="width: 407px"><img class="wp-image-1928" src="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.14-300x183.png" alt="" width="407" height="248" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.14-300x183.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.14-1024x624.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.14-768x468.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.14-65x40.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.14-225x137.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.14-350x213.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.14.png 1244w" /><div class="wp-caption-text" id="caption-attachment-1928">Figure 5.14: Case 4: An interval containing the mean.</div></div> <p><strong>Example 5.7</strong> : What is the probability that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> is between -1.37 and 1.68?</p> <p><em>Solution</em> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-af2b54b8b66f8214a2c8d109bd1887c1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(-1.37 &lt; z &lt; 1.68) = A(1.37) + A(1.68) = 0.4147 + 0.4535 = 0.8682" title="Rendered by QuickLaTeX.com" height="18" width="540" style="vertical-align: -4px;" />, see Figure 5.15.</p> <div class="wp-caption aligncenter" id="attachment_1929" aria-describedby="caption-attachment-1929" style="width: 391px"><img class="wp-image-1929" src="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.15-300x169.png" alt="" width="391" height="220" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.15-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.15-1024x578.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.15-768x434.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.15-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.15-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.15-350x198.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.15.png 1250w" /><div class="wp-caption-text" id="caption-attachment-1929">Figure 5.15: The situation for Example 5.7.</div></div> <p style="text-align: right;">▢</p> <p><em><strong>Cases 5 &amp; 6 : Excluding tails.</strong> </em>Case 5 is excluding the right tail, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-77261f6a8d9b12caa623277245d20ad3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x &lt; z)" title="Rendered by QuickLaTeX.com" height="18" width="70" style="vertical-align: -4px;" />. Case 6 is excluding the left tail, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9e07c20cb6e56dd9054166e248a89673_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> -z)" title="Rendered by QuickLaTeX.com" height="18" width="83" style="vertical-align: -4px;"&gt;. See Figure 5.16. Case 5 is the situation which gives the percentile position of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> if you multiply the are by 100. More about percentiles in Chapter 6. In either case, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-81c554b053c23c388aa7de75ea9c6fec_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P = 0.5 + A(z)" title="Rendered by QuickLaTeX.com" height="18" width="117" style="vertical-align: -4px;" />.</p> <div class="wp-caption aligncenter" id="attachment_1930" aria-describedby="caption-attachment-1930" style="width: 584px"><img class="wp-image-1930" src="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.16-300x96.png" alt="" width="584" height="187" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.16-300x96.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.16-1024x327.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.16-768x245.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.16-1536x491.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.16-65x21.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.16-225x72.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.16-350x112.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.16.png 1934w" /><div class="wp-caption-text" id="caption-attachment-1930">Figure 5.16: Left: Case 5. Right: Case 6.</div></div> <p><em><strong>Case 7 : Two unequal tails.</strong></em> In this case we add the areas of the left and right tails, see FIgure 5.17. The special case where the tails have equal areas (i.e. when <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7808a3a2502fd928d8ad28b1c062337c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{1} = z_{2}" title="Rendered by QuickLaTeX.com" height="12" width="55" style="vertical-align: -4px;" /> in the notation we have been using) is the case we will encounter for two-tail hypothesis testing. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b03094d134e94e38a933c529cf41ac84_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P = P(x&lt; -z_{1}) + P(x &lt; z_{2}) = (0.5 - A(z_{1})) + (0.5 - A(z_{2}))" title="Rendered by QuickLaTeX.com" height="18" width="474" style="vertical-align: -4px;" />.</p> <div class="wp-caption aligncenter" id="attachment_1931" aria-describedby="caption-attachment-1931" style="width: 432px"><img class="wp-image-1931" src="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.17-300x201.png" alt="" width="432" height="289" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.17-300x201.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.17-1024x687.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.17-768x515.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.17-65x44.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.17-225x151.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.17-350x235.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.17.png 1044w" /><div class="wp-caption-text" id="caption-attachment-1931">Figure 5.17: Case 7: Two unequal tails.</div></div> <p><strong>Example 5.8</strong> : Find the areas of the tails shown in Figure 5.18.</p> <p><em>Solution</em> :</p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-422639586c3cf20a582a30989b5302f1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> 2.43)" title="Rendered by QuickLaTeX.com" height="18" width="197" style="vertical-align: -4px;"&gt;<br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b6892ddd55dc110c6d319d84818c07ca_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="= (0.5 - A(3.01)) + (0.5 - A(2.43))" title="Rendered by QuickLaTeX.com" height="18" width="273" style="vertical-align: -4px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea3f0c8068303ab54bdbdadfd06015a4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="= (0.5 - 0.4987) + (0.5 - 0.4925)" title="Rendered by QuickLaTeX.com" height="18" width="255" style="vertical-align: -4px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-405206f471f87eb9b61c7e214be7a6b1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="= 0.0013 + 0.0075" title="Rendered by QuickLaTeX.com" height="15" width="139" style="vertical-align: -2px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf4098f768de834aa2413c4e7e156d35_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="= 0.0088" title="Rendered by QuickLaTeX.com" height="12" width="69" style="vertical-align: 0px;" />.</p> <div class="wp-caption aligncenter" id="attachment_1932" aria-describedby="caption-attachment-1932" style="width: 408px"><img class="wp-image-1932" src="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.18-300x177.png" alt="" width="408" height="241" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.18-300x177.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.18-768x452.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.18-65x38.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.18-225x133.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.18-350x206.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.18.png 978w" /><div class="wp-caption-text" id="caption-attachment-1932">Figure 5.18: The situation for Example 5.8.</div></div> <p style="text-align: right;">▢</p> <p><span style="text-decoration: underline;"><strong>Using the Standard Normal Distribution Table backwards</strong></span></p> <p>Up until now we’ve used the <strong>Standard Normal Distribution Table</strong> directly. For a given <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />, we look up the area <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-882ef368960a71bffce9af3695e2ed54_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="A(z)" title="Rendered by QuickLaTeX.com" height="18" width="35" style="vertical-align: -4px;" />. Now we look at how to use it backwards: We have a number that represents the area between 0 and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />, what is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />? Let’s illustrate this process with an example.</p> <p><strong>Example 5.9</strong> : We are given an area <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bde98830e35e08b0c64d471aa6e2a887_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P=0.2123" title="Rendered by QuickLaTeX.com" height="13" width="87" style="vertical-align: -1px;" /> as shown in Figure 5.19. What is {z}?</p> <p><em>Solution</em> : Look in the <strong>Standard Normal Distribution Table</strong> for the closest value to the given <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-650eb7688af6737ac325425b5c9a5982_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" />. In this case 0.2123 corresponds exactly to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3cdb42aa8daf00e6899f645f3ab7215f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z = 0.56" title="Rendered by QuickLaTeX.com" height="13" width="65" style="vertical-align: 0px;" />.</p> <div class="wp-caption aligncenter" id="attachment_1933" aria-describedby="caption-attachment-1933" style="width: 376px"><img class="wp-image-1933" src="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.19-300x178.png" alt="" width="376" height="223" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.19-300x178.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.19-1024x609.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.19-768x457.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.19-65x39.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.19-225x134.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.19-350x208.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/05/Figure-5.19.png 1164w" /><div class="wp-caption-text" id="caption-attachment-1933">Figure 5.19: The situation for Example 5.9.</div></div> <p style="text-align: right;">▢</p> <p>Example 5.9 was artificial in that the given area appeared exactly in the <strong>Standard Normal Distribution Table</strong>. Usually it doesn’t. In that case pick the nearest area in the table to the given number and use the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> associated with the nearest area. This, of course, is an approximation. For those who know how, linear interpolation can be used to get a better approximation for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />.</p> <p><span style="text-decoration: underline;"><strong>The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation preserves areas</strong></span></p> <p>In a given situation of sampling a normal population, the mean and standard deviation of the population are not necessarily 0 and 1. We have just learned how to compute areas under a standard normal curve. How do we compute areas under an arbitrary normal curve? We use the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation. If we denote the original normal distribution by <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a80be6e42ac3b3c6528958bbfa21f92c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x)" title="Rendered by QuickLaTeX.com" height="18" width="37" style="vertical-align: -4px;" /> and the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformed distribution by <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3281388049a0f7e2f19025438b5c3d75_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(z)" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" /> then areas under <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a80be6e42ac3b3c6528958bbfa21f92c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x)" title="Rendered by QuickLaTeX.com" height="18" width="37" style="vertical-align: -4px;" /> will be transformed to areas under <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3281388049a0f7e2f19025438b5c3d75_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(z)" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" /> that are the same. <em>The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation preserves areas.</em> So we can compute areas, or probabilities under <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3281388049a0f7e2f19025438b5c3d75_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(z)" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" /> using the <strong>Standard Normal Distribution Table</strong> and instantly have the probabilities we need for the original <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a80be6e42ac3b3c6528958bbfa21f92c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x)" title="Rendered by QuickLaTeX.com" height="18" width="37" style="vertical-align: -4px;" />. Let’s follow an example.</p> <p><strong>Example 5.10</strong> : Suppose we know that the amount of garbage produced by households follows a normal distribution with a mean of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6b8c462aae8b52a5c77ff4c72313dd9f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu = 28" title="Rendered by QuickLaTeX.com" height="16" width="52" style="vertical-align: -4px;" /> pounds/month and a standard deviation of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-93a80556cca761ba3fc537ccfb093bef_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma = 2" title="Rendered by QuickLaTeX.com" height="12" width="42" style="vertical-align: 0px;" /> pounds/month. What is the probability of selecting a household that produces between 27 and 31 pounds of trash/month?</p> <p><em>Solution</em> :&nbsp;First convert <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-24305e69c5fe2397471cc81e60d451f5_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x=27" title="Rendered by QuickLaTeX.com" height="13" width="52" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-59d015c3fb67887db32e46f88e4a7d06_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x=31" title="Rendered by QuickLaTeX.com" height="13" width="51" style="vertical-align: -1px;" /> to their <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-scores:</p> <p class="ql-center-displayed-equation" style="line-height: 37px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9bc3f5eb2ed27116fab3a0e890596ba6_l3.svg" height="37" width="275" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ z_{1} = z(27) = \frac{27-28}{2} = \frac{-1}{2} = -0.5 \]" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 36px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8631c2094f8c70abe250e36f8a6afe2f_l3.svg" height="36" width="247" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ z_{2} = z(31) = \frac{31-28}{2} = \frac{3}{2} = 1.5 \]" title="Rendered by QuickLaTeX.com" /></p> <p>Then, referring to Figure 5.20, we see that the probability is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-13d0e99b987b1f19301d735b235e843e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P = A(0.5) + A(1.5) = 0.1915 + 0.4332 = 0.6247" title="Rendered by QuickLaTeX.com" height="18" width="376" style="vertical-align: -4px;" />.</p> <div class="wp-nocaption size-medium wp-image-1551 aligncenter"><img class="size-medium wp-image-1551 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig39png-300x179.jpg" alt="" width="300" height="179" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig39png-300x179.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig39png-65x39.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig39png-225x134.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig39png-350x208.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig39png.jpg 536w" />→ z-transform →<img class="size-medium wp-image-1552 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig40png-300x189.jpg" alt="" width="300" height="189" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig40png-300x189.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig40png-65x41.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig40png-225x141.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig40png-350x220.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig40png.jpg 522w" /></div> <p style="text-align: center;"><em>Figure 5.20 : The situation of Example 5.10. Left is the given population, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a80be6e42ac3b3c6528958bbfa21f92c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(x)" title="Rendered by QuickLaTeX.com" height="18" width="37" style="vertical-align: -4px;" />. On the right is the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformed version of the population <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3281388049a0f7e2f19025438b5c3d75_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(z)" title="Rendered by QuickLaTeX.com" height="18" width="36" style="vertical-align: -4px;" />. The value 27 is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformed to -0.5 and 31 is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformed to 1.5.</em></p> <p style="text-align: right;">▢</p> <p>In Example 5.10 we used the <strong>Standard Normal Distribution Table</strong> directly. You will also need to know how to solve problems in which you use this table backwards. The next example shows how that is done. For this kind of problem you will find the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> first and then you will need to find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> using the <em>inverse <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation</em> :</p> <p class="ql-center-displayed-equation" style="line-height: 15px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9aa4a7bf801e48f04f0ba80d0f2bf3f5_l3.svg" height="15" width="103" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ x = z \cdot \sigma + \mu. \]" title="Rendered by QuickLaTeX.com" /></p> <p>which is derived by solving the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-16b6f905fa0db4b8099d7e9508ba6a30_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z = \frac{x-\mu}{\sigma}" title="Rendered by QuickLaTeX.com" height="20" width="62" style="vertical-align: -6px;" /> for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" />.</p> <p><strong>Example 5.11</strong> : In this example we work from given <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-650eb7688af6737ac325425b5c9a5982_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" />. To be a police person you need to be in the top 10\% on a test that has results that follow a normal distribution with an average of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0dff5e4b38d3d3618d5a33d972b79118_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu = 200" title="Rendered by QuickLaTeX.com" height="16" width="61" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b1004c2a65a241e85d56d85e18778d08_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma = 20" title="Rendered by QuickLaTeX.com" height="12" width="52" style="vertical-align: 0px;" />.</p> <p>What score do you need to pass?</p> <p><em>Solution</em> : First, find the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> such that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2516ef1d857845b8ad6dcf3085999263_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> z) = 0.10" title="Rendered by QuickLaTeX.com" height="18" width="163" style="vertical-align: -4px;"&gt;. That <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-650eb7688af6737ac325425b5c9a5982_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> is a right tail area (Case 2), so we need <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-dde319ada589bbc80a18201b725888ff_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="A(z) = 0.4" title="Rendered by QuickLaTeX.com" height="18" width="83" style="vertical-align: -4px;" />, look at Figure 5.21 to see that. Then, going to the <strong>Standard Normal Distribution Table</strong>, look for 0.4 in the middle of the table then read off <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> backwards. The closest area is 0.3997 which corresponds to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e8e95e1eee49e483582e416eb7acdc51_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z = 1.28" title="Rendered by QuickLaTeX.com" height="13" width="65" style="vertical-align: -1px;" />. Using the inverse <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation, convert that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> to an <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" />:<br /> to get</p> <p class="ql-center-displayed-equation" style="line-height: 15px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-674e062934e94167e4af5f102017613e_l3.svg" height="15" width="339" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ x = 1.28 \times 20 + 200 = 25.60 + 200 = 225.60 \]" title="Rendered by QuickLaTeX.com" /></p> <p>or, rounding, use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6529c408e91716751c8b6829b80a0ddd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x = 226" title="Rendered by QuickLaTeX.com" height="12" width="61" style="vertical-align: 0px;" />. There are frequently consequences to our calculations and in this case we want to make sure that we have a score that guarantees a pass. So we round the raw calculation up to ensure that.</p> <div class="wp-nocaption size-medium wp-image-1546 aligncenter"><img class="size-medium wp-image-1546 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig41png-300x174.png" alt="" width="300" height="174" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig41png-300x174.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig41png-65x38.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig41png-225x130.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig41png-350x203.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig41png.png 561w" /> ← inverse z-transform ←<img class="size-medium wp-image-1547 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig42png-300x170.jpg" alt="" width="300" height="170" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig42png-300x170.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig42png-65x37.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig42png-225x127.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig42png-350x198.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig42png.jpg 561w" /></div> <p style="text-align: center;"><em>Figure 5.21 : The situation of Example 5.11</em></p> <p style="text-align: right;">▢</p> 
</div></div>
<div class="part " id="part-slug-6-percentiles-and-quartiles"><div class="part-title-wrap"><h3 class="part-number">VI</h3><h1 class="part-title">6. Percentiles and Quartiles</h1></div><p>The concept of percentile<span class="footnote">This percentile stuff is all about cumulative frequency or (thinking about probabilities) cumulative relative frequencies. The corresponding probability functions are called Cumulative Distribution Functions or CDFs. You will encounter CDFs in SPSS; they are mentioned later in this chapter.</span> applies to either a data set (sample, as represented by a histogram &#8212; a discrete distribution) or to a continuous distribution (which represents a population) as shown in Figure 6.1.</p> <div class="wp-caption aligncenter" id="attachment_686" aria-describedby="caption-attachment-686" style="width: 654px"><img class="wp-image-686" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig43png-300x116.jpg" alt="" width="654" height="253" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig43png-300x116.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig43png-1024x397.jpg 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig43png-768x298.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig43png-65x25.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig43png-225x87.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig43png-350x136.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig43png.jpg 1319w" /><div class="wp-caption-text" id="caption-attachment-686">Figure 6.1: The concept of percentile applies to either a data set or to a continuous distribution.</div></div> <p>The <em>percentile</em> position of the data point <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c8700e0258243116de0d4f288e2e3b44_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#105;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" />, denoted here by <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ed9dfba2db470b0eabb1f13eb15ef007_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#120;&#95;&#123;&#105;&#125;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="42" style="vertical-align: -4px;" />, is the percentage of the area under the curve up to the point <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" />. <em>Notation warning</em> : Do not confuse percentile and probability, we use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-650eb7688af6737ac325425b5c9a5982_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> to denote both!! (They are related though.)</p> <p>To determine the percentile position for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /> from a normal distribution of values, convert <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /> to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-91650b546b756e1d0501b9b6c329b69a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="13" style="vertical-align: -3px;" /> via the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation, determine the area under the standard normal curve up to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-91650b546b756e1d0501b9b6c329b69a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="13" style="vertical-align: -3px;" /> and multiply by 100. We have, therefore, already seen how to compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ed9dfba2db470b0eabb1f13eb15ef007_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#120;&#95;&#123;&#105;&#125;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="42" style="vertical-align: -4px;" /> given <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /> or how to compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /> for a given percentile <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-650eb7688af6737ac325425b5c9a5982_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" />. See Case 5 in Section 5.3 and remember how to use the <strong>Standard Normal Distribution Table</strong> forward and backwards.</p><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-6-1-discrete-data-percentiles-and-quartiles" title="6.1 Discrete Data Percentiles and Quartiles"><div class="chapter-title-wrap"><h3 class="chapter-number">20</h3><h2 class="chapter-title">6.1 Discrete Data Percentiles and Quartiles</h2></div><div class="ugc chapter-ugc"><p>Before we get into how to calculate percentile in a data set, note that we can see percentiles directly on a cumulative frequency plot, see Figure 6.2.</p> <div class="wp-caption aligncenter" id="attachment_691" aria-describedby="caption-attachment-691" style="width: 504px"><img class="wp-image-691" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig44png-300x156.jpg" alt="" width="504" height="262" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig44png-300x156.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig44png-768x399.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig44png-65x34.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig44png-225x117.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig44png-350x182.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig44png.jpg 900w" /><div class="wp-caption-text" id="caption-attachment-691">Figure 6.2 : With a cumulative frequency plot, we can read percentiles off the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0af556714940c351c933bba8cf840796_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#121;" title="Rendered by QuickLaTeX.com" height="12" width="9" style="vertical-align: -4px;" /> axis. If you have a newborn baby and take it to the doctor for their first check up, they will measure the baby&#8217;s head circumference and tell you the baby&#8217;s head size percentile by looking at such a chart. The doctor&#8217;s chart will be based on an accumulation of a very large number of essentially population data. Cumulative frequency graphs, or more exactly cumulative probability graphs, can be made for continuous distributions like the normal distribution. The resulting function is the Cumulative Distribution Function, or CDF, and is, for example, P(z) represents the z-distribution then CDF <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-af0590b8cb2a83f94e62a8c92d5926c4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#40;&#120;&#41;&#61;&#92;&#105;&#110;&#116;&#95;&#123;&#48;&#125;&#94;&#123;&#120;&#125;&#80;&#40;&#122;&#41;&#100;&#122;" title="Rendered by QuickLaTeX.com" height="21" width="125" style="vertical-align: -6px;" />. We will see this CDF in SPSS.</div></div> <p><em>Computing percentile positions of discrete data. </em>Let <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> be the <em>ordered</em> position of a data set of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> data points, then we define the percentile position of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /> to be</p> <p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">(6.1) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5e0174798b40d06ec0aa8f07de1809c7_l3.svg" height="42" width="179" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#80;&#40;&#120;&#95;&#123;&#105;&#125;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#105;&#45;&#49;&#41;&#125;&#123;&#40;&#110;&#45;&#49;&#41;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#48;&#48;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>This formula has the property that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-43f323ab832864b0f0a57f2a1bd0487e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#120;&#95;&#123;&#49;&#125;&#61;&#76;&#41;&#32;&#61;&#32;&#48;" title="Rendered by QuickLaTeX.com" height="18" width="114" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8dadadd687f2a16bdb7ebf80eb9a99c4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#120;&#95;&#123;&#110;&#125;&#32;&#61;&#32;&#72;&#41;&#32;&#61;&#32;&#49;&#48;&#48;" title="Rendered by QuickLaTeX.com" height="18" width="137" style="vertical-align: -4px;" />. It is what we will use as a percentile formula but it is not the only one. Look at Figure 6.1. The way the histogram there is shaded the formula would be <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2322ed0ee7d7ebfb209f505af51be3ef_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#120;&#95;&#123;&#105;&#125;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#105;&#125;&#123;&#110;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#48;&#48;" title="Rendered by QuickLaTeX.com" height="22" width="128" style="vertical-align: -6px;" /> which would have the property that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-aa1db4a22bd4cd04d8e7cfbc7daf85f4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#76;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#48;&#48;&#125;&#123;&#110;&#125;" title="Rendered by QuickLaTeX.com" height="22" width="86" style="vertical-align: -6px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e8b0154fa33606cfaf103b47a51fc7cd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#72;&#41;&#32;&#61;&#32;&#49;&#48;&#48;" title="Rendered by QuickLaTeX.com" height="18" width="94" style="vertical-align: -4px;" />. There are other, not necessarily wrong, ways to define the percentile position of discrete data but we will use Equation 6.1.</p> <p>If you want to find the position, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />, of the data point corresponding to a given percentile <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-650eb7688af6737ac325425b5c9a5982_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> then compute</p> <div></div> <div><p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">(6.2) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c75502ce6c2a9b019b0a3a7b32cb239_l3.svg" height="43" width="177" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#105;&#32;&#61;&#32;&#92;&#108;&#101;&#102;&#116;&#91;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#80;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#40;&#110;&#45;&#49;&#41;&#125;&#123;&#49;&#48;&#48;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#93;&#32;&#43;&#32;&#49;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> </div> <p>Equation (6.2) is derived by solving Equation (6.1) for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />. Note that Equation (6.2) gives the <em>position</em> of the data point <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" />, not its value. To clarify that, let&#8217;s look at an example.</p> <p><strong>Example 6.1</strong> : Consider the dataset given below. Data would originally be given as the numbers in the first line. So the first step in answering any question about percentiles is to order the data, the same as what you need to to to determine the median of a dataset. Once the data are ordered, then you may assign a position number to each data point as shown in the third line.</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 92.4848%; height: 82px;"><tbody><tr><td class="shaded" style="width: 15.5118%; text-align: center;">original data</td> <td style="width: 8.0315%; text-align: center;">18</td> <td style="width: 7.76903%; text-align: center;">15</td> <td style="width: 8.68766%; text-align: center;">12</td> <td style="width: 8.68766%; text-align: center;">6</td> <td style="width: 8.9501%; text-align: center;">8</td> <td style="width: 8.68766%; text-align: center;">2</td> <td style="width: 8.4252%; text-align: center;">3</td> <td style="width: 7.90026%; text-align: center;">5</td> <td style="width: 9.59317%; text-align: center;">20</td> <td style="width: 7.75591%; text-align: center;">10</td> </tr> <tr><td class="shaded" style="width: 15.5118%; text-align: center;">ordered data</td> <td style="width: 8.0315%; text-align: center;">2</td> <td style="width: 7.76903%; text-align: center;">3</td> <td style="width: 8.68766%; text-align: center;">5</td> <td style="width: 8.68766%; text-align: center;">6</td> <td style="width: 8.9501%; text-align: center;">8</td> <td style="width: 8.68766%; text-align: center;">10</td> <td style="width: 8.4252%; text-align: center;">12</td> <td style="width: 7.90026%; text-align: center;">15</td> <td style="width: 9.59317%; text-align: center;">18</td> <td style="width: 7.75591%; text-align: center;">20</td> </tr> <tr><td class="shaded" style="width: 15.5118%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /></td> <td style="width: 8.0315%; text-align: center;">1</td> <td style="width: 7.76903%; text-align: center;">2</td> <td style="width: 8.68766%; text-align: center;">3</td> <td style="width: 8.68766%; text-align: center;">4</td> <td style="width: 8.9501%; text-align: center;">5</td> <td style="width: 8.68766%; text-align: center;">6</td> <td style="width: 8.4252%; text-align: center;">7</td> <td style="width: 7.90026%; text-align: center;">8</td> <td style="width: 9.59317%; text-align: center;">9</td> <td style="width: 7.75591%; text-align: center;">10</td> </tr> <tr><td style="width: 15.5118%; text-align: left;" colspan="11"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8c21da861c4a9dbc9d42aead2976d0b6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#61;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="13" width="52" style="vertical-align: -1px;" /></td> </tr> </tbody> </table> <p>Q : What is the percentile rank of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-774c250a365c8eef532acbe32c321ae8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;&#32;&#61;&#32;&#49;&#50;" title="Rendered by QuickLaTeX.com" height="15" width="56" style="vertical-align: -3px;" />?<br /> A : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-263add90f92b3b76287ff9828eadd0ea_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;&#61;&#55;" title="Rendered by QuickLaTeX.com" height="13" width="39" style="vertical-align: 0px;" /> so <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0657d37cb508749ca73d303a40ea80db_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#49;&#50;&#41;&#32;&#61;&#32;&#80;&#40;&#120;&#95;&#123;&#55;&#125;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#55;&#45;&#49;&#41;&#125;&#123;&#49;&#48;&#45;&#49;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#48;&#48;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#54;&#125;&#123;&#52;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#48;&#48;&#32;&#61;&#32;&#54;&#55;&#94;&#123;&#92;&#114;&#109;&#32;&#116;&#104;&#125;" title="Rendered by QuickLaTeX.com" height="27" width="363" style="vertical-align: -7px;" /> percentile.</p> <p>Q : What is the value corresponding to the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-dbe773ee942d79372af0f6f588a9be89_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#50;&#53;&#94;&#123;&#92;&#114;&#109;&#32;&#116;&#104;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="31" style="vertical-align: 0px;" /> percentile, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b52d56bae84886f0756892f38d08f65b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#95;&#123;&#50;&#53;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="25" style="vertical-align: -3px;" />?<br /> A : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a89092d068721dafdbefc280c614f407_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;&#32;&#61;&#32;&#92;&#108;&#101;&#102;&#116;&#91;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#80;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#40;&#110;&#45;&#49;&#41;&#125;&#123;&#49;&#48;&#48;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#93;&#32;&#43;&#49;&#32;&#61;&#92;&#108;&#101;&#102;&#116;&#91;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#50;&#53;&#41;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#40;&#49;&#48;&#45;&#49;&#41;&#125;&#123;&#49;&#48;&#48;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#93;&#32;&#43;&#49;&#32;&#61; &#92;&#108;&#101;&#102;&#116;&#91;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#53;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#57;&#125;&#123;&#49;&#48;&#48;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#93;&#32;&#43;&#32;&#49;&#32;&#61;&#32;&#50;&#46;&#50;&#53;&#32;&#43;&#32;&#49;&#32;&#61;&#32;&#51;&#46;&#50;&#53;" title="Rendered by QuickLaTeX.com" height="32" width="535" style="vertical-align: -11px;" /></p> <p>The closest <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> is 3 and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea9e1f09a6b8a00d9660ba952a00f75b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#51;&#32;&#61;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="16" width="49" style="vertical-align: -3px;" />. We can write <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d6fd618e53b9ab4461bfe7479a180855_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#95;&#123;&#50;&#53;&#125;&#32;&#61;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="16" width="58" style="vertical-align: -3px;" />.</p> <p style="text-align: right;">▢</p> <p style="text-align: left;"><em><strong>Decile </strong></em>:</p> <p style="text-align: left;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d0d6029ab7c4983c9459886ba9fa750f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#68;&#40;&#120;&#95;&#105;&#41;&#32;&#92;&#101;&#113;&#117;&#105;&#118;" title="Rendered by QuickLaTeX.com" height="18" width="63" style="vertical-align: -4px;" /> The decile of data value <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad1596ad08a97b74d62d11f0964916fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /> in the <em>ordered</em> position <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#105;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> is defined as</p> <p class="ql-center-displayed-equation" style="line-height: 39px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f35f91c91bb8ec2d6b6ee6c26d68bc33_l3.svg" height="39" width="352" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#68;&#40;&#120;&#95;&#105;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#80;&#40;&#120;&#95;&#105;&#41;&#125;&#123;&#49;&#48;&#125;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#49;&#105;&#110;&#125;&#32;&#48;&#32;&#92;&#108;&#101;&#113;&#32;&#68;&#40;&#120;&#95;&#123;&#105;&#125;&#41;&#32;&#92;&#108;&#101;&#113;&#32;&#49;&#48; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>We will not make much use of decile except to see that quartile is defined in the same way.</p> <p><em><strong>Quartile </strong></em>:</p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7e50bbcd2f807e86923776b8a749e504_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#40;&#120;&#95;&#105;&#41;&#32;&#92;&#101;&#113;&#117;&#105;&#118;" title="Rendered by QuickLaTeX.com" height="18" width="61" style="vertical-align: -4px;" /> The quartile of data value <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c8700e0258243116de0d4f288e2e3b44_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#105;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /> in the <span style="text-decoration: underline;">ordered</span> position 1.</p> <p class="ql-center-displayed-equation" style="line-height: 38px;"><span class="ql-right-eqno">(6.3) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cc22c9313e42d19111eca27490d1f74d_l3.svg" height="38" width="340" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#81;&#40;&#120;&#95;&#105;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#80;&#40;&#120;&#95;&#123;&#105;&#125;&#41;&#125;&#123;&#50;&#53;&#125;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#49;&#105;&#110;&#125;&#32;&#48;&#32;&#92;&#108;&#101;&#113;&#32;&#81;&#40;&#120;&#95;&#123;&#105;&#125;&#41;&#32;&#92;&#108;&#101;&#113;&#32;&#52; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p><em>Notation </em>: (This notation also applies to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-650eb7688af6737ac325425b5c9a5982_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4b9ef1bbd23fd1b198de883813285620_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#68;" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: 0px;" />.) We write :</p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4b6a8ecd4182b14061ff4d6986f64f36_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> &amp;=&amp; <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-28485e406dd9b7f9c5244e89b1722a1e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#48;&#94;&#123;&#92;&#114;&#109;&#32;&#116;&#104;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="22" style="vertical-align: 0px;" /> quartile<br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6b6b12b50fe43a209ecce557539ee185_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#49;" title="Rendered by QuickLaTeX.com" height="16" width="20" style="vertical-align: -4px;" /> &amp; = &amp; <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e6dcbd179c8d418057da6eb29ffff192_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#49;&#94;&#123;&#92;&#114;&#109;&#32;&#115;&#116;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="18" style="vertical-align: -1px;" /> quartile<br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7a8f7f7bc05736504761c873bfd99aa1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> &amp; = &amp; <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a594cdfb77d651ca8004523cdb67d30d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#50;&#94;&#123;&#92;&#114;&#109;&#32;&#110;&#100;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="25" style="vertical-align: 0px;" /> quartile<br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6cef68a5946963445c5d51e5093bd228_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#51;" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> &amp; = &amp; <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-15a6609727252fe372d8a71b083701a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#51;&#94;&#123;&#92;&#114;&#109;&#32;&#114;&#100;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="22" style="vertical-align: 0px;" /> quartile<br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9b6380811b8fa81b32f66343316e85cf_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#52;" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> &amp; = &amp; <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f842b5f4ddf5a159a93b368906b878b6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#52;&#94;&#123;&#92;&#114;&#109;&#32;&#116;&#104;&#125;" title="Rendered by QuickLaTeX.com" height="17" width="22" style="vertical-align: -1px;" /> quartile</p> <p>Quartiles are useful because we do not have to compute percentile first and then divide by 25 as given by Equation (6.3). Instead, we can use the following handy tricks after ordering our data:</p> <p class="ql-center-displayed-equation" style="line-height: 125px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f571810a2e1a033ad0ef256b75e97418_l3.svg" height="125" width="305" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#81;&#95;&#123;&#50;&#125;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#32;&#77;&#68;&#32;&#40;&#109;&#101;&#100;&#105;&#97;&#110;&#41;&#125;&#92;&#92; &#81;&#95;&#123;&#49;&#125;&#38;&#32;&#61;&#32;&#38;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#32;&#77;&#68;&#32;&#111;&#102;&#32;&#118;&#97;&#108;&#117;&#101;&#115;&#32;&#108;&#101;&#115;&#115;&#32;&#116;&#104;&#97;&#110;&#32;&#36;&#81;&#95;&#123;&#50;&#125;&#36;&#125;&#92;&#92; &#81;&#95;&#123;&#51;&#125;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#32;&#77;&#68;&#32;&#111;&#102;&#32;&#118;&#97;&#108;&#117;&#101;&#115;&#32;&#103;&#114;&#101;&#97;&#116;&#101;&#114;&#32;&#116;&#104;&#97;&#110;&#32;&#36;&#81;&#95;&#123;&#50;&#125;&#36;&#125;&#92;&#92; &#81;&#95;&#123;&#48;&#125;&#32;&#38;&#61;&#38;&#32;&#76;&#32;&#92;&#92; &#81;&#95;&#123;&#52;&#125;&#32;&#38;&#61;&#38;&#32;&#72; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p><strong>Example 6.2</strong> : Example with an even number of data points. With the data <em>in order</em>, first find the median, then the medians of the two halves of the dataset :</p> <p class="ql-center-displayed-equation" style="line-height: 14px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-52303a295134ac93a94b56abea3c4a49_l3.svg" height="14" width="330" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#53;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#54;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#49;&#50;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#49;&#51;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#49;&#53;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#49;&#56;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#50;&#50;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#53;&#48;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0be180932bb3f7aaebcf3b3107a7fed3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#49;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#54;&#32;&#43;&#32;&#49;&#50;&#125;&#123;&#50;&#125;&#32;&#61;&#32;&#57;" title="Rendered by QuickLaTeX.com" height="22" width="113" style="vertical-align: -6px;" /></p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d065f8c5139430685de1edd3fa7effbb_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#77;&#68;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#51;&#32;&#43;&#32;&#49;&#53;&#125;&#123;&#50;&#125;&#32;&#61;&#32;&#49;&#52;&#32;&#61;&#32;&#81;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="22" width="186" style="vertical-align: -6px;" /></p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c44458da24a1468ac0352e2c8baebbd5_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#51;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#56;&#32;&#43;&#32;&#50;&#50;&#125;&#123;&#50;&#125;&#32;&#61;&#32;&#50;&#48;" title="Rendered by QuickLaTeX.com" height="22" width="129" style="vertical-align: -6px;" /></p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e42a53b7b4b4dbc91548b03db9d0c807_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#123;&#48;&#125;&#32;&#61;&#32;&#76;&#32;&#61;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="89" style="vertical-align: -4px;" /></p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad31cf175091c9a290de4addddb14a15_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#123;&#52;&#125;&#32;&#61;&#32;&#72;&#32;&#61;&#32;&#53;&#48;" title="Rendered by QuickLaTeX.com" height="17" width="103" style="vertical-align: -4px;" /></p> <p style="text-align: right;">▢</p> <p><strong>Example 6.3</strong> : Example with an even number of data points. With the data <em>in order</em>, first find the median, then the medians of the two halves of the dataset :</p> <p class="ql-center-displayed-equation" style="line-height: 14px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8eb3e9e1e878884a81745946cc0050bc_l3.svg" height="14" width="281" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#50;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#53;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#49;&#49;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#49;&#52;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#49;&#56;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#50;&#53;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#51;&#53;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea40e1c2ba76f03c553910e193f613e6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#123;&#49;&#125;&#32;&#61;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="53" style="vertical-align: -4px;" /></p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c9a4370e8f4496ade9446440a5ddd70d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#77;&#68;&#32;&#61;&#32;&#49;&#52;&#32;&#61;&#32;&#81;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="120" style="vertical-align: -4px;" /></p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-19e87cec46e326a5e1bc1f497bd91298_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#123;&#51;&#125;&#32;&#61;&#32;&#50;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="62" style="vertical-align: -4px;" /></p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-77055af71880465c282f1ad5605a9d36_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#123;&#48;&#125;&#32;&#61;&#32;&#76;&#32;&#61;&#32;&#50;" title="Rendered by QuickLaTeX.com" height="16" width="89" style="vertical-align: -4px;" /></p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-aa7eb79b65a0bf6a63b7e0c0a2e8a946_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#123;&#52;&#125;&#32;&#61;&#32;&#72;&#32;&#61;&#32;&#51;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="102" style="vertical-align: -4px;" /></p> <p style="text-align: right;">▢</p> </div></div>
<div class="chapter standard" id="chapter-slug-6-2-finding-outliers-using-quartiles" title="6.2 Finding Outliers Using Quartiles"><div class="chapter-title-wrap"><h3 class="chapter-number">21</h3><h2 class="chapter-title">6.2 Finding Outliers Using Quartiles</h2></div><div class="ugc chapter-ugc"><p>We can use quartiles to identify <em>outliers</em> or data points that are wildly discrepant with the rest of the data. For this application, we need another definition of data dispersion :</p> <p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9ea672f8f2968ccf3918b106299429d5_l3.svg" height="17" width="298" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#92;&#116;&#101;&#120;&#116;&#114;&#109;&#123;&#73;&#110;&#116;&#101;&#114;&#113;&#117;&#97;&#114;&#116;&#105;&#108;&#101;&#32;&#82;&#97;&#110;&#103;&#101;&#125;&#32;&#61;&#32;&#73;&#81;&#82;&#32;&#61;&#32;&#81;&#95;&#51;&#32;&#45;&#32;&#81;&#95;&#49; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>With the IQR any data value that satisfies:</p> <p>(a) less than <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-49e09bb9c536e7d8f213ea9003e3cca1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#49;&#32;&#45;&#32;&#40;&#49;&#46;&#53;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#73;&#81;&#82;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="137" style="vertical-align: -4px;" /><br /> <span style="text-decoration: underline;"><strong>or<br /> </strong></span>(b) greater than <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c19f823678179f373d0466e6fabb5550_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#51;&#32;&#43;&#32;&#40;&#49;&#46;&#53;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#73;&#81;&#82;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="137" style="vertical-align: -4px;" /></p> <p>&#8230;is considered an outlier. This is one of many ways one can define an outlier. As we will discuss below, it is a robust way of identifying outliers.</p> <p><strong>Example 6.4</strong> : Consider the data of Example 6.2. We found</p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-da3dda0d07f2452981b91499bfe11d36_l3.svg" height="16" width="240" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#81;&#95;&#123;&#49;&#125;&#32;&#61;&#32;&#57;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#81;&#95;&#123;&#50;&#125;&#32;&#61;&#32;&#49;&#52;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#81;&#95;&#123;&#51;&#125;&#32;&#61;&#32;&#50;&#48; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>so,</p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8c039194d0c14e7efb90268e380eba5d_l3.svg" height="16" width="243" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#73;&#81;&#82;&#32;&#61;&#32;&#81;&#95;&#123;&#51;&#125;&#32;&#45;&#32;&#81;&#95;&#123;&#49;&#125;&#32;&#61;&#32;&#50;&#48;&#32;&#45;&#32;&#57;&#32;&#61;&#32;&#49;&#49;&#46; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>Following our rules for finding outliers, we compute:</p> <p>(a) lower acceptable value limit</p> <p style="padding-left: 40px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-562ff751fc8f117e07cfe8a432a67d25_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#61;&#32;&#81;&#95;&#123;&#49;&#125;&#32;&#45;&#32;&#40;&#49;&#46;&#53;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#73;&#81;&#82;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="156" style="vertical-align: -4px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c6bc7aa8af802e6c559f596d1a0621c9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#61;&#32;&#57;&#32;&#45;&#32;&#40;&#49;&#46;&#53;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#49;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="124" style="vertical-align: -4px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-65bc714070c5a17abefd71c3de8d99e5_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#61;&#32;&#57;&#32;&#45;&#32;&#49;&#54;&#46;&#53;&#32;&#61;&#32;&#8722;&#55;&#46;&#53;" title="Rendered by QuickLaTeX.com" height="14" width="126" style="vertical-align: -1px;" /></p> <p>(b) upper acceptable value limit</p> <p style="padding-left: 40px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-277e87bada6f8d0c68e4a94989c94e8d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#61;&#32;&#81;&#95;&#123;&#51;&#125;&#32;&#43;&#32;&#40;&#49;&#46;&#53;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#73;&#81;&#82;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="156" style="vertical-align: -4px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6caf3be6cc50d8b0b7cf8bc6918192c8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#61;&#32;&#50;&#48;&#32;&#43;&#32;&#40;&#49;&#46;&#53;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#49;&#49;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="133" style="vertical-align: -4px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf17522b39e172c2288aa55db0481ce0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#61;&#32;&#50;&#48;&#32;&#43;&#32;&#49;&#54;&#46;&#53;&#32;&#61;&#32;&#51;&#54;&#46;&#53;" title="Rendered by QuickLaTeX.com" height="15" width="144" style="vertical-align: -2px;" /></p> <p>and 50 &gt; 36.5 so 50 is considered an outlier.</p> <p style="text-align: right;">▢</p> </div></div>
<div class="chapter standard" id="chapter-slug-6-3-box-plots" title="6.3 Box Plots"><div class="chapter-title-wrap"><h3 class="chapter-number">22</h3><h2 class="chapter-title">6.3 Box Plots</h2></div><div class="ugc chapter-ugc"><p>A box plot is a plot that shows <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6b6b12b50fe43a209ecce557539ee185_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#49;" title="Rendered by QuickLaTeX.com" height="16" width="20" style="vertical-align: -4px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6cef68a5946963445c5d51e5093bd228_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#51;" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> and MD (= <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7a8f7f7bc05736504761c873bfd99aa1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" />) along with H and L (= <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f378155e38373ea55d7d1ac1a6b17c8f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9b6380811b8fa81b32f66343316e85cf_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#81;&#95;&#52;" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" />) as shown in Figure 6.3. It especially emphasizes the IQR.</p> <p>&nbsp;</p> <div class="wp-caption aligncenter" id="attachment_730" aria-describedby="caption-attachment-730" style="width: 635px"><img class="wp-image-730" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig46png-300x92.jpg" alt="" width="635" height="195" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig46png-300x92.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig46png-65x20.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig46png-225x69.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig46png-350x108.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig46png.jpg 706w" /><div class="wp-caption-text" id="caption-attachment-730">Figure 6.3: The features of a box plot, also known as a box-and-whiskers plot. When one of the whiskers is more than 1.5 times the length of the box (the IQR) then there are outliers by our definition in Section 6.2. The data line shown below the box plot is a construction line and not part of the box plot.</div></div> <p><strong>Example 6.5 </strong>: Construct a box plot for the data shown in Figure 6.4. Again, someone has done the first, tedious, step of <em>ordering</em> the data for us.</p> <p>&nbsp;</p> <div class="wp-caption aligncenter" id="attachment_735" aria-describedby="caption-attachment-735" style="width: 600px"><img class="wp-image-735" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig47png-300x109.jpg" alt="" width="600" height="218" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig47png-300x109.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig47png-768x280.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig47png-65x24.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig47png-225x82.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig47png-350x128.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig47png.jpg 908w" /><div class="wp-caption-text" id="caption-attachment-735">Figure 6.4: Construction of a box plot from the given data.</div></div> <p style="text-align: right">▢</p> <p>Box plots can also be drawn vertically. SPSS draws box plots vertically; this is especially useful for comparing datasets.</p> </div></div>
<div class="chapter standard" id="chapter-slug-6-4-robust-statistics" title="6.4 Robust Statistics"><div class="chapter-title-wrap"><h3 class="chapter-number">23</h3><h2 class="chapter-title">6.4 Robust Statistics</h2></div><div class="ugc chapter-ugc"><p>A <em>robust statistic</em> or <em>resistant statistic</em> is one that is less affected by outliers than a non-robust or non-resistant statistic. If you look at the numbers in Example 6.2 you can see that the value of the MD (and IQR) is completely unaffected by the value of the outlier data point 50. The mean and the standard deviation will, however, be greatly affected by the value of the outlier. So while some people may identify outliers as those being (say) 3 <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> from the mean, we see that that is a non-robust way of identifying outliers. In summary:</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 55.3306%; height: 66px;"><tbody><tr style="height: 14px;"><td class="border" style="width: 394.062px; height: 14px; text-align: center;" colspan="2">Measures of central tendency and dispersion</td> </tr> <tr style="height: 14px;"><td class="border" style="width: 185.062px; height: 14px; text-align: center;">Robust</td> <td class="border" style="width: 195.062px; height: 14px; text-align: center;">Non-robust</td> </tr> <tr style="height: 14px;"><td class="border" style="width: 185.062px; height: 10px; text-align: center;" rowspan="2">MD<br /> IQR</td> <td class="border" style="width: 195.062px; height: 10px; text-align: center;" rowspan="2"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /></td> </tr> </tbody> </table> <p>It would seem that inferential statistics based on robust statistics would be better than statistics based on non-robust values. Maybe. But, traditionally, statistical analysis like the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-tests, ANOVA and regression, are based on the non-robust statistics of means and standard deviations (or variance). People tend to use robust statistics in “Exploratory Data Analysis” (EDA). With EDA one is not concerned so much with testing hypothesis as in trying to get an understanding of general trends in the data. The techniques, and statistics, the fall under the two categories are:</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 62.1962%; height: 169px;"><tbody><tr><td style="width: 50%; text-align: center;">Traditional</td> <td style="width: 50%; text-align: center;">Exploratory Data Analysis (EDA)</td> </tr> <tr><td style="width: 50%; text-align: center;">Frequency Tables<br /> Histogram<br /> Mean, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /><br /> Standard Deviation, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /></td> <td style="width: 50%; text-align: center;">Stem and Leaf Plot<br /> Box Plot<br /> Median, MD<br /> Interquartile Range, IQR</td> </tr> </tbody> </table> <p>You will find an EDA menu under Analyze → Descriptives in SPSS.</p> </div></div>
<div class="chapter standard" id="chapter-slug-6-5-spss-lesson-4-percentiles" title="6.5 SPSS Lesson 4: Percentiles"><div class="chapter-title-wrap"><h3 class="chapter-number">24</h3><h2 class="chapter-title">6.5 SPSS Lesson 4: Percentiles</h2></div><div class="ugc chapter-ugc"> <p>To follow along, load in the file “AgeSmoker.sav” from the <a href="#front-matter-data-sets" target="_blank" rel="noopener noreferrer">Data Sets</a>. We will pick on the variable Age. We will compute the percentile rank of each value in the Age dataset two ways. One way, we will treat the data as a discrete data set and will compute the percentile position following Equation 6.1. The other way, we will treat the data as if they came from a normal population.</p> <div class="wp-caption alignnone" id="attachment_1656" aria-describedby="caption-attachment-1656" style="width: 827px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker1.png"><img class="wp-image-1656" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker1-300x169.png" alt="" width="827" height="466" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker1-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker1-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker1-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1656">SPSS screenshot © International Business Machines Corporation.</div></div> <p>First, treat the data as a stand alone discrete data set. First we need to rank the data; the ranks are the values <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-695d9d59bd04859c6c99e7feb11daab6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="i" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> in Equation 6.1. Use Transform <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Rank Cases :</p> <div class="wp-caption alignnone" id="attachment_1657" aria-describedby="caption-attachment-1657" style="width: 818px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker2.png"><img class="wp-image-1657" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker2-300x169.png" alt="" width="818" height="461" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker2-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker2-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker2-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker2-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker2-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker2-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker2-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker2-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1657">SPSS screenshot © International Business Machines Corporation.</div></div> <p>This produces the ranking variable RAge, visible in the Data View window.</p> <div class="wp-caption alignnone" id="attachment_1658" aria-describedby="caption-attachment-1658" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker3.png"><img class="wp-image-1658" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker3-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker3-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker3-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker3-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker3-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker3-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker3-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker3-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker3-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1658">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Now use that ranking variable in Equation 6.1 by pulling up Transform <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Compute Variable :</p> <div class="wp-caption aligncenter" id="attachment_1659" aria-describedby="caption-attachment-1659" style="width: 858px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker4.png"><img class="wp-image-1659" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker4-300x169.png" alt="" width="858" height="483" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker4-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker4-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker4-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker4-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker4-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker4-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker4-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker4-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1659">SPSS screenshot © International Business Machines Corporation.</div></div> <p>The result, in the Data View window, looks like :</p> <div class="wp-caption aligncenter" id="attachment_1660" aria-describedby="caption-attachment-1660" style="width: 901px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker5.png"><img class="wp-image-1660" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker5-300x169.png" alt="" width="901" height="507" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker5-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker5-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker5-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker5-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker5-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker5-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker5-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker5-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1660">SPSS screenshot © International Business Machines Corporation.</div></div> <p>We can sort the data on RAge using Data <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Sort Cases :</p> <div class="wp-caption aligncenter" id="attachment_1661" aria-describedby="caption-attachment-1661" style="width: 819px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker6.png"><img class="wp-image-1661" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker6-300x169.png" alt="" width="819" height="461" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker6-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker6-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker6-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker6-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker6-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker6-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker6-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker6-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1661">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Note how the smallest value has percentile rank 0. If you scroll to the end of the list you will see that the largest value has percentile rank 100.</p> <div class="wp-caption aligncenter" id="attachment_1662" aria-describedby="caption-attachment-1662" style="width: 857px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker7.png"><img class="wp-image-1662" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker7-300x169.png" alt="" width="857" height="483" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker7-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker7-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker7-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker7-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker7-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker7-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker7-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker7-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1662">SPSS screenshot © International Business Machines Corporation.</div></div> <div class="wp-caption aligncenter" id="attachment_1663" aria-describedby="caption-attachment-1663" style="width: 828px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker8.png"><img class="wp-image-1663" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker8-300x169.png" alt="" width="828" height="466" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker8-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker8-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker8-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker8-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker8-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker8-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker8-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker8-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1663">SPSS screenshot © International Business Machines Corporation.</div></div> <p>CDF stands for Cumulative Distribution Function. It is literally the cumulative area under a probability distribution function, in this case the normal distribution. So multiplying it by 100 give the percentile rank. The output, in the Data View window looks like :</p> <div class="wp-caption aligncenter" id="attachment_1664" aria-describedby="caption-attachment-1664" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker9.png"><img class="wp-image-1664" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker9-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker9-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker9-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker9-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker9-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker9-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker9-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker9-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp6AgeSmoker9-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1664">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Note how the percentile ranks of gparank are different from, but close to, the percentile ranks of perrank computed using the data’s own distribution. This indicates that the data themselves follow an approximately normal distribution.</p> </div></div>
<div class="chapter standard" id="chapter-slug-6-6-rstudio-lesson-4-percentiles" title="6.6 RStudio Lesson 4: Percentiles"><div class="chapter-title-wrap"><h3 class="chapter-number">25</h3><h2 class="chapter-title">6.6 RStudio Lesson 4: Percentiles</h2></div><div class="ugc chapter-ugc"><p>[Coming soon]</p> </div></div>
<div class="part " id="part-slug-7-the-central-limit-theorem"><div class="part-title-wrap"><h3 class="part-number">VII</h3><h1 class="part-title">7. The Central Limit Theorem</h1></div><p>Before we can learn about confidence intervals in Chapter 8 and hypothesis testing in the Chapter 9, we need a couple of results that form the foundation of the usefulness of the normal distribution. We have mentioned that the normal distribution can be derived as a limit of binomial distributions. This fact can be used in reverse and we can use the normal distribution to approximate the binomial distribution. This approximation will be useful for inferences (confidence intervals and hypothesis testing) on proportions. The second result is the <em>very important</em> central limit theorem where the normal distribution pops out as the answer to the characterization of random sample means. The central limit theorem gives us the <em>sampling theory</em> for all statistical inference procedures involving means.</p><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-7-1-using-the-normal-distribution-to-approximate-the-binomial-distribution" title="7.1 Using the Normal Distribution to Approximate the Binomial Distribution"><div class="chapter-title-wrap"><h3 class="chapter-number">26</h3><h2 class="chapter-title">7.1 Using the Normal Distribution to Approximate the Binomial Distribution</h2></div><div class="ugc chapter-ugc"><p>Recall the definitions: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> = probability of success, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9f6c4185094b1a4662f8c423aae0cd7a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#113;&#32;&#61;&#32;&#49;&#32;&#45;&#32;&#112;" title="Rendered by QuickLaTeX.com" height="16" width="72" style="vertical-align: -4px;" /> = probability of failure and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> = sample size. When <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5b10d0f49f083903e183e801e6bb92d7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#112;&#32;&#92;&#103;&#101;&#113;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="51" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c74f36200f06a8623fbb848b97e7f4cc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#113;&#32;&#92;&#103;&#101;&#113;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="51" style="vertical-align: -4px;" /> then the normal distribution is very close, numerically, to the binomial distribution.</p> <p>Using the histogram way of drawing the binomial distribution, a good fit looks like that shown in Figure 7.1.</p> <div class="wp-caption aligncenter" id="attachment_1143" aria-describedby="caption-attachment-1143" style="width: 538px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp-7-Figure-2-.jpg"><img class="wp-image-1143" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp-7-Figure-2--300x180.jpg" alt="" width="538" height="323" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp-7-Figure-2--300x180.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp-7-Figure-2--768x461.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp-7-Figure-2--65x39.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp-7-Figure-2--225x135.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp-7-Figure-2--350x210.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp-7-Figure-2-.jpg 833w" /></a><div class="wp-caption-text" id="caption-attachment-1143">Figure 7.1: A normal distribution with mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0aac6121bc5291e87f59f90d3c519e17_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#32;&#61;&#32;&#110;&#112;" title="Rendered by QuickLaTeX.com" height="12" width="54" style="vertical-align: -4px;" /> and standard deviation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-86be9ff817ec994de2f290d6fc6b2701_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#32;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#112;&#113;&#125;" title="Rendered by QuickLaTeX.com" height="18" width="78" style="vertical-align: -6px;" /> is a good fit to the binomial distribution with the same mean and standard deviation as long as <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5b10d0f49f083903e183e801e6bb92d7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#112;&#32;&#92;&#103;&#101;&#113;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="51" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c74f36200f06a8623fbb848b97e7f4cc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#113;&#32;&#92;&#103;&#101;&#113;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="51" style="vertical-align: -4px;" />.</div></div> <p>A couple of things to note about this approximation:</p> <ol><li> Although the values of the normal and the binomial distributions match well at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> equal to integer values when  <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5b10d0f49f083903e183e801e6bb92d7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#112;&#32;&#92;&#103;&#101;&#113;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="51" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c74f36200f06a8623fbb848b97e7f4cc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#113;&#32;&#92;&#103;&#101;&#113;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="51" style="vertical-align: -4px;" />, the areas match not as well. A &#8220;correction for continuity&#8221; can be used to better make the areas match but we won&#8217;t be worrying about such fine details in our studies.</li> <li> We will use the normal approximation to the binomial make inferences on proportions.  In that case <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />, the probability of success will represent a proportion in a population.</li> </ol> </div></div>
<div class="chapter standard" id="chapter-slug-7-2-the-central-limit-theorem" title="7.2 The Central Limit Theorem"><div class="chapter-title-wrap"><h3 class="chapter-number">27</h3><h2 class="chapter-title">7.2 The Central Limit Theorem</h2></div><div class="ugc chapter-ugc"><p>Now we come to the <em>very important</em> central limit theorem. First, let&#8217;s introduce it intuitively as a process :</p> <ol><li>Suppose you have a large population (in theory infinite) with mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> and standard deviation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> (and any old shape).</li> <li>Suppose you have a large sample, size <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />, of values from that population. (In practise we will see that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-55b6365eeefde3987ac5e91e4d166397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#32;&#62;&#32;&#51;&#48;" title="Rendered by QuickLaTeX.com" height="12" width="52" style="vertical-align: 0px;" /> is large.) <strong>Take the mean, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-496355b36b392f38e7a72f2b3bc1b38f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="16" style="vertical-align: -4px;" />, of that sample</strong>. Put the sample back into the population<span class="footnote">This is redundant since the population is infinite, but for conceptual purposes imagine that you return the items to the population.</span></li> <li>Randomly pick another sample of size <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />. <strong>Compute the mean of the new sample, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6f496c04aaf348befe28e000cc1327dd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="14" width="17" style="vertical-align: -3px;" /></strong>. Return the sample to the population..</li> <li>Repeat step 3 an infinite number of times and <strong>build up your collection of sample means <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0726a8d3fbdb30f8f1752089d9115d32_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#95;&#123;&#105;&#125;" title="Rendered by QuickLaTeX.com" height="14" width="15" style="vertical-align: -3px;" /></strong>.</li> <li>Then<span class="footnote">More precisely, the distribution of sample means asymptotically approaches a normal distribution as <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f779f634df7735ddc73bedd032ccb239_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;" title="Rendered by QuickLaTeX.com" height="11" width="55" style="vertical-align: -1px;" />. But 30 is close enough to infinity for most practical purposes and the statistical inferential tests that we will study will assume that the distribution of sample means will be normal.</span> the distribution of the sample means will be <em>normal</em> will have a mean equal to the population mean, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" />, and will have a standard deviation of <p class="ql-center-displayed-equation" style="line-height: 36px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-24ef596d1826f37a6b84ab4b6b56c7ef_l3.svg" height="36" width="70" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#123;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;&#125;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is the population&#8217;s standard deviation. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea36ee14173eec9a0cd81790b4ac1081_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#123;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#125;&#32;&#61;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#47;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="88" style="vertical-align: -5px;" /> is known as the <em>standard error of the mean</em>.</p></li> </ol> <p>Now let&#8217;s visualize this same process using pictures :</p> <ul><li>Take a sample of size <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> from the population and compute the mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="11" style="vertical-align: 0px;" /> (see Figure 7.2a).</li> </ul> <p>&nbsp;</p> <div class="wp-caption aligncenter" id="attachment_1541" aria-describedby="caption-attachment-1541" style="width: 663px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig49png.png"><img class="wp-image-1541" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig49png-300x115.png" alt="" width="663" height="254" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig49png-300x115.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig49png-768x294.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig49png-65x25.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig49png-225x86.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig49png-350x134.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig49png.png 942w" /></a><div class="wp-caption-text" id="caption-attachment-1541">Figure 7.2a</div></div> <ul><li>Put them back and take <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> more data points.</li> <li>Do this over and over to get a bunch of values for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="11" style="vertical-align: 0px;" />. Those values for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="11" style="vertical-align: 0px;" /> will be distributed as shown in Figure 7.2b.</li> </ul> <p>&nbsp;</p> <div class="wp-caption aligncenter" id="attachment_1542" aria-describedby="caption-attachment-1542" style="width: 389px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig50png.jpg"><img class="wp-image-1542" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig50png-300x212.jpg" alt="" width="389" height="275" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig50png-300x212.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig50png-65x46.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig50png-225x159.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig50png-350x247.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig50png.jpg 531w" /></a><div class="wp-caption-text" id="caption-attachment-1542">Figure 7.2b</div></div> <p>The central limit theorem is our <em>fundamental sampling theory</em>. It tells us the <em>if</em> we know what the mean and standard deviation of a population<span class="footnote">In hypothesis testing we know what the mean of the population in the null hypothesis is.</span> are <em>then</em> we can assign the probabilities of getting a certain mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="11" style="vertical-align: 0px;" /> in a randomly selected sample from that population via a normal distribution of sample means that has the same mean as the population and a standard deviation equal to the standard error of the mean.</p> <p>To apply this central limit theorem sampling theory we will need to compute areas <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-650eb7688af6737ac325425b5c9a5982_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> under the normal distribution of means. In order to do that, so we can use the <strong>Standard Normal Distribution Table</strong>, we need to convert the values <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-489e19c6012a5ffe9030a57b2f9d0a46_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#40;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="22" style="vertical-align: -4px;" /> to a standard normal <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> using the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-tranformation as usual: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a59f1b0b11b1d97ef651dd04e28de8f0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#125;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#123;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="24" width="62" style="vertical-align: -8px;" />. So, <em>for the distribution of sample means</em> the appropriate <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation is :</p> <p class="ql-center-displayed-equation" style="line-height: 39px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-77dfaf0b5426892bd35078eca22562f1_l3.svg" height="39" width="78" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#32;&#122;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#125;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p><strong>Example 7.1</strong> : Assume that we know, say from SGI&#8217;s database, that the mean age of registered cars is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-afce20fc0a7c44cb4d40557bd80b4276_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#32;&#61;&#32;&#57;&#54;" title="Rendered by QuickLaTeX.com" height="16" width="52" style="vertical-align: -4px;" /> months and that the population standard deviation of the cars is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1614d40cd928e1eb25d73c98321658e1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#32;&#61;&#32;&#49;&#54;" title="Rendered by QuickLaTeX.com" height="13" width="52" style="vertical-align: -1px;" /> months. We make no assumption about the shape of the population distribution. Then, what is the answer to the following sampling theory question: What is the probability that the mean age is between 90 and 100 months in a sample of 36 cars?</p> <p><em>Solution</em> : The central limit theorem tells us that sample means will be distributed as shown in Figure 7.3.</p> <div class="wp-caption aligncenter" id="attachment_1543" aria-describedby="caption-attachment-1543" style="width: 475px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig51png.jpg"><img class="wp-image-1543" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig51png-300x153.jpg" alt="" width="475" height="242" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig51png-300x153.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig51png-65x33.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig51png-225x115.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig51png-350x178.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig51png.jpg 736w" /></a><div class="wp-caption-text" id="caption-attachment-1543">Figure 7.3 : Distribution of mean age from samples of 36 cars.</div></div> <p>Convert 90 and 100 to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-scores as usual:</p> <p class="ql-center-displayed-equation" style="line-height: 82px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4db6c54c203030f1f3e0acbcfee18109_l3.svg" height="82" width="311" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#122;&#40;&#57;&#48;&#41;&#32;&#38;&#61;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#125;&#123;&#40;&#92;&#115;&#105;&#103;&#109;&#97;&#47;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;&#41;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#57;&#48;&#45;&#57;&#54;&#125;&#123;&#50;&#46;&#54;&#54;&#55;&#125;&#32;&#61;&#32;&#45;&#50;&#46;&#50;&#53;&#32;&#92;&#92; &#122;&#40;&#49;&#48;&#48;&#41;&#32;&#38;&#61;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#48;&#48;&#45;&#57;&#54;&#125;&#123;&#50;&#46;&#54;&#54;&#55;&#125;&#32;&#61;&#32;&#49;&#46;&#53;&#48; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>Then, the required probability using the <strong>Standard Normal Distribution Table</strong> is</p> <p class="ql-center-displayed-equation" style="line-height: 71px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c31156bd3543fc0376bca58949f3bd24_l3.svg" height="71" width="219" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#80;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#65;&#40;&#50;&#46;&#50;&#53;&#41;&#32;&#43;&#32;&#65;&#40;&#49;&#46;&#53;&#48;&#41;&#32;&#92;&#92; &#38;&#32;&#61;&#32;&#38;&#32;&#48;&#46;&#52;&#56;&#55;&#56;&#32;&#43;&#32;&#48;&#46;&#52;&#51;&#51;&#50;&#32;&#92;&#92; &#38;&#32;&#61;&#32;&#38;&#32;&#48;&#46;&#57;&#50;&#49;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#53;&#105;&#110;&#125;&#32;&#40;&#57;&#50;&#46;&#49;&#92;&#37;&#41; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: right;">▢</p> </div></div>
<div class="part " id="part-slug-8-confidence-intervals"><div class="part-title-wrap"><h3 class="part-number">VIII</h3><h1 class="part-title">8. Confidence Intervals</h1></div><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-8-1-confidence-intervals-using-the-z-distribution" title="8.1 Confidence Intervals Using the z-Distribution"><div class="chapter-title-wrap"><h3 class="chapter-number">28</h3><h2 class="chapter-title">8.1 Confidence Intervals Using the z-Distribution</h2></div><div class="ugc chapter-ugc"> <p>With confidence intervals we will make our first statistical inference. Confidence intervals give us a direct inference about the population from a sample. The probability statement is one about hypotheses about the mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> of the population based on the mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x}" title="Rendered by QuickLaTeX.com" height="11" width="11" style="vertical-align: 0px;" /> and standard deviation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> of the sample. This is a fine point. The frequentist definition of probability gives no way to assign a probability to a hypothesis. How do you count hypotheses? The central limit theorem makes a statement about the sample means <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x}" title="Rendered by QuickLaTeX.com" height="11" width="11" style="vertical-align: 0px;" /> on the basis of a hypothesis about a population, about its mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> and standard deviation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />. If the population is fixed then the central limit theorem gives the results of counting sample means, frequentist probabilities. If we let <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-379db1fc1f84b7ce56b92463183097f9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: 0px;" /> represent a hypothesis about a population (i.e. that it is described by <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />) and let <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4b9ef1bbd23fd1b198de883813285620_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="D" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: 0px;" /> represent data (with mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x}" title="Rendered by QuickLaTeX.com" height="11" width="11" style="vertical-align: 0px;" />) then the central limit theorem gives the probability <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f898c5e8234a1271a2b69242b04e2214_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(D \mid H) = P(\overline{x} \mid \mu, \sigma)" title="Rendered by QuickLaTeX.com" height="18" width="178" style="vertical-align: -4px;" />. The confidence intervals that we’ll look at first give <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b09c107828537c9186f4f557e4ebe0da_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(H \mid D) = P(\mu \mid \overline{x}, \sigma)" title="Rendered by QuickLaTeX.com" height="18" width="178" style="vertical-align: -4px;" />. We’ll look at the recipe for computing confidence intervals for means first, then return to this discussion about probabilities for hypotheses.</p> <p>Our goal is to define a symmetric interval about the population mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> that will contain all potentially measured values of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> with a probability<span class="footnote">Because of this issue about probabilities of hypotheses, many prefer to say "confidence" and not probability. But we will learn enough about Bayesian probability to say "probability".</span> of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2be34166fee1eb4363ca064dc713fbc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cal{C}" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: 0px;" />.</p> <p>Typically <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2be34166fee1eb4363ca064dc713fbc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cal{C}" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: 0px;" /> will be</p> <p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-838f2127208e3181dc2e73f4e988d9cf_l3.svg" height="18" width="256" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ {\cal{C}} = 0.90 \hspace{.5in} \mbox{(90\% confidence)}\]" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-68c4cae6d55f8ef5b9fe9a460e7c0be1_l3.svg" height="18" width="256" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ {\cal{C}} = 0.95 \hspace{.5in} \mbox{(95\% confidence)}\]" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6c5f17a8838bf2514bce1c9c4b1e199b_l3.svg" height="18" width="256" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ {\cal{C}} = 0.99 \hspace{.5in} \mbox{(99\% confidence)}\]" title="Rendered by QuickLaTeX.com" /></p> <p>The assumptions that we need in order to use the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distribution to compute confidence intervals for means are :</p> <ol><li>The population standard deviation, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />, is known (a somewhat artificial assumption since it is usually not known in an experimental situation) <em>or</em></li> <li>The sample size is greater than (or equal to) 30, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6dc0fb4ca3a9794b3d2c49ccdb189417_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n \geq 30" title="Rendered by QuickLaTeX.com" height="15" width="52" style="vertical-align: -3px;" /> and we use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2e8af69cfaeef15822258f99ad3934ad_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma = s" title="Rendered by QuickLaTeX.com" height="8" width="42" style="vertical-align: 0px;" />, the sample standard deviation in our confidence interval formula.</li> </ol> <p><em>Definition</em> : Let <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-026f31b5ef366a2f7452e4e656e5f90a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\cal{C}} = z_{\alpha/2}" title="Rendered by QuickLaTeX.com" height="15" width="72" style="vertical-align: -7px;" /> where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f2d140e755774016ee095e157e6e7f4e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="{\cal{C}} = 1 - \alpha" title="Rendered by QuickLaTeX.com" height="13" width="76" style="vertical-align: -1px;" /> be the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-value, from the <strong>Standard Normal Distribution Table</strong> that corresponds to an area, between 0 and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0dff4f6805dbef3858f81d50c5029e0b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\cal{C}}" title="Rendered by QuickLaTeX.com" height="11" width="16" style="vertical-align: -3px;" /> of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fc42eb2182b11384aabdd7bdd9ab3e87_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="{\cal{C}}/2" title="Rendered by QuickLaTeX.com" height="18" width="27" style="vertical-align: -5px;" /> as shown in Figure 8.1.</p> <div class="wp-caption aligncenter" id="attachment_1559" aria-describedby="caption-attachment-1559" style="width: 300px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54apng.png"><img class="wp-image-1559 size-medium" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54apng-300x188.png" alt="" width="300" height="188" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54apng-300x188.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54apng-65x41.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54apng-225x141.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54apng-350x219.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54apng.png 519w" /></a><div class="wp-caption-text" id="caption-attachment-1559">Figure 8.1 : The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distribution areas of interest associated with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-026f31b5ef366a2f7452e4e656e5f90a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\cal{C}} = z_{\alpha/2}" title="Rendered by QuickLaTeX.com" height="15" width="72" style="vertical-align: -7px;" />.</div></div> <p>To get our confidence interval we simply inverse <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform the picture of Figure 8.1, taking the mean of 0 to the sample mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> and the standard deviation of 1 to the standard error <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c3c40520f82fde742b32bfd113cbfb64_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma/\sqrt{n}" title="Rendered by QuickLaTeX.com" height="19" width="45" style="vertical-align: -5px;" /> as shown in Figure 8.2.</p> <div class="wp-caption aligncenter" id="attachment_1613" aria-describedby="caption-attachment-1613" style="width: 300px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54bpng.jpg"><img class="wp-image-1613 size-medium" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54bpng-300x177.jpg" alt="" width="300" height="177" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54bpng-300x177.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54bpng-65x38.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54bpng-225x133.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54bpng-350x207.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54bpng.jpg 569w" /></a><div class="wp-caption-text" id="caption-attachment-1613">Figure 8.2 : The inverse <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation of Figure 8.1 gives the confidence interval for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" />.</div></div> <p>So here is our recipe from Figure 8.2. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2be34166fee1eb4363ca064dc713fbc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cal{C}" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: 0px;" />-confidence interval for the mean, under one of the two assumptions given above, is :</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ff033b998eee41894dba0e97c4ea9d76_l3.svg" height="43" width="299" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \bar{x} - z_{\alpha/2} \left( \frac{\sigma}{\sqrt{n}}\right) &lt; \mu &lt; \bar{x} + z_{\alpha/2} \left( \frac{\sigma}{\sqrt{n}}\right) \]" title="Rendered by QuickLaTeX.com" /></p> <p>or using notation that we will use as a standard way of denoting symmetric confidence intervals</p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">(8.1) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-514c793e7ce7f90964b3539453842cc5_l3.svg" height="16" width="150" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} \bar{x} - E &lt; \mu &lt; \bar{x} + E \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>where</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7300cd26bfb308a17e362fa00a720e33_l3.svg" height="43" width="120" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ E = z_{\cal{C}} \left( \frac{\sigma}{\sqrt{n}}\right). \]" title="Rendered by QuickLaTeX.com" /></p> <p>The notation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0dff4f6805dbef3858f81d50c5029e0b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\cal{C}}" title="Rendered by QuickLaTeX.com" height="11" width="16" style="vertical-align: -3px;" /> is more convenient for us than <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-22f9c182dd6a407412d7002619fc16e7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\alpha/2}" title="Rendered by QuickLaTeX.com" height="15" width="31" style="vertical-align: -7px;" /> because we will use the <strong><em>t</em> Distribution Table</strong> in the <a href="#back-matter-appendix-tables" target="_blank" rel="noopener noreferrer">Appendix</a> to find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0dff4f6805dbef3858f81d50c5029e0b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\cal{C}}" title="Rendered by QuickLaTeX.com" height="11" width="16" style="vertical-align: -3px;" /> very quickly. We could equally well write</p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-93dce40f92756ed07c065fbac8fb1b5f_l3.svg" height="16" width="80" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \mu = \bar{x} \pm E \]" title="Rendered by QuickLaTeX.com" /></p> <p>but we will use Equation (8.1) because it explicitly gives the bounds for the confidence interval.</p> <p>Notice how the confidence interval is <em>backwards</em>&nbsp;from the picture that the central limit theorem gives, the picture shown in Figure 8.3. We actually had no business using the inverse <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b890659bd290935fa1fb047e50a4647c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu = (z - \bar{x})/(\sigma/\sqrt{n})" title="Rendered by QuickLaTeX.com" height="19" width="156" style="vertical-align: -5px;" /> to arrive at Figure 8.2. It reverses the roles of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" />. We’ll return to this point after we work through the mechanics of an example.</p> <div class="wp-caption aligncenter" id="attachment_1614" aria-describedby="caption-attachment-1614" style="width: 300px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54png.jpg"><img class="wp-image-1614 size-medium" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54png-300x172.jpg" alt="" width="300" height="172" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54png-300x172.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54png-65x37.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54png-225x129.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54png-350x201.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig54png.jpg 572w" /></a><div class="wp-caption-text" id="caption-attachment-1614">Figure 8.3 : The central limit theorem is about distributions of sample means.</div></div> <p><strong>Example 8.2</strong> : What is the 95<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> confidence interval for student age if the population <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is 2 years, sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-68d88a3196950b4dc580dc1486966561_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n = 50" title="Rendered by QuickLaTeX.com" height="13" width="52" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4e602b08699e3ba6e404ccb989cf6277_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x} = 23.2" title="Rendered by QuickLaTeX.com" height="12" width="65" style="vertical-align: 0px;" />?</p> <p><em>Solution</em> : So <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cfdc81ce81719b6e4aae36f8047370f4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="{\cal{C}} = 0.95" title="Rendered by QuickLaTeX.com" height="13" width="65" style="vertical-align: 0px;" />. First write down the formula prescription so you can see with numbers you need:</p> <p class="ql-center-displayed-equation" style="line-height: 36px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2d1c10c3888da01dbf1c5785af71c62a_l3.svg" height="36" width="371" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \bar{x} - E &lt; \mu &lt; \bar{x} + E \mbox{\hspace{2em}where\hspace{2em}} E = z_{95\%} \frac{\sigma}{\sqrt{n}}. \]" title="Rendered by QuickLaTeX.com" /></p> <p>&nbsp;</p> <p>First determine <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-026f31b5ef366a2f7452e4e656e5f90a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\cal{C}} = z_{\alpha/2}" title="Rendered by QuickLaTeX.com" height="15" width="72" style="vertical-align: -7px;" />. With the tables in the Appendices, there are two ways to do this. The first way is to use the <strong>Standard Normal Distribution Table</strong> noting that we need the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> associated with a table area of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-eba175859d5f1b442bba3be25244d4e8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="0.95/2 = 0.475" title="Rendered by QuickLaTeX.com" height="18" width="113" style="vertical-align: -5px;" />. Using the table backwards we find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-60fefd6cbdcb4a732c74378f819d126f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\cal{C}} = 1.96" title="Rendered by QuickLaTeX.com" height="15" width="73" style="vertical-align: -3px;" />. The <strong>second way</strong>, <em>the recommended way</em> especially during exams, is to use the <strong><em>t</em> Distribution Table</strong>. Simply find the column for the 95<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> confidence level and read the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> from the last line of the table. We quickly find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5e347f8ad1e572d96e49b113234a571d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{95\%} = 1.960" title="Rendered by QuickLaTeX.com" height="17" width="99" style="vertical-align: -5px;" />.</p> <p>Either way we now find</p> <p class="ql-center-displayed-equation" style="line-height: 40px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-269e51017fa06e3a1788dda1e98f45f0_l3.svg" height="40" width="166" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ E = 1.96( \frac{2}{\sqrt{50}}) = 0.6\]" title="Rendered by QuickLaTeX.com" /></p> <p>so</p> <p class="ql-center-displayed-equation" style="line-height: 69px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2aa2f98e329e01e089e99f3b043329e3_l3.svg" height="69" width="232" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{eqnarray*} \bar{x} - E &amp;&lt; \mu &lt;&amp; \bar{x} + E\\ 23.2 - 0.6 &amp;&lt; \mu &lt;&amp; 23.2 + 0.6 \\ 22.6 &amp;&lt; \mu &lt;&amp; 23.8 \end{eqnarray*}" title="Rendered by QuickLaTeX.com" /></p> <p>with 95<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> confidence.</p> <p style="text-align: right;">▢</p> </div></div>
<div class="chapter standard" id="chapter-slug-8-2-bayesian-statistics" title="8.2 **Bayesian Statistics"><div class="chapter-title-wrap"><h3 class="chapter-number">29</h3><h2 class="chapter-title">8.2 **Bayesian Statistics</h2></div><div class="ugc chapter-ugc"><p>Now that we&#8217;ve seen how easy it is to compute confidence intervals, let&#8217;s give it a proper probabilistic meaning. To extend probability from the frequentist definition to the Bayesian definition, we need <em>Bayes&#8217; rule</em>. Bayes&#8217; rule is, for events <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-25b206f25506e6d6f46be832f7119ffa_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#65;" title="Rendered by QuickLaTeX.com" height="12" width="13" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-770fd1447ccf2fc229801b486b0d8f8a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#66;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> :</p> <p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a408fecd2b4017a2c3de988af98fce03_l3.svg" height="18" width="251" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#80;&#40;&#65;&#32;&#92;&#109;&#105;&#100;&#32;&#66;&#41;&#32;&#80;&#40;&#66;&#41;&#32;&#61;&#32;&#80;&#40;&#66;&#32;&#92;&#109;&#105;&#100;&#32;&#65;&#41;&#32;&#80;&#40;&#65;&#41;&#46; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>Study Figure 8.4 to convince yourself that Bayes&#8217; rule is true. Notice that</p> <p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d0d6a84b55df08e20915a69c29d6308c_l3.svg" height="42" width="170" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#80;&#40;&#65;&#32;&#92;&#109;&#105;&#100;&#32;&#66;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#80;&#40;&#65;&#32;&#92;&#99;&#97;&#112;&#32;&#66;&#41;&#125;&#123;&#80;&#40;&#66;&#41;&#125; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>and</p> <p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-471c4128056ebfd327db879633e2a5e3_l3.svg" height="42" width="177" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91; &#80;&#40;&#66;&#32;&#92;&#109;&#105;&#100;&#32;&#65;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#80;&#40;&#65;&#32;&#92;&#99;&#97;&#112;&#32;&#66;&#41;&#125;&#123;&#80;&#40;&#65;&#41;&#125;&#46; &#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>So, equating <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2c9dc7596f3e6abfa057ba5586d93883_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#65;&#32;&#92;&#99;&#97;&#112;&#32;&#66;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="74" style="vertical-align: -4px;" /> from each of those two perspectives, we get Bayes&#8217; rule.</p> <p>If we let <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0372d3987fecfbd485e0c21249074d9a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#65;&#61;&#72;" title="Rendered by QuickLaTeX.com" height="12" width="53" style="vertical-align: 0px;" /> (hypothesis) and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-62735a25b0b511b41caa20c8ac3696b9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#66;&#61;&#68;" title="Rendered by QuickLaTeX.com" height="12" width="53" style="vertical-align: 0px;" /> (data), Bayes&#8217; rule gives us a way to define the probability of hypothesis through</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">(8.2) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-106226fc9cf92700157aa4f00b730070_l3.svg" height="43" width="247" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#80;&#40;&#72;&#32;&#92;&#109;&#105;&#100;&#32;&#68;&#41;&#32;&#61;&#32;&#80;&#40;&#68;&#32;&#92;&#109;&#105;&#100;&#32;&#72;&#41;&#92;&#108;&#101;&#102;&#116;&#91;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#80;&#40;&#72;&#41;&#125;&#123;&#80;&#40;&#68;&#41;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#93;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>The quantity <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-dea90f9b0eb930536fa2afa94954c5a8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#91;&#80;&#40;&#72;&#41;&#47;&#80;&#40;&#68;&#41;&#93;" title="Rendered by QuickLaTeX.com" height="19" width="102" style="vertical-align: -5px;" /> is known as the <em>prior probability</em> of the data relative to the hypothesis and is something that can be computed in theory if probabilities are assigned in a reasonable manner. The specification of prior probabilities is a contentious issue with the Bayesian approach. Really, it represents a prior <em>belief</em>. The quantity <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0092487f27e88cbbf5778350a9e44950_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#68;&#32;&#92;&#109;&#105;&#100;&#32;&#72;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="73" style="vertical-align: -4px;" /> is what sampling theory, like the central limit theorem, gives and is known as the <em>likelihood</em>. Finally the quantity <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-87771ae7a0e6a14f215d13ba94b352e3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#72;&#32;&#92;&#109;&#105;&#100;&#32;&#68;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="73" style="vertical-align: -4px;" /> is known as the <em>posterior probability</em>. Equation (8.2) is an expression about probability distributions as well as individual probabilities (just allow <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-379db1fc1f84b7ce56b92463183097f9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4b9ef1bbd23fd1b198de883813285620_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#68;" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: 0px;" /> to vary).</p> <div class="wp-caption aligncenter" id="attachment_1616" aria-describedby="caption-attachment-1616" style="width: 232px"><img class="wp-image-1616 size-medium" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/bayespng-232x300.jpg" alt="" width="232" height="300" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/bayespng-232x300.jpg 232w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/bayespng-791x1024.jpg 791w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/bayespng-768x994.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/bayespng-1187x1536.jpg 1187w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/bayespng-1583x2048.jpg 1583w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/bayespng-65x84.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/bayespng-225x291.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/bayespng-350x453.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/bayespng.jpg 1700w" /><div class="wp-caption-text" id="caption-attachment-1616">Figure 8.4 : Venn diagram illustration of Bayes rule.<span style="orphans: 1; text-align: center; font-size: 1em;">                         </span></div></div> <p>If we assign <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7d9aad220aad8844d6a594bfd0401735_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#91;&#80;&#40;&#72;&#41;&#47;&#80;&#40;&#68;&#41;&#93;&#32;&#61;&#32;&#49;" title="Rendered by QuickLaTeX.com" height="19" width="135" style="vertical-align: -5px;" /> for the prior probability then <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ebdbb98f618780b496c41edefb24a4ee_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#72;&#32;&#92;&#109;&#105;&#100;&#32;&#68;&#41;&#32;&#61;&#32;&#80;&#40;&#68;&#32;&#92;&#109;&#105;&#100;&#32;&#72;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="170" style="vertical-align: -4px;" />. We can switch the roles of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4b9ef1bbd23fd1b198de883813285620_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#68;" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-379db1fc1f84b7ce56b92463183097f9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: 0px;" />! Of course <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7d9aad220aad8844d6a594bfd0401735_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#91;&#80;&#40;&#72;&#41;&#47;&#80;&#40;&#68;&#41;&#93;&#32;&#61;&#32;&#49;" title="Rendered by QuickLaTeX.com" height="19" width="135" style="vertical-align: -5px;" /> is not a probability distribution because the area under a function whose value is always 1 is infinite. The area under a probability distribution must be 1. So <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7d9aad220aad8844d6a594bfd0401735_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#91;&#80;&#40;&#72;&#41;&#47;&#80;&#40;&#68;&#41;&#93;&#32;&#61;&#32;&#49;" title="Rendered by QuickLaTeX.com" height="19" width="135" style="vertical-align: -5px;" /> is an <em>improper distribution</em> (as a function of either <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-379db1fc1f84b7ce56b92463183097f9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: 0px;" /> or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4b9ef1bbd23fd1b198de883813285620_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#68;" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: 0px;" />). But note that an improper distribution times a proper distribution here gives rise to a proper distribution. With this slight of hand, we can give confidence intervals a probabilistic interpretation.</p> </div></div>
<div class="chapter standard" id="chapter-slug-8-3-the-t-distributions" title="8.3 The t-Distributions"><div class="chapter-title-wrap"><h3 class="chapter-number">30</h3><h2 class="chapter-title">8.3 The t-Distributions</h2></div><div class="ugc chapter-ugc"> <p>As a broad introduction, the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-distributions are family of distributions that give different approximations to the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distribution as shown in Figure 8.5.</p> <div class="wp-caption aligncenter" id="attachment_1618" aria-describedby="caption-attachment-1618" style="width: 300px"><img class="wp-image-1618 size-medium" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig56png-300x132.jpg" alt="" width="300" height="132" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig56png-300x132.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig56png-65x29.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig56png-225x99.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig56png-350x154.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig56png.jpg 633w" /><div class="wp-caption-text" id="caption-attachment-1618">Figure 8.5 : The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-distributions are a family of distributions, labeled here by their degrees of freedom <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-84f850cb7d68cf5b0b1a685b849a8674_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> as in <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6a1edb144131f7cddb80ea390bbd485d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\nu}" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -3px;" />.</div></div> <p>As the degrees of freedom, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-84f850cb7d68cf5b0b1a685b849a8674_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" />, increases, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6a1edb144131f7cddb80ea390bbd485d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\nu}" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -3px;" /> become closer to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-285916c99ca56d27b8fd485de7a5edfc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\lim_{\nu \rightarrow \infty} t_{\nu} = z" title="Rendered by QuickLaTeX.com" height="17" width="111" style="vertical-align: -4px;" />. In practice, as reflected in the <strong><em>t</em> Distribution Table</strong>, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0b666551dbf3f5be7d61c58f02730453_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{30}" title="Rendered by QuickLaTeX.com" height="15" width="20" style="vertical-align: -3px;" /> is very very close to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />.</p> <p>The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-distributions arise as a corollary to the central limit theorem; they give the distribution of sample means when knowledge of the population <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is replaced by using the sample mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" />. When we encounter the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> distribution later, we will give a more exact mathematical specification of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-distributions.</p> <p>Similar, to the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distribution case, the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2be34166fee1eb4363ca064dc713fbc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cal{C}" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: 0px;" /> confidence interval for the mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> for small <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> samples is given by</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-259111c2db184fcf5110fed6bdbbd12b_l3.svg" height="16" width="150" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \bar{x} - E &lt; \mu &lt; \bar{x} + E\]" title="Rendered by QuickLaTeX.com" /></p> <p>where, now</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-91ace8668697ecee0fdfbc79d058a899_l3.svg" height="43" width="129" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[E = t_{\nu,\cal{C}} \left( \frac{s}{\sqrt{n}} \right).\]" title="Rendered by QuickLaTeX.com" /></p> <p>With this new formula for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-764e1c770271f92700e1a4fbce46c668_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="E" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> we have replaced <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> in comparison with the formula we used in <a href="#chapter-8-1-confidence-intervals-using-the-z-distribution" target="_blank" rel="noopener noreferrer">Section 8.1: Confidence Intervals using the z-distribution</a> and, of course, replaced <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0dff4f6805dbef3858f81d50c5029e0b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\cal{C}}" title="Rendered by QuickLaTeX.com" height="11" width="16" style="vertical-align: -3px;" /> with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-86574ea11f7bb637c8c3ff94b2559833_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\nu,\cal{C}}" title="Rendered by QuickLaTeX.com" height="18" width="25" style="vertical-align: -6px;" />. Some books use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-103eb562570cecc76ddac69096f0a0cf_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\nu,\cal{C}} = t_{\nu,\alpha/2}" title="Rendered by QuickLaTeX.com" height="19" width="90" style="vertical-align: -7px;" /> like the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0dff4f6805dbef3858f81d50c5029e0b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\cal{C}}" title="Rendered by QuickLaTeX.com" height="11" width="16" style="vertical-align: -3px;" /> of Section 8.1. We use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-86574ea11f7bb637c8c3ff94b2559833_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\nu,\cal{C}}" title="Rendered by QuickLaTeX.com" height="18" width="25" style="vertical-align: -6px;" /> because we’ll look up its value in the <strong><em>t</em> Distribution Table</strong> in the column for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2be34166fee1eb4363ca064dc713fbc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cal{C}" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: 0px;" /> confidence intervals (just like we did with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />) and with the degrees of freedom <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-84f850cb7d68cf5b0b1a685b849a8674_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> specifying the row. The formula for the degrees of freedom in this case is :</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 13px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6e6ea99dbf2bf6ebd39ba969bd5f1d53_l3.svg" height="13" width="79" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\nu = n - 1.\]" title="Rendered by QuickLaTeX.com" /></p> <p>The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-86574ea11f7bb637c8c3ff94b2559833_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\nu,\cal{C}}" title="Rendered by QuickLaTeX.com" height="18" width="25" style="vertical-align: -6px;" /> specify a probability <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2be34166fee1eb4363ca064dc713fbc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cal{C}" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: 0px;" /> as shown in Figure 8.6. As before, the inverse <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform, in the form <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9bb3009a03807f518da7a543704ed3ea_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x = t_{\nu,{\cal{C}}} s + \bar{x}" title="Rendered by QuickLaTeX.com" height="18" width="100" style="vertical-align: -6px;" /> from the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-distribution on the left of Figure 8.6 to the distribution on the right of Figure 8.6 leads to our confidence interval formula for small means. And as before we should justify using that transform from a Bayesian perspective.</p> <div class="wp-nocaption alignnone size-medium wp-image-1620"><img class="alignnone size-medium wp-image-1620" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig57png-300x145.jpg" alt="" width="300" height="145" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig57png-300x145.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig57png-65x31.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig57png-225x109.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig57png-350x169.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig57png.jpg 628w" /> → inverse <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform → <img class="alignnone size-medium wp-image-1621" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig57apng-300x144.jpg" alt="" width="300" height="144" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig57apng-300x144.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig57apng-65x31.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig57apng-225x108.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig57apng-350x168.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig57apng.jpg 633w" /></div> <p style="text-align: center;"><em>Figure 8.6 : Derivation of confidence intervals for means of small samples.</em></p> <p><strong>Example 8.2</strong> : Given the following data:</p> <p class="ql-center-displayed-equation" style="line-height: 14px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-689d1c2b69affbc097946332bd1ed4d8_l3.svg" height="14" width="354" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[5460 \hspace{.15in} 5900 \hspace{.15in} 6090 \hspace{.15in} 6310 \hspace{.15in} 7160 \hspace{.15in} 8440 \hspace{.15in} 9930\]" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;">find the 99% confidence interval for the mean.</p> <p><em>Solution</em> : First count <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b79a19e31158262c69ce4a9f9d2aa627_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n = 7" title="Rendered by QuickLaTeX.com" height="13" width="43" style="vertical-align: 0px;" /> and then, with your stats calculator compute</p> <p class="ql-center-displayed-equation" style="line-height: 14px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9f4e2f6fa5370e2118e29aa018ba328f_l3.svg" height="14" width="233" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \bar{x} = 7041.4 \hspace{.15in} \text{and} \hspace{.15in} s = 1610.3. \]" title="Rendered by QuickLaTeX.com" /></p> <p>Using the <strong><em>t</em> Distribution Table</strong> with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c06fd77bb7a809cc363234768fdeb7cc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu = n-1 = 6" title="Rendered by QuickLaTeX.com" height="13" width="107" style="vertical-align: -1px;" /> in the 99% confidence interval column, find</p> <p class="ql-center-displayed-equation" style="line-height: 19px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5ce573e2bdfa219ef78f164fd580d0f9_l3.svg" height="19" width="180" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ t_{n-1, {\cal{C}}} = t_{6,99\%} = 3.707. \]" title="Rendered by QuickLaTeX.com" /></p> <p>With these numbers, compute</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-75d19f4368eccea5249c085db2099c8e_l3.svg" height="43" width="360" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ E = t_{n-1,{\cal{C}}} \left( \frac{s}{\sqrt{n}} \right) = 3.707 \left( \frac{1610.3}{\sqrt{7}} \right) = 2256.2 \]" title="Rendered by QuickLaTeX.com" /></p> <p>so</p> <p class="ql-center-displayed-equation" style="line-height: 69px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-af1d3f5dfc25d5cdfbd02be1df44702c_l3.svg" height="69" width="336" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{eqnarray*} \bar{x} - E \:\:&lt; &amp; \mu &amp; &lt; \:\:\bar{x} + E \\ 7041.4 - 2256.2\:\: &lt; &amp; \mu &amp; &lt; \:\: 7041.4 + 2256.2 \\ 4785.2\:\: &lt; &amp; \mu &amp; &lt; \:\:9297.6 \end{eqnarray*}" title="Rendered by QuickLaTeX.com" /></p> <p>is the 99<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> confidence interval for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" />.</p> <p style="text-align: right;">▢</p> </div></div>
<div class="chapter standard" id="chapter-slug-8-4-proportions-and-confidence-intervals-for-proportions" title="8.4 Proportions and Confidence Intervals for Proportions"><div class="chapter-title-wrap"><h3 class="chapter-number">31</h3><h2 class="chapter-title">8.4 Proportions and Confidence Intervals for Proportions</h2></div><div class="ugc chapter-ugc"> <p>We will now make use of the approximation of the binomial distribution by the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distribution given in <a href="#chapter-7-1-using-the-normal-distribution-to-approximate-the-binomial-distribution" target="_blank" rel="noopener noreferrer">Section 7.1: Using the Normal Distribution to Approximate the Binomial Distribution</a>. As usual, the confidence interval will switch the roles of population and sample quantities. The recipe will be laid out first, then we will connect it to what you know about the binomial distribution.</p> <p>First some definitions. Let <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d4ee28752517d6062a3ca0314890342d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="X" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: 0px;" /> be the number of items in a population of size <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5793832f979c2268e3694c246d53b1bb_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="N" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: 0px;" /> that have a given quality. (e.g. the number of females in a population; or the number of people at the U of S wearing yellow sweaters). Then the proportion of the population having the given quality is</p> <p class="ql-center-displayed-equation" style="line-height: 37px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8825bd58ff0540730e1348b39facf563_l3.svg" height="37" width="52" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ p = \frac{X}{N} \]" title="Rendered by QuickLaTeX.com" /></p> <p>Given a sample from the population of size <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />, the best estimate for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> is:</p> <p class="ql-center-displayed-equation" style="line-height: 32px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fefb6b7a0dd880057af2baa32b1f5f2f_l3.svg" height="32" width="47" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\hat{p} = \frac{x}{n}\]" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> is the number of items in the sample having the given quality. To go along with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1479a87898589a2cfb5f4d46853bb47a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\hat{p}" title="Rendered by QuickLaTeX.com" height="17" width="10" style="vertical-align: -4px;" /> we also have</p> <p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-08465867a32bd3face76afa4aeea311b_l3.svg" height="17" width="72" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\hat{q} = 1 -\hat{p}\]" title="Rendered by QuickLaTeX.com" /></p> <p>which is is the proportion of items in the sample without the given quality.</p> <p>To compute an <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2be34166fee1eb4363ca064dc713fbc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cal{C}" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: 0px;" /> confidence interval for a proportion <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> we need to compute</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c5a78568bf0f963b24b4637ce1b23ebd_l3.svg" height="43" width="94" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ E = z_{\cal{C}} \sqrt{\frac{\hat{p} \hat{q}}{n}}\]" title="Rendered by QuickLaTeX.com" /></p> <p>and it must be true that both <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1aec68ef8edbbfe173239ca4b51e5081_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n\hat{p} \geq 5" title="Rendered by QuickLaTeX.com" height="17" width="51" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-aad683fdd324aa31a0f5d9c044db75dd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n\hat{q} \geq 5" title="Rendered by QuickLaTeX.com" height="17" width="51" style="vertical-align: -4px;" /> (otherwise we need to use the binomial distribution directly).</p> <p>With <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-764e1c770271f92700e1a4fbce46c668_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="E" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" />, the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2be34166fee1eb4363ca064dc713fbc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cal{C}" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: 0px;" /> confidence interval for a proportion is given by</p> <p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bac33951a8b9b7f7208dabeaf37174c2_l3.svg" height="17" width="150" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ \hat{p} - E &lt; p &lt; \hat{p} + E.\]" title="Rendered by QuickLaTeX.com" /></p> <p>To derive the proportions confidence interval formula we’ll begin with the sampling theory given by the binomial distribution and the corresponding <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-approximation. Then we’ll switch the roles of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1479a87898589a2cfb5f4d46853bb47a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\hat{p}" title="Rendered by QuickLaTeX.com" height="17" width="10" style="vertical-align: -4px;" />. Let</p> <p class="ql-center-displayed-equation" style="line-height: 32px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-358143fbbc70bf184cf7e82ce1df0bd2_l3.svg" height="32" width="137" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[x_{\rm pop} = \frac{n}{N} X = np\]" title="Rendered by QuickLaTeX.com" /></p> <p>be the mean, the expected value, of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> that you expect to find in a sample of size <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> randomly selected from the population with a proportion <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> of items of interest. This is true because <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> is also the probability of randomly selecting an item of interest (the probability of success) from the population as per what we did in Chapter 4. The binomial distribution tells you the probability of getting different numbers <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> of items of interest in your sample given <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />. The binomial distribution that describes our situation is shown in Figure 8.7; it has a standard deviation of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-86be9ff817ec994de2f290d6fc6b2701_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma = \sqrt{npq}" title="Rendered by QuickLaTeX.com" height="18" width="78" style="vertical-align: -6px;" />.</p> <div class="wp-caption aligncenter" id="attachment_1631" aria-describedby="caption-attachment-1631" style="width: 300px"><img class="wp-image-1631 size-medium" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig58png-300x222.jpg" alt="" width="300" height="222" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig58png-300x222.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig58png-65x48.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig58png-225x167.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig58png-350x259.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig58png.jpg 719w" /><div class="wp-caption-text" id="caption-attachment-1631">Figure 8.7 : The binomial distribution relevant to forming a sample of size <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> items of interest from a population with a proportion <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> of items of interest. The normal distribution with the same <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is shown.</div></div> <p>Moving to the normal approximation, we have the picture of Figure 8.8.</p> <div class="wp-caption aligncenter" id="attachment_1626" aria-describedby="caption-attachment-1626" style="width: 300px"><img class="wp-image-1626 size-medium" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig58apng-300x221.jpg" alt="" width="300" height="221" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig58apng-300x221.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig58apng-65x48.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig58apng-225x165.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig58apng-350x257.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig58apng.jpg 725w" /><div class="wp-caption-text" id="caption-attachment-1626">Figure 8.8 : The normal distribution relevant to forming a sample of size <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> items of interest from a population with a proportion <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> of items of interest. The boundaries of the area <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2be34166fee1eb4363ca064dc713fbc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cal{C}" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: 0px;" /> follow from an inverse <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distribution to a normal distribution of mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> and standard deviation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0432e86f1c5afcd60a2e452551f5536e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x = z \sigma + \mu" title="Rendered by QuickLaTeX.com" height="15" width="86" style="vertical-align: -4px;" />.</div></div> <p>Figure 8.8 says :</p> <p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3ce61e971aabe012a534f9fb44861cad_l3.svg" height="42" width="299" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{eqnarray*} \mu - z_{\cal{C}} \sigma \:\: &lt; &amp; x &amp; &lt; \:\: \mu + z_{\cal{C}} \sigma \\ np - z_{\cal{C}} \sqrt{npq} \:\: &lt; &amp; x &amp; &lt; \:\: np + z_{\cal{C}} \sqrt{npq} \end{eqnarray*}" title="Rendered by QuickLaTeX.com" /></p> <p>with a (frequentist) probability of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2be34166fee1eb4363ca064dc713fbc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cal{C}" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: 0px;" />. This is our sampling theory. Divide by <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />:</p> <p class="ql-center-displayed-equation" style="line-height: 92px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4637016c19ae43e7f79e17dc8f269e55_l3.svg" height="92" width="275" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{eqnarray*} p - z_{\cal{C}} \sqrt{\frac{pq}{n}} &amp; &lt; &amp; \frac{x}{n} \:\: &lt; \:\: p + z_{\cal{C}} \sqrt{\frac{pq}{n}}\\ p - z_{\cal{C}} \sqrt{\frac{pq}{n}} &amp; &lt; &amp; \hat{p} \:\: &lt; \:\: p + z_{\cal{C}} \sqrt{\frac{pq}{n}} \end{eqnarray*}" title="Rendered by QuickLaTeX.com" /></p> <p>Swapping the roles of the population and sample, we arrive at the confidence interval formula :</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2059f833a53148b540708572c973dc52_l3.svg" height="43" width="266" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\hat{p} - z_{\cal{C}} \sqrt{\frac{\hat{p}\hat{q}}{n}} \:\: &lt; \:\: p \:\: &lt; \:\: \hat{p} + z_{\cal{C}}\sqrt{\frac{\hat{p}\hat{q}}{n}}.\]" title="Rendered by QuickLaTeX.com" /></p> <p>Time for a worked example.</p> <p><strong>Example 8.3</strong> : A sample of 500 nursing applications included 60 men. Find the 90% confidence interval of the true proportion of men who applied to the nursing program.</p> <p><em>Solution</em> : From the <strong><em>t</em> Distribution Table</strong>, look up</p> <p class="ql-center-displayed-equation" style="line-height: 15px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae064b37a6ecda88e2be51074d1bfd9d_l3.svg" height="15" width="71" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[z_{\cal{C}} = 1.65\]" title="Rendered by QuickLaTeX.com" /></p> <p>and compute</p> <p class="ql-center-displayed-equation" style="line-height: 36px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fa52216eaa27187ee404505d917cfb68_l3.svg" height="36" width="156" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\hat{p} = \frac{x}{n} = \frac{60}{500} = 0.12\]" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-35106899fd8d924f8623edc77e9536ba_l3.svg" height="17" width="213" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\hat{q} = 1 -\hat{p} = 1 - 0.12 = 0.88\]" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2a3e7a053270b6daf9b93145961fc208_l3.svg" height="43" width="370" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[E = z_{\alpha/2} \cdot \sqrt{\frac{\hat{p}\hat{q}}{n}} = 1.65\sqrt{\frac{(0.12) \cdot (0.88)}{500}} = 0.024. \]" title="Rendered by QuickLaTeX.com" /></p> <p>Then</p> <p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ca2834fe573eb7596a8aeafbe54e8326_l3.svg" height="17" width="147" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\hat{p}+E &lt; p &lt; \hat{p}-E\]" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-213315c9d4289c4372c79721163d4a1d_l3.svg" height="16" width="244" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[0.12-0.024 &lt; p &lt; 0.12+0.024\]" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e412c2f6a7f080e6816b3326c613a69c_l3.svg" height="16" width="138" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[0.096 &lt; p &lt; 0.144\]" title="Rendered by QuickLaTeX.com" /></p> <p>is the confidence interval with 90% confidence.</p> <p style="text-align: right;">▢</p> <p><strong>Sample size need for a poll</strong></p> <p>Measuring proportions is what pollsters do. For example in an election you might want to know how many people will vote for liberals (items of interest) and how many will vote for conservatives (items not of interest)<span class="footnote">We assume here that there are only two parties. For the real life situation of more than two parties we need the multinomial distribution and to approximate it with a multivariate normal distribution. That is a topic for multivariate statistics but the principles are the same as what we cover here.</span> In a news paper you might see: “The poll says that 72<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> of the voters will vote liberal. The poll is considered accurate to 2 percentage points 19 time out of 20.” This means that the 95<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> confidence interval (19/20 = 0.95) of the proportion of liberal voters is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d703c7a063a55bd6444072290c35cfb7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="0.72 \pm 0.02" title="Rendered by QuickLaTeX.com" height="13" width="84" style="vertical-align: 0px;" /> (note how proportions are presented as percentages in the newspaper). The error here is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cda2e6c2afd00112a7edeb7c92db1185_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="E = 0.02" title="Rendered by QuickLaTeX.com" height="12" width="69" style="vertical-align: 0px;" />. Before the pollster starts telephoning people, she must know how many people to phone to arrive at that goal error of 2<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" />. She needs to know what the sample size <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> needed is. In general, the minimum sample size needed to attain a goal error <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-764e1c770271f92700e1a4fbce46c668_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="E" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> on a confidence interval of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2be34166fee1eb4363ca064dc713fbc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cal{C}" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: 0px;" /> is</p> <p class="ql-center-displayed-equation" style="line-height: 36px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bfa9a0dcbb4759ff2640402810807065_l3.svg" height="36" width="111" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[n = \hat{p}\hat{q}\left( \frac{z_{\cal{C}}}{E} \right)^{2}.\]" title="Rendered by QuickLaTeX.com" /></p> <p>Here <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1479a87898589a2cfb5f4d46853bb47a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\hat{p}" title="Rendered by QuickLaTeX.com" height="17" width="10" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3cad2cf8746bad0f8f02169a3f574bec_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\hat{q}" title="Rendered by QuickLaTeX.com" height="17" width="8" style="vertical-align: -4px;" /> could come from a previous survey if available. If there is no such survey or if you want to be sure of ending up with an error equal to or less than a goal E, then use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-08160671c8d78dfacfbebb93ed4840ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\hat{p} = \hat{q} = 0.5" title="Rendered by QuickLaTeX.com" height="17" width="88" style="vertical-align: -4px;" />, see Figure 8.9.</p> <div class="wp-caption aligncenter" id="attachment_1969" aria-describedby="caption-attachment-1969" style="width: 504px"><img class="wp-image-1969" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.9-300x153.png" alt="" width="504" height="257" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.9-300x153.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.9-1024x524.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.9-768x393.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.9-65x33.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.9-225x115.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.9-350x179.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.9.png 1286w" /><div class="wp-caption-text" id="caption-attachment-1969">Figure 8.9 : The formula <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b94e7ad1db98a242fc2cedc0cc9f1906_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n = \hat{p}\hat{q}\left( \frac{z_{\cal{C}}}{E} \right)^{2}" title="Rendered by QuickLaTeX.com" height="26" width="96" style="vertical-align: -7px;" /> is a quadratic formula. Substitute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d56939bd992d795e0c92b72e31b74fa1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\hat{q} = 1 - \hat{p}" title="Rendered by QuickLaTeX.com" height="17" width="72" style="vertical-align: -4px;" /> to get <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20999473acae64e33b054e6f4e5dc066_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n = \hat{p}(1-\hat{p})\left( \frac{z_{\cal{C}}}{E} \right)^{2}" title="Rendered by QuickLaTeX.com" height="26" width="141" style="vertical-align: -7px;" /> or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9510a686f5722072f3a28d1c4759b106_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n = (\hat{p} -\hat{p}^{2})\left( \frac{z_{\cal{C}}}{E} \right)^{2}" title="Rendered by QuickLaTeX.com" height="26" width="140" style="vertical-align: -7px;" />. The maximum of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8b59b17056b63c72f1d638615ac868c0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n_{\rm max} = \frac{1}{4}\left( \frac{z_{\cal{C}}}{E} \right)^{2}" title="Rendered by QuickLaTeX.com" height="26" width="116" style="vertical-align: -7px;" /> is at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3e9c0b3c73f44b4af9d83a50e2813efb_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\hat{p} = 0.5" title="Rendered by QuickLaTeX.com" height="17" width="56" style="vertical-align: -4px;" />.</div></div> <p><strong>Example 8.4</strong> : We want to estimate, with 95<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> confidence, the proportion of people who own a home computer. A previous study gave an answer of 40<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" />. For a new study we want an error of 2<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" />. How many people should we poll?</p> <p><em>Solution</em> : From the question we have :</p> <p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ab87124863a3633dc9738c864c05be69_l3.svg" height="17" width="167" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\hat{p}=0.40, \hspace{.25in} \hat{q}=0.60\]" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3fcf65edb968fd40e15898bbef2264ac_l3.svg" height="17" width="173" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[E = 0.02, \hspace{.25in} \alpha = 0.95\]" title="Rendered by QuickLaTeX.com" /></p> <p>From the <strong><em>t</em> Distribution Table</strong> (or the <strong>Standard Normal Distribution Table</strong> if you think about the areas correctly) we find</p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-49e5f1e681cdf7e411bdf6f1d77f314b_l3.svg" height="16" width="143" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[z_{\cal{C}} = z_{95\%} = 1.960.\]" title="Rendered by QuickLaTeX.com" /></p> <p>Therefore</p> <p class="ql-center-displayed-equation" style="line-height: 46px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-28aeef69b2c92617f94eec9f9b35061c_l3.svg" height="46" width="388" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[n = \hat{p}\hat{q}\left( \frac{z_{\alpha/2}}{E}\right)^2 = (0.40)(0.60)\left( \frac{1.96}{0.02}\right)^2 = 2304.96\]" title="Rendered by QuickLaTeX.com" /></p> <p>Which we round up to a sample size of 2305 to ensure that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d611d6d7eb48c3a5f68d4892c2a0176e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="E&lt;0.02" title="Rendered by QuickLaTeX.com" height="12" width="69" style="vertical-align: 0px;" />.</p> <p style="text-align: right;">▢</p> </div></div>
<div class="chapter standard" id="chapter-slug-8-5-chi-squared-distribution" title="8.5 Chi Squared Distribution"><div class="chapter-title-wrap"><h3 class="chapter-number">32</h3><h2 class="chapter-title">8.5 Chi Squared Distribution</h2></div><div class="ugc chapter-ugc"> <p>The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> (chi squared) distribution is a consequence of a random process based on the normal distribution. It is derived from the normal distribution as the result of the following stochastic process :</p> <ol><li>Suppose you have a population that has variance <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cc9e02a7ee97ee0f78742edeb5b38bdc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma^{2}" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" /> and is normally distributed.</li> <li>Take a sample of size <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> from the population and compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-be9bee5e7295351f1d9335e2d8e8cbdd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{1} =\frac{(n-1)s_{1}^{2}}{\sigma^{2}}" title="Rendered by QuickLaTeX.com" height="28" width="93" style="vertical-align: -7px;" /> using the sample standard deviation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-83e6829cf634f6f115ad2c6cc9160a29_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_{1}" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: -4px;" /> from that sample.</li> <li>Put the sample back into the population.</li> <li>Take another sample of size <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> from the population and compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-54ad75ec904b56ff206258e8538032a4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{2} = \frac{(n-1)s_{2}^{2}}{\sigma}" title="Rendered by QuickLaTeX.com" height="27" width="93" style="vertical-align: -6px;" /> using the sample standard deviation <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d7725868afc713f34eb814c852ab4845_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_{2}" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /> from that sample.</li> <li>etc.</li> <li>The distribution of the values of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-001ea7c62ce9885be2144c00bb5433f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{i} = \frac{(n-1)s_{i}^{2}}{\sigma^{2}}" title="Rendered by QuickLaTeX.com" height="28" width="91" style="vertical-align: -7px;" /> values will be a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> distribution with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170fcb5a47e3b2f5391ebc8e16d02db_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu = n-1" title="Rendered by QuickLaTeX.com" height="13" width="74" style="vertical-align: -1px;" /> degrees of freedom.</li> </ol> <p>Like the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-distributions, the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4cbe148bd9da75d2e668ddd0223dbf9f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^2" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> distributions are a family, see Figure 8.10.</p> <div class="wp-caption aligncenter" id="attachment_1971" aria-describedby="caption-attachment-1971" style="width: 552px"><img class="wp-image-1971" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.10-300x129.png" alt="" width="552" height="237" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.10-300x129.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.10-1024x441.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.10-768x331.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.10-1536x661.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.10-65x28.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.10-225x97.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.10-350x151.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.10.png 1594w" /><div class="wp-caption-text" id="caption-attachment-1971">Figure 8.10 : The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> distributions are enumerated by degrees of freedom.</div></div> <p>The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4cbe148bd9da75d2e668ddd0223dbf9f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^2" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> distribution underlies why <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> is the best estimate for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />. It mean, or expected value is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170fcb5a47e3b2f5391ebc8e16d02db_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu = n-1" title="Rendered by QuickLaTeX.com" height="13" width="74" style="vertical-align: -1px;" /> so the expected value of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />. The expected value of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c5cbd5229a5d3498647608ec6fb596ac_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sum (x - \bar{x})/n" title="Rendered by QuickLaTeX.com" height="19" width="95" style="vertical-align: -5px;" /> in a random sample of size <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is not <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />.</p> <p><strong>Confidence Intervals on <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cc9e02a7ee97ee0f78742edeb5b38bdc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma^{2}" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" /></strong></p> <p>The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> distribution is already normalized in its definition through including <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> in its definition. Therefore no <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transforms are needed and we can work directly with a table that gives right tail areas under the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> distribution. That table is the <strong>Chi-squared Distribution Table</strong>, in the <a href="#back-matter-appendix-tables" target="_blank" rel="noopener noreferrer">Appendix</a>, and it gives values of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4cbe148bd9da75d2e668ddd0223dbf9f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^2" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> for given values of area to the right of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4cbe148bd9da75d2e668ddd0223dbf9f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^2" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" />, see Figure 8.11.</p> <div class="wp-caption aligncenter" id="attachment_1972" aria-describedby="caption-attachment-1972" style="width: 507px"><img class="wp-image-1972" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.11-300x142.png" alt="" width="507" height="240" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.11-300x142.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.11-1024x483.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.11-768x363.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.11-65x31.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.11-225x106.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.11-350x165.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.11.png 1182w" /><div class="wp-caption-text" id="caption-attachment-1972">Figure 8.11 : The Chi-squared Distribution Table gives <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4cbe148bd9da75d2e668ddd0223dbf9f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^2" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> associated with given right tail areas.</div></div> <p>We’ll need <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-88bb8a16c34a22197ae14d214c03b62a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^2_{\rm left}" title="Rendered by QuickLaTeX.com" height="21" width="30" style="vertical-align: -6px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4d4e4dde5754d6e936d5b94e53a09423_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^2_{\rm right}" title="Rendered by QuickLaTeX.com" height="23" width="39" style="vertical-align: -8px;" /> such that the tail areas are equal and such that the area between them is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2be34166fee1eb4363ca064dc713fbc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cal{C}" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: 0px;" />, see Figure 8.12.</p> <div class="wp-caption aligncenter" id="attachment_1973" aria-describedby="caption-attachment-1973" style="width: 467px"><img class="wp-image-1973" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.12-300x162.png" alt="" width="467" height="252" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.12-300x162.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.12-1024x554.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.12-768x416.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.12-65x35.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.12-225x122.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.12-350x189.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-8.12.png 1038w" /><div class="wp-caption-text" id="caption-attachment-1973">Figure 8.12 : The values <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-88bb8a16c34a22197ae14d214c03b62a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^2_{\rm left}" title="Rendered by QuickLaTeX.com" height="21" width="30" style="vertical-align: -6px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4d4e4dde5754d6e936d5b94e53a09423_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^2_{\rm right}" title="Rendered by QuickLaTeX.com" height="23" width="39" style="vertical-align: -8px;" /> define the confidence region <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2be34166fee1eb4363ca064dc713fbc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cal{C}" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: 0px;" />.</div></div> <p><em>Notation</em> : Let’s call the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> in the <strong>Chi-squared Distribution Table</strong> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4450936f2bf0034f0fa5d464e3cc0c63_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha_{T}" title="Rendered by QuickLaTeX.com" height="11" width="21" style="vertical-align: -3px;" /> and let <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a9d459fbca44a0d81cbeaa0d7e1b4a26_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^2(\alpha_{T})" title="Rendered by QuickLaTeX.com" height="19" width="54" style="vertical-align: -4px;" /> be the table value that corresponds to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0f6193ea636b6ccf9690d00cf49c18d1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha_T" title="Rendered by QuickLaTeX.com" height="11" width="21" style="vertical-align: -3px;" />. In other words <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a9d459fbca44a0d81cbeaa0d7e1b4a26_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^2(\alpha_{T})" title="Rendered by QuickLaTeX.com" height="19" width="54" style="vertical-align: -4px;" /> is the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> value that corresponds to a right tail area of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4450936f2bf0034f0fa5d464e3cc0c63_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha_{T}" title="Rendered by QuickLaTeX.com" height="11" width="21" style="vertical-align: -3px;" />.</p> <p>So given <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2be34166fee1eb4363ca064dc713fbc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\cal{C}" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: 0px;" />, the appropriate <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-88a9191aa4a00ffa67c3a0e495a19091_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}_{\rm left}" title="Rendered by QuickLaTeX.com" height="21" width="30" style="vertical-align: -6px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-334bff76bc88deccb74415b13a3eab59_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}_{\rm right}" title="Rendered by QuickLaTeX.com" height="23" width="39" style="vertical-align: -8px;" /> are the following values from the <strong>Chi-squared Distribution Table</strong>:</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bee88ed7f3ec98d10716a61664f79406_l3.svg" height="43" width="154" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\chi^{2}_{\rm right} = \chi^2 \left( \frac{1 - {\cal{C}}}{2} \right)\]" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d8fa4eaa967bcf28c7c57a81cc199303_l3.svg" height="43" width="204" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\chi^{2}_{\rm left} = \chi^2 \left( 1- \left[ \frac{1 - {\cal{C}}}{2} \right] \right).\]" title="Rendered by QuickLaTeX.com" /></p> <p>Note the symmetry of the <strong>Chi-squared Distribution Table</strong>. If <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-334bff76bc88deccb74415b13a3eab59_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}_{\rm right}" title="Rendered by QuickLaTeX.com" height="23" width="39" style="vertical-align: -8px;" /> comes from the column 3 columns from the right edge of the table then <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-88a9191aa4a00ffa67c3a0e495a19091_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}_{\rm left}" title="Rendered by QuickLaTeX.com" height="21" width="30" style="vertical-align: -6px;" /> comes from a column 3 columns from the left edge of the table. Only small and large areas appear in the table, there are no intermediate values.</p> <p>Finally, the confidence interval for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6a987274197f5fb6bfd3855d351bc2af_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma^2" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" /> is given by</p> <p class="ql-center-displayed-equation" style="line-height: 48px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3c6698acc5f2de043e8fcdb45b029595_l3.svg" height="48" width="212" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\frac{(n-1)s^{2}}{\chi^{2}_{\rm right}} &lt; \sigma^2 &lt; \frac{(n-1)s^2}{\chi^{-2}_{\rm left}}\]" title="Rendered by QuickLaTeX.com" /></p> <p>and for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> by:</p> <p class="ql-center-displayed-equation" style="line-height: 55px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ab05532c146a7487651fe1c2ba06326d_l3.svg" height="55" width="243" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\sqrt{\frac{(n-1)s^2}{\chi^2_{\rm right}}} &lt; \sigma &lt; \sqrt{\frac{(n-1)s^2}{\chi^2_{\rm left}}}\]" title="Rendered by QuickLaTeX.com" /></p> <p>Where the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4cbe148bd9da75d2e668ddd0223dbf9f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^2" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> distribution with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170fcb5a47e3b2f5391ebc8e16d02db_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu = n-1" title="Rendered by QuickLaTeX.com" height="13" width="74" style="vertical-align: -1px;" /> degrees of freedom (giving the line to use in the <strong>Chi-squared Distribution Table</strong>) is used.</p> <p><strong>Example 8.5</strong> : Find the 90<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> confidence interval on <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6a987274197f5fb6bfd3855d351bc2af_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma^2" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" /> for the following data</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e50b820e7aa8b79d652f557d9a1a89e8_l3.svg" height="17" width="248" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[59, 54, 53, 52, 51, 39, 49, 46, 49, 48\]" title="Rendered by QuickLaTeX.com" /></p> <p><em>Solution</em> : <span style="text-align: initial; font-size: 1em;">Compute, using your calculator :</span></p> <p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0ac2ba82b9cbecbafe2af6f670dbbac8_l3.svg" height="17" width="71" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[s^2 = 28.2\]" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 13px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c97fb605940a52d0dbba1cdd7b4f9d8f_l3.svg" height="13" width="111" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\nu =n-1 = 9.\]" title="Rendered by QuickLaTeX.com" /></p> <p>From the <strong>Chi-squared Distribution Table</strong>, in the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e3bb35c09644901d878d7646f118eae4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu = 9" title="Rendered by QuickLaTeX.com" height="12" width="43" style="vertical-align: 0px;" /> line, find :</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-85bfe055c710f2f205d2c5974847d58c_l3.svg" height="43" width="339" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\chi^2_{\rm right} = \chi^2 \left( \frac{1-0.90}{2}\right) = \chi^2(0.05) = 16.919\]" title="Rendered by QuickLaTeX.com" /></p> <p>and</p> <p class="ql-center-displayed-equation" style="line-height: 22px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4ea5bb151995e1afae083d14b2dff7bc_l3.svg" height="22" width="301" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\chi^2_{\rm left} = \chi^2 (1-0.05) = \chi^2(0.95) = 3.325\]" title="Rendered by QuickLaTeX.com" /></p> <p>So</p> <p class="ql-center-displayed-equation" style="line-height: 114px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-95e2b055daeaf7b8986a6fe555db0941_l3.svg" height="114" width="451" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{align*} \frac{(n-1)s^2}{\chi^2_{\rm right}} &amp;&lt; \sigma^{2} &lt; \frac{(n-1)s^2}{\chi^2_{\rm left}}\\ \frac{9 \cdot 28.2}{16.919} &amp;&lt; \sigma^{2} &lt; \frac{9 \cdot 28.2}{3.325}\\ 15.0 &amp;&lt; \sigma^2 &lt; 76.3 \hspace{1in} \mbox{with 90\% confidence.} \end{align*}" title="Rendered by QuickLaTeX.com" /></p> <p>Taking square roots:</p> <p class="ql-center-displayed-equation" style="line-height: 15px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ebd75c6f19d4b6be780958667e8db60d_l3.svg" height="15" width="402" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[3.87 &lt; \sigma &lt; 8.73 \hspace{1in} \mbox{with 90\% confidence.}\]" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: right;">▢</p> </div></div>
<div class="part " id="part-slug-9-hypothesis-testing"><div class="part-title-wrap"><h3 class="part-number">IX</h3><h1 class="part-title">9. Hypothesis Testing</h1></div><p>The process of hypothesis testing can be simplified into :</p> <ol><li>Transform (“reduce”) your given data into a test statistic that you can locate on probability distribution given by the sampling theory under a null hypothesis (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />) about the population. (e.g. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-77a36c34da7a0b54fb6916eac5a77f0d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z," title="Rendered by QuickLaTeX.com" height="12" width="13" style="vertical-align: -4px;" /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4cbe148bd9da75d2e668ddd0223dbf9f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^2" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> test statistic).</li> <li>See if your test statistic falls into a critical region of the distribution or not. The critical, or rejection region as we’ll call it, represents an area of low probability that the null hypothesis, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> is true. If the test statistic falls in the rejection region, the we make the decision to reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> as the conclusion of the hypothesis test.</li> </ol> <p>Before we define the critical region under the null hypothesis, we need to define what a null hypothesis is.&nbsp; We’ll define two hypotheses, actually, because the null hypothesis needs to contrasted to its logical opposite :</p> <p style="padding-left: 40px"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />: Null Hypothesis, the hypothesis that nothing is going on; no effect; no signal.</p> <p style="padding-left: 40px"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" />: Alternative Hypothesis, the hypothesis that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> is not true; there is an effect; there is a signal.</p> <p>A good experimental design will be set up so that the effects of interest define <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" />. (Your “claim” will be <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" />.) Why? It’s about signal to noise ratios. A test statistic is literally signal/noise, a signal to noise ratio. When you do not reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> you are saying that there is more noise than signal. When you reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> (essentially accepting <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" />) you are saying that there is more signal than noise. Usually you are interested in the signal (also known as an “effect”) so your claim would be <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" />. You perform your experiment to find evidence for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" />. If you are interested in noise (can happen, for example to test assumptions on which tests are based) then your claim would be <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. The examples that follow here don’t follow these experimentally correct rules for which of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> should be the claim to emphasize the logical nature of the decision making process. But test statistics are signal to noise ratios and in real life you will be interested in signals.</p> <p>To fix ideas about hypothesis testing, we’ll first look at hypotheses on the means of populations (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" />).&nbsp; Later we’ll consider hypotheses on <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> and on <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> (proportions).</p> <p>With means there are three combinations of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> to consider :</p> <table class="grid aligncenter" style="border-collapse: collapse;width: 63.0303%;height: 90px"><tbody><tr><td class="shaded" style="width: 33.3333%;text-align: center">Two-Tailed Test</td> <td class="shaded" style="width: 33.3333%;text-align: center">Right-Tailed Test</td> <td class="shaded" style="width: 33.3333%;text-align: center">Left-Tailed Test</td> </tr> <tr><td style="width: 33.3333%;text-align: center"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-13f83164c11f6684427b030c23ccddb8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu = k" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%;text-align: center"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c4c2c776a4412feda050c0d5c2608910_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu \leq k" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%;text-align: center"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-29207e1e094e692ff6270d822cd6cfce_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu \geq k" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 33.3333%;text-align: center"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e453bcdab0213f7ca21013d95a0381b2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu \neq k" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%;text-align: center"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fe9767f50329f8d8f1e3e850cb809403_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> k" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;"&gt;</td> <td style="width: 33.3333%;text-align: center"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ce3de118f45024c01903bfce7bd1f7e0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu &lt; k" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> </tr> </tbody> </table> <p>Here <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3422b6bb5c160593658b7c39425d9880_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="k" title="Rendered by QuickLaTeX.com" height="13" width="9" style="vertical-align: 0px;" /> is a given number. Not that the rightness or the leftness of the one-tailed test is reflected in <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" />. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> is generally what people are interested in. Then the critical regions, which are on <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> distributions as we’ll see, for each case look like :</p> <p>1. Two-tailed test:</p> <div class="wp-nocaption wp-image-1983 aligncenter"><img class="wp-image-1983 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.01-300x220.png" alt="" width="341" height="250" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.01-300x220.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.01-65x48.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.01-225x165.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.01-350x257.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.01.png 716w" /></div> <p>2. Right-tailed test:</p> <div class="wp-nocaption wp-image-1984 aligncenter"><img class="wp-image-1984 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.02-300x144.png" alt="" width="406" height="195" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.02-300x144.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.02-768x369.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.02-65x31.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.02-225x108.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.02-350x168.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.02.png 862w" /></div> <p>3. Left-tailed test:</p> <div class="wp-nocaption wp-image-1985 aligncenter"><img class="wp-image-1985 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.03-300x165.png" alt="" width="384" height="211" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.03-300x165.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.03-768x423.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.03-65x36.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.03-225x124.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.03-350x193.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.03.png 774w" /></div> <p>The critical regions, or rejection regions, appear in the probability distributions <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-246cc03a78bc0adebf8cdcc1501a4f15_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="P(z \mid H_{0})" title="Rendered by QuickLaTeX.com" height="18" width="73" style="vertical-align: -4px;" />, which is the probability distribution that the sample test statistic, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />, that would occur if <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> were true. These <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distributions are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transforms of the distribution of sample means under <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> given by the central limit theorem. More about this when we introduce the formula for the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> distribution. For now, let’s focus on the decision making process.</p> <p>When your statistic ends up in the critical region, you conclude that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> is false. You reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. The <em>critical region</em> is the <em>rejection region</em>.</p> <p>In the two tailed test, the critical region, with total area <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is the opposite to the region <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f2d140e755774016ee095e157e6e7f4e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="{\cal{C}} = 1 - \alpha" title="Rendered by QuickLaTeX.com" height="13" width="76" style="vertical-align: -1px;" /> that we have been using for confidence intervals. Compare the two-tail critical region sketch above to Figure 8.1.</p> <p>There are four possible outcomes to a statistical hypothesis test given by the so-called<span class="footnote">So called not because it is confusing but because you are never 100<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> sure which decision is correct.</span> “confusion matrix” :</p> <table class="grid aligncenter" style="border-collapse: collapse;width: 84.9697%;height: 44px"><tbody><tr style="height: 14px"><td class="shaded" style="width: 33.3333%;text-align: center;height: 14px"></td> <td class="shaded" style="width: 33.3333%;text-align: center;height: 14px"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a4fc152da9c0802275c766010d183a54_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_0" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> true</td> <td class="shaded" style="width: 33.3333%;text-align: center;height: 14px"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-edfe2955fbee758d4113fd7ccf3cd3cf_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_1" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> true</td> </tr> <tr style="height: 15px"><td style="width: 33.3333%;text-align: center;height: 15px">Reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> (believe <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" />)</td> <td style="width: 33.3333%;text-align: center;height: 15px">Type I error <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /></td> <td style="width: 33.3333%;text-align: center;height: 15px">Correct decision 1-<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b6a7605b1bcca8f1b416eaf733f34e08_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\beta" title="Rendered by QuickLaTeX.com" height="16" width="11" style="vertical-align: -4px;" /></td> </tr> <tr style="height: 15px"><td style="width: 33.3333%;text-align: center;height: 15px">Do not reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> (believe <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />)</td> <td style="width: 33.3333%;text-align: center;height: 15px">Correct decision 1-<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /></td> <td style="width: 33.3333%;text-align: center;height: 15px">Type II error <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b6a7605b1bcca8f1b416eaf733f34e08_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\beta" title="Rendered by QuickLaTeX.com" height="16" width="11" style="vertical-align: -4px;" /></td> </tr> </tbody> </table> <p>The probabilities are relative to the realities. The probabilities in the columns add to 1. The probability of making a Type I error, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />, is the area in the critical region. The diagram with the critical region on it assumes that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> is the reality. We will see how to compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b6a7605b1bcca8f1b416eaf733f34e08_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\beta" title="Rendered by QuickLaTeX.com" height="16" width="11" style="vertical-align: -4px;" /> in Chapter 13. The quantity <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-eaccb9eb59559d5763921cab4a828b9f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="1- \beta" title="Rendered by QuickLaTeX.com" height="16" width="41" style="vertical-align: -4px;" /> is defined as the <em>power</em> of the statistical test.</p> <p>We can view the confusion matrix from a medical test point of view. A medical test is a hypothesis test has the following hypotheses pairs :</p> <p style="padding-left: 40px"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> : negative test result, healthy patient</p> <p style="padding-left: 40px"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> : positive test result, sick patient</p> <p>Then :</p> <table class="grid aligncenter" style="border-collapse: collapse;width: 84.9697%;height: 44px"><tbody><tr style="height: 14px"><td class="shaded" style="width: 33.3333%;text-align: center;height: 14px"></td> <td class="shaded" style="width: 33.3333%;text-align: center;height: 14px">Healthy</td> <td class="shaded" style="width: 33.3333%;text-align: center;height: 14px">Sick</td> </tr> <tr style="height: 15px"><td style="width: 33.3333%;text-align: center;height: 15px">Positive Result<br /> (believe sick)</td> <td style="width: 33.3333%;text-align: center;height: 15px">Type I error <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /></td> <td style="width: 33.3333%;text-align: center;height: 15px">Correct decision 1-<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b6a7605b1bcca8f1b416eaf733f34e08_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\beta" title="Rendered by QuickLaTeX.com" height="16" width="11" style="vertical-align: -4px;" /></td> </tr> <tr style="height: 15px"><td style="width: 33.3333%;text-align: center;height: 15px">Negative Result<br /> (believe healthy)</td> <td style="width: 33.3333%;text-align: center;height: 15px">Correct decision 1-<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /></td> <td style="width: 33.3333%;text-align: center;height: 15px">Type II error <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b6a7605b1bcca8f1b416eaf733f34e08_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\beta" title="Rendered by QuickLaTeX.com" height="16" width="11" style="vertical-align: -4px;" /></td> </tr> </tbody> </table> <p>In medical tests, the quantity <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9a260e5a2e565ca58c164d7a0144e313_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="1- \alpha" title="Rendered by QuickLaTeX.com" height="13" width="41" style="vertical-align: -1px;" /> is known as the test’s <em>specificity</em>, the probability of finding true negatives. The quantity <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3ebed66c268fa3f6ce60b3d0c80245a5_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="1 - \beta" title="Rendered by QuickLaTeX.com" height="16" width="41" style="vertical-align: -4px;" /> is the test’s <em>sensitivity</em>, the probability of finding true positives. Generally <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b6a7605b1bcca8f1b416eaf733f34e08_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\beta" title="Rendered by QuickLaTeX.com" height="16" width="11" style="vertical-align: -4px;" /> are functions of some other decision parameter. In the hypothesis tests that we consider here, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is the decision parameter.</p> <p>Back to understanding the meaning of hypothesis testing. As we said, a good experimental design will be set up so that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> is your favourite theory that there is an effect. In that case <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> represents the case that there is <em>no effect </em>: the position of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> away from <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3422b6bb5c160593658b7c39425d9880_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="k" title="Rendered by QuickLaTeX.com" height="13" width="9" style="vertical-align: 0px;" />, or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> away from 0 (in the case of hypothesis testing of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" />) is just due to noise. If your experiment is then successful in proving your theory, i.e. you reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />, then <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> represents the probability that you are wrong. The number <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> actually defines a decision point for rejecting <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. Later we will see how to compute a value, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />, that is associated with the test statistic. This <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value is then a more refined value for the probability that you are wrong if you reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. From another point of view, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> <em>would be the probability that your measurement is entirely due to noise</em>.</p> <p>Let’s do some examples to build our mechanical skills at defining critical regions for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> distributions.</p> <p><strong>Example 9.1</strong> : Critical Areas on <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distributions with hypothesis testing on the mean, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" />.</p> <p>(a) Left-tailed test with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e4373527a619804f3b811a78e13c1e28_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.10" title="Rendered by QuickLaTeX.com" height="13" width="67" style="vertical-align: -1px;" />. Find the critical value <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-791b1de4bec9423cdfd8f2b2198a18b9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical}" title="Rendered by QuickLaTeX.com" height="12" width="49" style="vertical-align: -4px;" />.</p> <p style="padding-left: 40px">First step, <em>draw a picture</em>&nbsp;:</p> <div class="wp-nocaption wp-image-1986 aligncenter"><img class="wp-image-1986 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.04-300x187.png" alt="" width="413" height="258" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.04-300x187.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.04-768x479.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.04-65x41.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.04-225x140.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.04-350x218.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.04.png 910w" /></div> <p style="padding-left: 40px">With the tables we have in the <a href="#back-matter-appendix-tables" target="_blank" rel="noopener noreferrer">Appendix</a>, there are two ways to find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-791b1de4bec9423cdfd8f2b2198a18b9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical}" title="Rendered by QuickLaTeX.com" height="12" width="49" style="vertical-align: -4px;" /> :</p> <ul><li style="list-style-type: none"><ul><li>Method (a) : Look up area in the <strong>Standard Normal Distribution Table</strong> equal to 0.40 : Closest <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> is 1.28 so <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8512b9bc40fdec1e613277e183ae5b8c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical} = -1.28" title="Rendered by QuickLaTeX.com" height="16" width="120" style="vertical-align: -4px;" />.</li> <li>Method (b) : Use the last line in the <strong><em>t</em> Distribution Table</strong> for the one tailed test column. Find a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> of 1.282 and add a minus sign because we have a left tail test. So <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f2172150e059d7ef06a41f64b101a616_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical} = -1.282" title="Rendered by QuickLaTeX.com" height="16" width="128" style="vertical-align: -4px;" />.</li> </ul> </li> </ul> <p style="padding-left: 40px">Use Method (b) on tests and exams. It is faster, requires less thinking about areas (and so less chance for making a mistake) and gives a slightly more accurate result. The critical <em>area</em> or critical <em>region</em> or the <em>rejection region</em> is where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-586be1df13bac500e5268b08b6a2bd76_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z &lt; -1.282" title="Rendered by QuickLaTeX.com" height="13" width="87" style="vertical-align: -1px;" />. The critical <em>value</em> that defines the region in this case is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4681a8135d8e1a7ae2911666731c8e1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z = -1.282" title="Rendered by QuickLaTeX.com" height="13" width="87" style="vertical-align: -1px;" />.</p> <p>(b) A two tailed test with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e3da15c426ac26a17a70174f35f7adde_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.02" title="Rendered by QuickLaTeX.com" height="12" width="66" style="vertical-align: 0px;" />. Find the critical value <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-791b1de4bec9423cdfd8f2b2198a18b9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical}" title="Rendered by QuickLaTeX.com" height="12" width="49" style="vertical-align: -4px;" />.</p> <p style="padding-left: 40px"><em>Draw a picture</em> :</p> <div class="wp-nocaption wp-image-2111 aligncenter"><img class="wp-image-2111 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig69png-300x171.jpg" alt="" width="465" height="265" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig69png-300x171.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig69png-65x37.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig69png-225x128.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig69png-350x200.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig69png.jpg 556w" /></div> <ul><li style="list-style-type: none"><ul><li>Method (a) : Look up area in the <strong>Standard Normal Distribution Table</strong> equal to 0.49. The closest <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> is 2.33. So, because we have a two-tailed test, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f1870926a7a258b6d576be3cabf0948b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical} = \pm 2.33" title="Rendered by QuickLaTeX.com" height="16" width="120" style="vertical-align: -4px;" />.</li> <li>Method (b): Use the last line in the <strong><em>t</em> Distribution Table</strong>, for two tailed test, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e3da15c426ac26a17a70174f35f7adde_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.02" title="Rendered by QuickLaTeX.com" height="12" width="66" style="vertical-align: 0px;" />. Find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea77af8f820b046ab1eac014fcb12ddf_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z = 2.326" title="Rendered by QuickLaTeX.com" height="12" width="74" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3e5357d40aa84230d1336f6d03a657ff_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical} = \pm 2.326" title="Rendered by QuickLaTeX.com" height="16" width="129" style="vertical-align: -4px;" />.</li> </ul> </li> </ul> <p style="padding-left: 40px">Again, Method (b) is the recommended approach.</p> <p style="padding-left: 40px">So the critical <em>areas</em> are those where</p> <p style="padding-left: 40px"></p><p class="ql-center-displayed-equation" style="line-height: 13px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c1994e5951f7e9444ab8787cabd95ed0_l3.svg" height="13" width="201" class="ql-img-displayed-equation quicklatex-auto-format" alt="image" /> 2.326 \mbox{ and } z &lt; -2.326\]" title="Rendered by QuickLaTeX.com"&gt;</p> <p style="padding-left: 40px">and the critical <em>values</em> are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-aaafb388a59db68c0d247f17400ef41d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical} = 2.326" title="Rendered by QuickLaTeX.com" height="16" width="115" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e8202b0fd42828dd59343c61cc8ffd88_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical} = -2.326" title="Rendered by QuickLaTeX.com" height="16" width="129" style="vertical-align: -4px;" />.</p> <p>(c) A right tailed test with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8fba6d414de5853e20b17f64f5552c7d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.005" title="Rendered by QuickLaTeX.com" height="13" width="75" style="vertical-align: 0px;" />. Find the critical value <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-791b1de4bec9423cdfd8f2b2198a18b9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical}" title="Rendered by QuickLaTeX.com" height="12" width="49" style="vertical-align: -4px;" />.</p> <p style="padding-left: 40px"><em>Draw a picture</em> :</p> <div class="wp-nocaption wp-image-1988 aligncenter"><img class="wp-image-1988 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.06-300x173.png" alt="" width="382" height="220" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.06-300x173.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.06-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.06-225x130.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.06-350x202.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.06.png 764w" /></div> <ul><li style="list-style-type: none"><ul><li>Method (a) Look up area in the <strong>Standard Normal Distribution Table</strong> equal to 0.495, the Closest <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> is 2.58. So <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0654941a1d7a0b66362e57fb9eb5023c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical} = 2.58" title="Rendered by QuickLaTeX.com" height="17" width="106" style="vertical-align: -4px;" /></li> <li>Method (b) Use the last line in the <strong><em>t</em> Distribution Table</strong> for one tailed test, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8fba6d414de5853e20b17f64f5552c7d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.005" title="Rendered by QuickLaTeX.com" height="13" width="75" style="vertical-align: 0px;" /> and find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-47ae65507770c04ffb9a8e8e0218a902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical} = 2.576" title="Rendered by QuickLaTeX.com" height="17" width="115" style="vertical-align: -4px;" />.</li> </ul> </li> </ul> <p style="padding-left: 40px">So the critical area is that where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-374cfde324ad13e48e5195b4f6fb1760_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> 2.576" title="Rendered by QuickLaTeX.com" height="13" width="74" style="vertical-align: 0px;"&gt; and the critical value is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-47ae65507770c04ffb9a8e8e0218a902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical} = 2.576" title="Rendered by QuickLaTeX.com" height="17" width="115" style="vertical-align: -4px;" />.</p> <p style="text-align: right">▢</p> <p><em>One final note on setting up the hypotheses</em>. When setting up the hypotheses <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" />, one of the two alternatives will be the <em>claim</em> (what the problem says you really want to test). As mentioned before, a good experimental design will have <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> as the claim. But this may not always be possible to arrange (especially in tests of assumptions). So many of the exercises in the text and assignments will have <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> as the claim.</p><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-9-1-hypothesis-testing-problem-solving-steps" title="9.1 Hypothesis Testing Problem Solving Steps"><div class="chapter-title-wrap"><h3 class="chapter-number">33</h3><h2 class="chapter-title">9.1 Hypothesis Testing Problem Solving Steps</h2></div><div class="ugc chapter-ugc"><p>Now that we have some background on setting up hypotheses and finding critical regions, we introduce the steps needed for every hypothesis testing procedure. Hypothesis testing is based directly on sampling theory and the probabilities <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6a6450a44903c85ea9bc4576a86c4197_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#80;&#40;&#92;&#109;&#98;&#111;&#120;&#123;&#116;&#101;&#115;&#116;&#32;&#115;&#116;&#97;&#116;&#105;&#115;&#116;&#105;&#99;&#125;&#32;&#92;&#109;&#105;&#100;&#32;&#72;&#95;&#123;&#48;&#125;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="160" style="vertical-align: -4px;" /> that the sampling theory gives. Here are the steps we will follow :</p> <ol><li><strong>Hypotheses</strong> : Formulate <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" />. State which is the claim</li> <li><strong>Critical statistic</strong> : Find the critical values and regions. (Use tables of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4cbe148bd9da75d2e668ddd0223dbf9f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" />, etc. values).</li> <li><strong>Test statistic</strong> : Compute the {\em test statistic} from your data. It summarizes your data in one number. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value follows from the test statistic.</li> <li><strong>Decision</strong> : If the test statistic falls in the critical region (rejection region), reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. (This decision can also be made using the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value.)</li> <li><strong>Interpretation</strong> : Summarize results in a sentence and/or present a graphic or table.</li> </ol> <p>The definition of a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value will be covered below. For now you should know that a computer program (SPSS) will give you a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value but not a critical statistic. So there is no Step 2 if you use SPSS.</p> <p>A generic test statistic may be defined by :</p> <p class="ql-center-displayed-equation" style="line-height: 39px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f76b3139d9cf800c158b99d0e0c3f7e3_l3.svg" height="39" width="410" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#109;&#98;&#111;&#120;&#123;&#116;&#101;&#115;&#116;&#32;&#118;&#97;&#108;&#117;&#101;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#109;&#98;&#111;&#120;&#123;&#40;&#111;&#98;&#115;&#101;&#114;&#118;&#101;&#100;&#32;&#118;&#97;&#108;&#117;&#101;&#41;&#125;&#32;&#45;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#40;&#101;&#120;&#112;&#101;&#99;&#116;&#101;&#100;&#32;&#125;&#72;&#95;&#123;&#48;&#125;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#32;&#118;&#97;&#108;&#117;&#101;&#41;&#125;&#125;&#123;&#92;&#109;&#98;&#111;&#120;&#123;&#115;&#116;&#97;&#110;&#100;&#97;&#114;&#100;&#32;&#101;&#114;&#114;&#111;&#114;&#125;&#125;&#46;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>The numerator represents a signal or an effect. The denominator represents noise. Not all test statistics will have this form (e.g. some <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> test statistics), but all test statistics represent a signal-to-noise ratio. Much of the tabular output of SPSS gives the numerator and denominator of this generic form with or without the corresponding test statistic.</p> </div></div>
<div class="chapter standard" id="chapter-slug-9-2-z-test-for-a-mean" title="9.2 z-Test for a Mean"><div class="chapter-title-wrap"><h3 class="chapter-number">34</h3><h2 class="chapter-title">9.2 z-Test for a Mean</h2></div><div class="ugc chapter-ugc">
<p>This is our first hypothesis test. Use it to test a sample’s mean when :</p> <ol><li>The population <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is known.</li> <li>Or When <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6dc0fb4ca3a9794b3d2c49ccdb189417_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n \geq 30" title="Rendered by QuickLaTeX.com" height="15" width="52" style="vertical-align: -3px;" />, in which case use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2e8af69cfaeef15822258f99ad3934ad_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma = s" title="Rendered by QuickLaTeX.com" height="8" width="42" style="vertical-align: 0px;" /> in the test statistic formula.</li> </ol> <p>The possible hypotheses are as given in the table you saw in the previous section (one- and two-tailed versions):</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 63.0303%; height: 90px;"><tbody><tr><td class="shaded" style="width: 33.3333%; text-align: center;">Two-Tailed Test</td> <td class="shaded" style="width: 33.3333%; text-align: center;">Right-Tailed Test</td> <td class="shaded" style="width: 33.3333%; text-align: center;">Left-Tailed Test</td> </tr> <tr><td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-13f83164c11f6684427b030c23ccddb8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu = k" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c4c2c776a4412feda050c0d5c2608910_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu \leq k" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-29207e1e094e692ff6270d822cd6cfce_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu \geq k" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e453bcdab0213f7ca21013d95a0381b2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu \neq k" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fe9767f50329f8d8f1e3e850cb809403_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> k" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;"&gt;</td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ce3de118f45024c01903bfce7bd1f7e0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu &lt; k" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> </tr> </tbody> </table> <p><span style="text-align: initial; font-size: 1em;">In all cases the test statistic is</span></p> <p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">(9.1) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7a6dfca443a5233d3b9de6f5d15abe10_l3.svg" height="42" width="121" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} z_{\rm test} = \frac{\bar{x} - k}{(\sigma/\sqrt{n})}. \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>In real life, we will never know what the population <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is, so we will be in the second situation of having to set <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2e8af69cfaeef15822258f99ad3934ad_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma = s" title="Rendered by QuickLaTeX.com" height="8" width="42" style="vertical-align: 0px;" /> in the test statistic formula. When you do that, the test statistic is actually a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> test statistic as we’ll see. So taking it to be a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> is an approximation. It’s a good approximation but SPSS never makes that approximation. SPSS will always do a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test, no matter how large <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is. So keep that in mind when solving a problem by hand versus using a computer.</p> <p>Let’s work through a hypothesis testing example to get the procedure down and then we’ll look at the derivation of the test statistic of Equation (9.1).</p> <p><strong>Example 9.2</strong> : A researcher claims that the average salary of assistant professors is more than $42,000. A sample of 30 assistant professors has a mean salary of $43,260. At <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />, test the claim that assistant professors earn more than $42,000/year (on average). The standard deviation of the population is $5230.</p> <p><em>Solution</em> :</p> <p>1. Hypothesis :</p> <p style="text-align: left; padding-left: 40px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-dc459d55aa200e11e81f26a54539d187_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0} :\mu \leq 42,000" title="Rendered by QuickLaTeX.com" height="16" width="124" style="vertical-align: -4px;" /></p> <p style="text-align: left; padding-left: 40px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4f1bb8c179e25bc7cc73b4c7adf1ee98_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> 42,000" title="Rendered by QuickLaTeX.com" height="16" width="124" style="vertical-align: -4px;"&gt;&nbsp; (claim)</p> <p style="text-align: left; padding-left: 40px;">(This is a right-tailed test.)</p> <p>2. Critical Statistic.</p> <ul><li>Method (a) : Find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> such that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e6ecd6bccbf2f38928ba0d2cbe87ae52_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="A(z) = 0.45" title="Rendered by QuickLaTeX.com" height="18" width="91" style="vertical-align: -4px;" /> from the <strong>Standard Normal Distribution Table</strong>: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-19eeb2f86458ea74028c86646e55c375_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical} = 1.65" title="Rendered by QuickLaTeX.com" height="17" width="105" style="vertical-align: -4px;" />; or</li> </ul> <ul><li>Method (b) : Look up <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> in the <strong><em>t</em> Distribution Table</strong> corresponding to one tail <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /> (column), and read the last (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />) line: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-241cff47a818748f247e241081ad3eaa_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical} = 1.645." title="Rendered by QuickLaTeX.com" height="17" width="119" style="vertical-align: -4px;" /></li> </ul> <p style="padding-left: 40px;">Method (b) is the recommended method not only because it is faster but also because the procedure for the upcoming <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test will be the same for the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-test.</p> <p>3. Test Statistic.</p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 55px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8a6fa1db62b37dd88d78bc5897abba1e_l3.svg" height="55" width="297" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[z_{\rm test} = \frac{\bar{x} - k}{\left( \frac{\sigma}{\sqrt{n}}\right)} = \frac{43260 - 42000}{\left( \frac{5230}{\sqrt{30}}\right)} = 1.32\]" title="Rendered by QuickLaTeX.com" /></p> <p>4. Decision.</p> <p style="padding-left: 40px;">Draw a picture so you can see the critical region :</p> <div class="wp-nocaption wp-image-1995 aligncenter"><img class="wp-image-1995 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.07-300x169.png" alt="" width="367" height="207" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.07-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.07-768x433.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.07-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.07-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.07-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.07.png 830w" /></div> <p style="padding-left: 40px;">So <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> is in the non-critical region: Do not reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />.</p> <p>5. Interpretation.</p> <p style="padding-left: 40px;">There is not enough evidence, from a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-test at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />, to support the claim that professors earn more than $42,000/year on average.</p> <p style="text-align: right;">▢</p> <p>So where does Equation (9.1) come from? It’s an application of the central limit theorem! In Example 9.2, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ee93e34604d099d797b7daa339724226_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x} = 43,260" title="Rendered by QuickLaTeX.com" height="16" width="86" style="vertical-align: -4px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1da46e382c15db6a7b79b799f2eea59c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n = 30" title="Rendered by QuickLaTeX.com" height="12" width="52" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0e4f4b0ef304fdd8aaabc80ee156d9d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma = 5230" title="Rendered by QuickLaTeX.com" height="13" width="70" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9c21e2f1576f41caf66b495bf4c239ff_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="k = 42,000" title="Rendered by QuickLaTeX.com" height="17" width="86" style="vertical-align: -4px;" /> on the null hypothesis of a right-tailed test. The central limit theorem says that <em>if</em> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> is true then we can expect the sample means, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> to be distributed as shown in the top part of Figure 9.1. Setting <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /> means that if the actual sample mean, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> ends up in the tail of the expected (under <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />) distribution of sample means then we consider that either we picked an unlucky 5<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\%" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> sample <em>or</em> the null hypothesis, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />, is not true. In taking that second option, rejecting <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />, we are willing to live with the 0.05 probability that we made a wrong choice — that we made a type I error.</p> <div class="wp-caption aligncenter" id="attachment_1997" aria-describedby="caption-attachment-1997" style="width: 411px"><img class="wp-image-1997" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.1-270x300.png" alt="" width="411" height="457" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.1-270x300.png 270w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.1-768x854.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.1-65x72.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.1-225x250.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.1-350x389.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.1.png 838w" /><div class="wp-caption-text" id="caption-attachment-1997">Figure 9.1: Derivation of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> test statistic.</div></div> <p>Referring to Figure 9.1 again, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-41eb44b7c504f3a56f0e1a2addc09701_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical} = 1.645" title="Rendered by QuickLaTeX.com" height="17" width="114" style="vertical-align: -4px;" /> on the lower picture defines the critical region of area <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /> (in this case). It corresponds to a value <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2e15fb33bda00e5649858a9dae3ee0a6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}_{\rm critical}" title="Rendered by QuickLaTeX.com" height="15" width="51" style="vertical-align: -4px;" /> on the upper picture which also defines a critical region of area <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />. So comparing <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2e15fb33bda00e5649858a9dae3ee0a6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}_{\rm critical}" title="Rendered by QuickLaTeX.com" height="15" width="51" style="vertical-align: -4px;" /> on the original distribution of sample means, as given by the sampling theory of the central limit theorem, is equivalent, after <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation, to comparing <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8b79642b0595ce68f947126027303d82_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm test}" title="Rendered by QuickLaTeX.com" height="11" width="29" style="vertical-align: -3px;" /> with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-791b1de4bec9423cdfd8f2b2198a18b9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm critical}" title="Rendered by QuickLaTeX.com" height="12" width="49" style="vertical-align: -4px;" />. That is, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8b79642b0595ce68f947126027303d82_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm test}" title="Rendered by QuickLaTeX.com" height="11" width="29" style="vertical-align: -3px;" /> is the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transform of the data value <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" />, exactly as given by Equation (9.1).</p> <p><strong>One-tailed tests</strong></p> <p>From a frequentist point of view, a one-tailed test is a a bit of a cheat. You use a one-tailed test when you know <em>for sure</em> that your test value or statistic is greater than (or less than) the null hypothesis value. That is, for the case of means here, you know <em>for sure</em> that the mean of the population, if it is different from the null hypothesis mean, if greater than (or less than) the null hypothesis mean. In other words, you need some <em>a priori</em> information (a Bayesian concept) <em>before</em> you do the formal hypothesis test.</p> <p>In the examples that we will work through in this course, we will consider one-tailed tests when they make logical sense and will not require formal <em>a priori</em> information to justify the selection of a one-tailed test. For a one-tail test to make logical sense, the alternate hypothesis, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" />, must be true on the face value of the data. That is, if we substitute the value of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-461fe1a58a75801541487ddf10d32abd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu" title="Rendered by QuickLaTeX.com" height="12" width="11" style="vertical-align: -4px;" /> into the statement of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> (for the test of means) then it should be a true statement. Otherwise, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> is blatantly false and there is no need to do any statistical testing. In any statistical test, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> must be true at face value and we do the test to see if <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> is <em>statistically true</em>. Another way tho think about this is to think of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> as a fuzzy number. As a sharp number a statement like “<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9712cecc12bf517f81cdbeaa411c746b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> k" title="Rendered by QuickLaTeX.com" height="13" width="43" style="vertical-align: 0px;"&gt;” may be true, but <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> is fuzzy because of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> (think <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6ae4941b8781b313ebd7351d849a405b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x} = \bar{x} \pm s" title="Rendered by QuickLaTeX.com" height="12" width="74" style="vertical-align: 0px;" /> to get the fuzzy number idea). So “<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9712cecc12bf517f81cdbeaa411c746b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> k" title="Rendered by QuickLaTeX.com" height="13" width="43" style="vertical-align: 0px;"&gt;” may not be true when <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> is considered to be a fuzzy number<span class="footnote">Fuzzy numbers can be treated rigorously in a mathematical sense. See, e.g. Kaufmann A, Gupta MM, <em>Introduction to fuzzy arithmetic: theory and applications</em>, Van Nostrand Reinhold Co., 1991.</span></p> <p>When we make our decision (step 4) we consider the equality part of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> statement in one-tailed tests. This equality is the strict <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> under all circumstances but we use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-76929380bd24b7579265d2c8705fcd82_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\geq" title="Rendered by QuickLaTeX.com" height="15" width="12" style="vertical-align: -3px;" /> or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f3a9d6292d83e8712327344adf95f519_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\leq" title="Rendered by QuickLaTeX.com" height="15" width="12" style="vertical-align: -3px;" /> is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> statements simply because they are the logical opposite of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d5fae947beab7b30f45d5b6603772f41_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&lt;" title="Rendered by QuickLaTeX.com" height="11" width="12" style="vertical-align: 0px;" /> or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6a5598f6c52dfad4d548aabcf09fbca4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" />" title="Rendered by QuickLaTeX.com" height="11" width="12" style="vertical-align: 0px;"&gt; in the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> statements. So people may have an issue with this statement of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> but we will keep it because of the logical completeness of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> pair and the fact that hypothesis testing is about choosing between two well-defined alternatives.</p> <p><strong><em>p</em>-Value</strong></p> <p>The critical statistic defines an area, a probability, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> that is the maximum probability that we are willing to live with for making a type I error of incorrectly rejecting <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. The test statistic also defines an analogous area, called <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> or the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value or (by SPSS especially) the significance. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value represents the best guess from the data that you will make a type I error if you reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. Computer programs compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-values using CDFs. So when you use a computer (like SPSS) you don’t need (or usually have) the critical statistic and you will make your decision (step 4) using the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value associated with the test statistic according to the rule:</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b232db31c6642fb7c0466d0714bb70d9_l3.svg" height="17" width="143" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[  \mbox{If } p\leq \alpha \mbox{ reject } H_{0}.\]" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d41e06b3f92dc53599a22fc6614f1cd3_l3.svg" height="17" width="199" class="ql-img-displayed-equation quicklatex-auto-format" alt="image" /> \alpha \mbox{ do not reject } H_{0}.\]" title="Rendered by QuickLaTeX.com"&gt;</p> <p>The method of comparing test and critical statistics is the traditional approach, popular before computers because is is less work to compute the two statistics than it is to compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />. When we work problem by hand we will use the traditional approach. When we use SPSS we will look at the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value to make our decision. To connect the two approaches pedagogically we will estimate the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value by hand for a while.</p> <p><strong>Example 9.3</strong> : Compute the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f6c83e327d8000d4db607a599ab831e1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z{\rm test} = 1.32" title="Rendered by QuickLaTeX.com" height="13" width="92" style="vertical-align: -1px;" /> of Example 9.2.</p> <p><em>Solution</em> : This calculation can happen as soon as you have the test statistic in step 3. The first thing to do is to sketch a picture of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value so that you know what you are doing, see Figure 9.2.</p> <div class="wp-caption aligncenter" id="attachment_1999" aria-describedby="caption-attachment-1999" style="width: 375px"><img class="wp-image-1999" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.2-300x159.png" alt="" width="375" height="199" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.2-300x159.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.2-65x34.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.2-225x119.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.2-350x185.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.2.png 668w" /><div class="wp-caption-text" id="caption-attachment-1999">Figure 9.2 : The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value associated with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-96f751d5925ee27d0d69985df797c2de_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm test} = 1.32" title="Rendered by QuickLaTeX.com" height="15" width="86" style="vertical-align: -3px;" /> in a one-tail test.</div></div> <p>Using the <strong>Standard Normal Distribution Table</strong> to find the tail area associated with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f6c83e327d8000d4db607a599ab831e1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z{\rm test} = 1.32" title="Rendered by QuickLaTeX.com" height="13" width="92" style="vertical-align: -1px;" />, we compute :</p> <p class="ql-center-displayed-equation" style="line-height: 41px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0acbc0de4f56f9496227a7bf16689d26_l3.svg" height="41" width="259" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{eqnarray*} p(z_{\rm test}) &amp; = &amp; 0.5 - A(z_{\rm test}) \\ &amp;=&amp; 0.5 - 0.4066 = 0.034 \end{eqnarray*}" title="Rendered by QuickLaTeX.com" /></p> <p>That is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ec1f36b3bd6c410051c2802da9a0cfd6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p = 0.0934" title="Rendered by QuickLaTeX.com" height="16" width="84" style="vertical-align: -4px;" />. Since <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2587f127c6edd27ed805a807739e28d5_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> (\alpha = 0.05)" title="Rendered by QuickLaTeX.com" height="18" width="198" style="vertical-align: -4px;"&gt;, we do not reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> in our decision step (step 4).</p> <p style="text-align: right;">▢</p> <p>When using the <strong>Standard Normal Distribution Table</strong> to find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-values for a given <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> you compute).</p> <ul><li>For <em>two-tailed</em> tests: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f873d7d6d9bf024affe7382d4ad6be6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p(z) = 2(0.5 - A(z))" title="Rendered by QuickLaTeX.com" height="18" width="159" style="vertical-align: -4px;" />. See Figure 9.3.</li> <li>For <em>one-tailed</em> tests: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-edf117e18190ab22a6ca9a1836fc38da_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p(z) = 0.5 - A(z)" title="Rendered by QuickLaTeX.com" height="18" width="136" style="vertical-align: -4px;" /> (as in Example 9.3)<span class="footnote">Of course substitute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-96a5976f6bb7c0137cd12c6fb2fc2759_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="-z" title="Rendered by QuickLaTeX.com" height="8" width="22" style="vertical-align: 0px;" /> in the formula for a left tail test.</span>.</li> </ul> <p>Don’t try to remember these formula, draw a picture to see what the situation is.</p> <div class="wp-caption aligncenter" id="attachment_2000" aria-describedby="caption-attachment-2000" style="width: 448px"><img class="wp-image-2000" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.3-300x142.png" alt="" width="448" height="212" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.3-300x142.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.3-768x364.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.3-65x31.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.3-225x107.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.3-350x166.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.3.png 802w" /><div class="wp-caption-text" id="caption-attachment-2000">Figure 9.3 : The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value associated with a two-tailed <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8b79642b0595ce68f947126027303d82_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z_{\rm test}" title="Rendered by QuickLaTeX.com" height="11" width="29" style="vertical-align: -3px;" />. Since <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is defined by, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fe9e3c06233f6af868cddb2b5c701b5b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\pm z_{\rm critical}" title="Rendered by QuickLaTeX.com" height="16" width="63" style="vertical-align: -4px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> is defined by <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c6fd4d9715e307d2cacaf16cccd65c4a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\pm z_{\rm test}" title="Rendered by QuickLaTeX.com" height="15" width="43" style="vertical-align: -3px;" />.</div></div> <h1 style="text-align: left;" id="chapter-129-section-1" class="section-header">9.2.1 What <em>p</em>-value is significant?</h1> <p>By culture, psychologists use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /> to define the decision point for when to reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. In that case, if <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4c23954e6839c52f9eb0bb42ca4b3ca2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p &lt; 0.05" title="Rendered by QuickLaTeX.com" height="17" width="65" style="vertical-align: -4px;" /> then it means that the data (the test statistic) indicates there is less than a 5% chance that the result is a statistical fluke; that there is less than a 5% chance that the decision is a Type I error. So, in this course, we assume that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /> unless <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is otherwise given explicitly for pedagogical purposes. The choice of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /> is actually fairly lax and has led to the inability to reproduce psychological experiments in many cases (about 5% of course). The standards in other scientific disciplines can be different. In particle physics experiments, for example, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1e03b2dabed931cd20abf8cef1a4a62b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p &lt; 0.003" title="Rendered by QuickLaTeX.com" height="16" width="75" style="vertical-align: -4px;" /> is referred to as “evidence” for a discovery and they must have <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-969605523dda7646094f3473bb8262ea_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p &lt; 0.0000006" title="Rendered by QuickLaTeX.com" height="16" width="111" style="vertical-align: -4px;" /> before an actual discovery, like the discovery of the Higgs boson, is announced. With z test statistics, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9cc5b3a49eedc76440bce9affbb72a91_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.003" title="Rendered by QuickLaTeX.com" height="12" width="76" style="vertical-align: 0px;" /> represents the area in the tails of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> distribution 3 standard deviations, or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c434e618cf308dd8af63c4207a0a748d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="3 \sigma" title="Rendered by QuickLaTeX.com" height="12" width="20" style="vertical-align: 0px;" />, from the mean. The value <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7878bab0912d47c7c3741f6c0c849fb8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.0000006" title="Rendered by QuickLaTeX.com" height="12" width="112" style="vertical-align: 0px;" /> represents tail area <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c5a7b4d9d7c18771319cc86096fd8b5f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="5 \sigma" title="Rendered by QuickLaTeX.com" height="13" width="20" style="vertical-align: 0px;" />, from the mean. So you may hear physicists saying that they have “5 sigma” evidence when they announce a discovery.</p> 
</div></div>
<div class="chapter standard" id="chapter-slug-9-3-t-test-for-means" title="9.3 t-Test for Means"><div class="chapter-title-wrap"><h3 class="chapter-number">35</h3><h2 class="chapter-title">9.3 t-Test for Means</h2></div><div class="ugc chapter-ugc"><p style="text-align: left;">Hypothesis testing for means for sample set sizes in <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a6ff1f88067e09a79244a9e3f1e78e7d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#60;&#51;&#48;" title="Rendered by QuickLaTeX.com" height="12" width="52" style="vertical-align: 0px;" /> where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> is used as an estimate for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is the same as for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6dc0fb4ca3a9794b3d2c49ccdb189417_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#32;&#92;&#103;&#101;&#113;&#32;&#51;&#48;" title="Rendered by QuickLaTeX.com" height="15" width="52" style="vertical-align: -3px;" /> except that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> and not <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> is the test statistic<span class="footnote">Again, SPSS applies the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test, uses <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> directly, for any sample size.</span>. Specifically, the test statistic is</p> <p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b84cc2ef9426c5b4bdb158accaacd0b8_l3.svg" height="42" width="98" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#116;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#32;&#45;&#32;&#107;&#125;&#123;&#115;&#47;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3422b6bb5c160593658b7c39425d9880_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;" title="Rendered by QuickLaTeX.com" height="13" width="9" style="vertical-align: 0px;" /> from any of the hypotheses listed in the table you saw in the previous section (one- and two-tailed versions):</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 63.0303%; height: 90px;"><tbody><tr><td class="shaded" style="width: 33.3333%; text-align: center;">Two-Tailed Test</td> <td class="shaded" style="width: 33.3333%; text-align: center;">Right-Tailed Test</td> <td class="shaded" style="width: 33.3333%; text-align: center;">Left-Tailed Test</td> </tr> <tr><td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-13f83164c11f6684427b030c23ccddb8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#32;&#61;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c4c2c776a4412feda050c0d5c2608910_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#32;&#92;&#108;&#101;&#113;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-29207e1e094e692ff6270d822cd6cfce_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#32;&#92;&#103;&#101;&#113;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e453bcdab0213f7ca21013d95a0381b2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#32;&#92;&#110;&#101;&#113;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fe9767f50329f8d8f1e3e850cb809403_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#32;&#62;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ce3de118f45024c01903bfce7bd1f7e0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#32;&#60;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="43" style="vertical-align: -4px;" /></td> </tr> </tbody> </table> <p>The critical statistic is found in the<strong><em>t</em> Distribution Table</strong> with the degrees of freedom <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170fcb5a47e3b2f5391ebc8e16d02db_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#32;&#110;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="13" width="74" style="vertical-align: -1px;" />.</p> <p><strong>Example 9.4</strong> : A physician claims that joggers, maximal volume oxygen uptake is greater than the average of all adults. A sample of 15 joggers has a mean of 40.6 ml/kg and a standard deviation of 6 ml/kg. If the average of all adults is 36.7 ml/kg, is there enough evidence to support the claim at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />?</p> <p>1. Hypothesis.</p> <p style="padding-left: 40px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f4d57517980a6ccf6a1aca813106a691_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#32;&#58;&#32;&#92;&#109;&#117;&#32;&#92;&#108;&#101;&#113;&#32;&#51;&#54;&#46;&#55;" title="Rendered by QuickLaTeX.com" height="17" width="104" style="vertical-align: -4px;" /></p> <p style="padding-left: 40px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-60700c8050ec226d0f9b43f4cddfbadf_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;&#32;&#58;&#32;&#32;&#92;&#109;&#117;&#32;&#62;&#32;&#51;&#54;&#46;&#55;" title="Rendered by QuickLaTeX.com" height="17" width="104" style="vertical-align: -4px;" />  (claim)</p> <p>2. Critical statistic.</p> <p style="padding-left: 40px;">In the<strong><em>t</em> Distribution Table</strong>, find the column for one-tailed test at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /> and the line for degrees of freedom <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c727b8f5f6fcc661ce452c3f705f88a6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#32;&#110;&#45;&#49;&#32;&#61;&#32;&#49;&#52;" title="Rendered by QuickLaTeX.com" height="13" width="116" style="vertical-align: -1px;" />. With that find</p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-816a4f8ce04ac11ef2ff5ce4bb9f8919_l3.svg" height="17" width="112" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#116;&#95;&#123;&#92;&#114;&#109;&#32;&#99;&#114;&#105;&#116;&#105;&#99;&#97;&#108;&#125;&#32;&#61;&#32;&#49;&#46;&#55;&#54;&#49;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>3. Test statistic.</p> <div></div> <div style="text-align: center;">  <p class="ql-center-displayed-equation" style="line-height: 42px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3a871e7bbaea7f0a8f29fc78bafe99ad_l3.svg" height="42" width="98" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#32;&#32;&#32;&#116;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#32;&#45;&#32;&#107;&#125;&#123;&#115;&#47;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> </div> <p style="padding-left: 40px;">To compute this we need : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-39464be02d8555ce800ccde28d2be71b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#32;&#61;&#32;&#52;&#48;&#46;&#54;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: -1px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-53e9a69669cac611ff2fd0cf0be4e986_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#61;&#32;&#54;" title="Rendered by QuickLaTeX.com" height="12" width="41" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b2846024eeba12b70d18be78a974539d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#32;&#61;&#32;&#49;&#53;" title="Rendered by QuickLaTeX.com" height="14" width="51" style="vertical-align: -1px;" /> from the problem statement. From the hypothesis we have <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-29ce0fc4fa5d7e1112c6d3762bc3dc5f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;&#32;&#61;&#32;&#51;&#54;&#46;&#55;" title="Rendered by QuickLaTeX.com" height="13" width="65" style="vertical-align: 0px;" />. So</p> <p style="padding-left: 40px; text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 46px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-14c07056c3a8697aef08d52f092ba221_l3.svg" height="46" width="206" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#116;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#52;&#48;&#46;&#54;&#32;&#45;&#32;&#51;&#54;&#46;&#55;&#125;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#54;&#47;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#49;&#53;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#125;&#32;&#61;&#32;&#50;&#46;&#53;&#49;&#55;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;">At this point we can <em>estimate</em> the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value using the<strong><em>t</em> Distribution Table</strong>, which doesn&#8217;t have as much information about the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-distribution as the <strong>Standard Normal Distribution Table</strong> has about the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distribution, so we can only estimate. The procedure is: In the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-75ec8b2ca46598efb47eb44f555cc192_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#32;&#49;&#52;" title="Rendered by QuickLaTeX.com" height="13" width="52" style="vertical-align: -1px;" /> row, look for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> values that bracket <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2ce0d3334468abfff909c466810dfdc0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;&#32;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#50;&#46;&#53;&#49;&#55;" title="Rendered by QuickLaTeX.com" height="16" width="94" style="vertical-align: -3px;" />. They are 2.145 (with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5b30f253247cc57477c270c607428f95_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#50;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="75" style="vertical-align: 0px;" /> in the column heading for one-tailed tests) and 2.624 (associated with a one-tail <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fef59435375469c4dfa5f6c25a323dc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#49;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: -1px;" />).</p> <p style="padding-left: 40px;">So,</p> <p style="padding-left: 40px; text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0c5fc25a30ffb7b8f3ec796de81cdfed_l3.svg" height="17" width="137" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#48;&#46;&#48;&#49;&#48;&#32;&#60;&#32;&#112;&#32;&#60;&#32;&#48;&#46;&#48;&#50;&#53;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;">is our estimate<span class="footnote">If you know how to interpolate then you can find a single value for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />.</span> for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />.</p> <p>4. Decision.</p> <div class="wp-nocaption wp-image-1756 aligncenter"><img class="wp-image-1756 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig72t1png-300x139.jpg" alt="" width="427" height="198" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig72t1png-300x139.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig72t1png-65x30.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig72t1png-225x104.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig72t1png-350x162.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig72t1png.jpg 653w" /></div> <p style="padding-left: 40px;">Reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. We can also base this decision on our <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value estimate since :</p> <p style="padding-left: 40px; text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2aba9561d809edce0194547c7b272c71_l3.svg" height="18" width="254" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#40;&#48;&#46;&#48;&#49;&#48;&#32;&#60;&#32;&#112;&#32;&#60;&#32;&#48;&#46;&#48;&#50;&#53;&#41;&#32;&#60;&#32;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#53;&#41;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>5. Interpretation.</p> <p style="padding-left: 40px;">There is enough evidence to support the claim that the joggers&#8217; maximal volume oxygen uptake is greater than 36.7 ml/kg using a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />.</p> <p style="text-align: right;">▢</p> <p><em>Fine point</em>. When we use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> in a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> (or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> test) as an estimate for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />, we are actually assuming that distribution of sample means is normal. The central limit theorem tells us that the distribution of sample means is approximately normal so generally we don&#8217;t worry about this restriction. If the population is normal then the distribution of sample means will be exactly normal. Some stats texts state that we need to assume that the population is normal for a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test to be valid. However, the central limit theorem&#8217;s conclusion guarantees that the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test is robust to violations of that assumption. If the population has a very wild distribution then <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> may be bad estimate for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> because the distribution of sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> values will not follow the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4cbe148bd9da75d2e668ddd0223dbf9f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> distribution. The chance if this happening becomes smaller the larger the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />, again by the central limit theorem.</p> <p><strong>Origin of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-distribution</strong></p> <p>We can easily define the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-distribution via random variables associated with the following stochastic processes. Let :</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c2d3a1e563a1a7b862308cde17951bab_l3.svg" height="43" width="596" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#90;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#32;&#97;&#32;&#114;&#97;&#110;&#100;&#111;&#109;&#32;&#118;&#97;&#114;&#105;&#97;&#98;&#108;&#101;&#32;&#119;&#105;&#116;&#104;&#32;&#97;&#32;&#36;&#122;&#36;&#45;&#100;&#105;&#115;&#116;&#114;&#105;&#98;&#117;&#116;&#105;&#111;&#110;&#125;&#32;&#92;&#92; &#88;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#32;&#97;&#32;&#114;&#97;&#110;&#100;&#111;&#109;&#32;&#118;&#97;&#114;&#105;&#97;&#98;&#108;&#101;&#32;&#119;&#105;&#116;&#104;&#32;&#97;&#32;&#36;&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;&#36;&#32;&#100;&#105;&#115;&#116;&#114;&#105;&#98;&#117;&#116;&#105;&#111;&#110;&#32;&#119;&#105;&#116;&#104;&#32;&#36;&#92;&#110;&#117;&#36;&#32;&#100;&#101;&#103;&#114;&#101;&#101;&#115;&#32;&#111;&#102;&#32;&#102;&#114;&#101;&#101;&#100;&#111;&#109;&#46;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>Then the random variable</p> <p class="ql-center-displayed-equation" style="line-height: 37px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-02d5e40e6f438c6141b1de399d9e1bdf_l3.svg" height="37" width="55" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#84;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#90;&#125;&#123;&#88;&#125;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>is a random variable that follows a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-distribution with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-84f850cb7d68cf5b0b1a685b849a8674_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> degrees of freedom.</p> </div></div>
<div class="chapter standard" id="chapter-slug-9-4-z-test-for-proportions" title="9.4 z-Test for Proportions"><div class="chapter-title-wrap"><h3 class="chapter-number">36</h3><h2 class="chapter-title">9.4 z-Test for Proportions</h2></div><div class="ugc chapter-ugc"><p>The possible hypothesis pairs are :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 79.5152%; height: 42px;"><tbody><tr style="height: 14px;"><td class="shaded" style="width: 33.3333%; text-align: center; height: 14px;">Two-tailed Test</td> <td class="shaded" style="width: 33.3333%; text-align: center; height: 14px;">Right-tailed Test</td> <td class="shaded" style="width: 33.3333%; text-align: center; height: 14px;">Left-tailed Test</td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-62622f18dbb567c8293616af94aaaad9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#58;&#112;&#61;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="79" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4a124a4c45accd190a7cbb5cbab54ef7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#58;&#112;&#92;&#108;&#101;&#113;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="79" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-82ee2c665953613c7040503e949a3cf8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#58;&#112;&#92;&#103;&#101;&#113;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="79" style="vertical-align: -4px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1861c69b9556c433655d55ce28351359_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;&#58;&#112;&#92;&#110;&#101;&#113;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="79" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d09c0b03209e1f1202467b445a23df51_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;&#58;&#112;&#62;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="79" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-881b1c256a196751ac72f817b050b083_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;&#58;&#112;&#60;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="79" style="vertical-align: -4px;" /></td> </tr> </tbody> </table> <p>The steps in hypothesis testing for proportions are the same as hypothesis testing for means. Even the generic test statistic formula is the similar :</p> <p class="ql-center-displayed-equation" style="line-height: 39px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6900f92ba440ea66a9f7ad235b6a94b1_l3.svg" height="39" width="401" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#109;&#98;&#111;&#120;&#123;&#116;&#101;&#115;&#116;&#32;&#118;&#97;&#108;&#117;&#101;&#32;&#125;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#109;&#98;&#111;&#120;&#123;&#40;&#111;&#98;&#115;&#101;&#114;&#118;&#101;&#100;&#32;&#118;&#97;&#108;&#117;&#101;&#41;&#45;&#40;&#101;&#120;&#112;&#101;&#99;&#116;&#101;&#100;&#32;&#36;&#72;&#95;&#48;&#36;&#32;&#118;&#97;&#108;&#117;&#101;&#41;&#125;&#125;&#123;&#92;&#109;&#98;&#111;&#120;&#123;&#115;&#116;&#97;&#110;&#100;&#97;&#114;&#100;&#32;&#101;&#114;&#114;&#111;&#114;&#125;&#125;&#46;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>but now the observed and expected values are proportions, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1479a87898589a2cfb5f4d46853bb47a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#104;&#97;&#116;&#123;&#112;&#125;" title="Rendered by QuickLaTeX.com" height="17" width="10" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> respectively. The standard error in this case is</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2c1caf2304085151d6193e45bff87b9a_l3.svg" height="43" width="200" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#112;&#113;&#125;&#123;&#110;&#125;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#123;&#98;&#105;&#110;&#111;&#109;&#105;&#97;&#108;&#125;&#125;&#123;&#110;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#112;&#113;&#125;&#125;&#123;&#110;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>Using this information with the generic form, which mimics a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> test statistic, the proportions test statistic is</p> <p class="ql-center-displayed-equation" style="line-height: 56px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1e0d9b55bbd3f80ee8245b58cc2ef165_l3.svg" height="56" width="98" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#122;&#95;&#123;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#104;&#97;&#116;&#123;&#112;&#125;&#45;&#112;&#125;&#123;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#112;&#113;&#125;&#123;&#110;&#125;&#125;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> is the number <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3422b6bb5c160593658b7c39425d9880_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;" title="Rendered by QuickLaTeX.com" height="13" width="9" style="vertical-align: 0px;" /> which appears in the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> hypothesis statement (see table above). This test statistic is valid only if <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5b10d0f49f083903e183e801e6bb92d7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#112;&#32;&#92;&#103;&#101;&#113;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="51" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c74f36200f06a8623fbb848b97e7f4cc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#113;&#32;&#92;&#103;&#101;&#113;&#32;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="51" style="vertical-align: -4px;" /> (so that the normal distribution provides a good approximation for the relevant binomial distribution). But, even though the test statistic can be moulded into the generic form, the proportions test statistic comes from the sampling theory given by the binomial distributions and not from any distribution that has a standard error {\em per se}. The normal distribution with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0aac6121bc5291e87f59f90d3c519e17_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#32;&#61;&#32;&#110;&#112;" title="Rendered by QuickLaTeX.com" height="12" width="54" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-86be9ff817ec994de2f290d6fc6b2701_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#32;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#112;&#113;&#125;" title="Rendered by QuickLaTeX.com" height="18" width="78" style="vertical-align: -6px;" /> (remember those binomial distribution formulae?) <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformed to a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distribution with mean 0 and standard deviation 1 gives the test statistic formula. See the discussion in Section 8.4.</p> <p><strong>Example 9.5</strong> : An attorney claims that more than 25<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#37;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> of all lawyers advertise. A sample of 200 lawyers in a certain city showed that 63 had used some form of advertising. At <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />, is there enough evidence to support the attorney&#8217;s claim?</p> <p><em>Solution</em> :</p> <p>1. Hypotheses.</p> <p style="text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bfdfb9db23d6499bfe93e8048c36f003_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#58;&#32;&#112;&#32;&#92;&#108;&#101;&#113;&#32;&#48;&#46;&#50;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="101" style="vertical-align: -4px;" />   ,   <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-22048aff9d0ca1c28f8b2b11419d64c4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;&#58;&#32;&#112;&#32;&#62;&#32;&#48;&#46;&#50;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="101" style="vertical-align: -4px;" /> (claim)</p> <p>2. Critical statistic.</p> <p style="padding-left: 40px;">Using the<strong><em>t</em> Distribution Table</strong> (last line) for a one tailed test at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /> we find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-41eb44b7c504f3a56f0e1a2addc09701_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;&#95;&#123;&#92;&#114;&#109;&#32;&#99;&#114;&#105;&#116;&#105;&#99;&#97;&#108;&#125;&#32;&#61;&#32;&#49;&#46;&#54;&#52;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="114" style="vertical-align: -4px;" /></p> <p>3. Test statistic.</p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 56px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6defeebbe8772b9c7b116708113939d2_l3.svg" height="56" width="97" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#122;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#104;&#97;&#116;&#123;&#112;&#125;&#32;&#45;&#32;&#112;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#112;&#113;&#125;&#123;&#110;&#125;&#125;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;">So using</p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 36px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5763f9fd7d28d6593f6c01d43eb5a786_l3.svg" height="36" width="221" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#104;&#97;&#116;&#123;&#112;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#54;&#51;&#125;&#123;&#50;&#48;&#48;&#125;&#32;&#61;&#32;&#48;&#46;&#51;&#49;&#53;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#112;&#32;&#61;&#32;&#48;&#46;&#50;&#53;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cc27b28aca7eeda2fe7fc1f86c8fec9c_l3.svg" height="17" width="240" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#113;&#32;&#61;&#32;&#49;&#32;&#45;&#32;&#48;&#46;&#50;&#53;&#32;&#61;&#32;&#48;&#46;&#55;&#53;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#110;&#32;&#61;&#32;&#50;&#48;&#48;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;">find</p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 56px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-075465df59e25e6832517ebbc3078ac1_l3.svg" height="56" width="211" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#122;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#48;&#46;&#51;&#53;&#32;&#45;&#32;&#48;&#46;&#50;&#53;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#48;&#46;&#50;&#53;&#41;&#40;&#48;&#46;&#55;&#53;&#41;&#125;&#123;&#50;&#48;&#48;&#125;&#125;&#125;&#32;&#61;&#32;&#50;&#46;&#49;&#50;&#46;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;">We can also find the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> value along with the critical statistic. (See the picture for the next step.) Use the <strong>Standard Normal Distribution Table</strong> to find</p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 71px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3673d9d395c886fa8f4b84064562ec0c_l3.svg" height="71" width="237" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#112;&#40;&#122;&#41;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#48;&#46;&#53;&#32;&#45;&#32;&#65;&#40;&#122;&#41;&#32;&#92;&#92; &#38;&#32;&#61;&#32;&#38;&#32;&#48;&#46;&#53;&#32;&#45;&#32;&#48;&#46;&#52;&#56;&#51;&#48;&#32;&#61;&#32;&#48;&#46;&#48;&#49;&#55;&#32;&#92;&#92; &#112;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#48;&#46;&#48;&#49;&#55; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>4. Decision.</p> <p style="padding-left: 40px;">Refer to the diagram in Figure 9.4. It shows <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5d9748cc18b5391e12cc7e345006dec8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="27" style="vertical-align: -3px;" /> in the rejection region. So we reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />.</p> <div class="wp-caption aligncenter" id="attachment_1754" aria-describedby="caption-attachment-1754" style="width: 447px"><img class="wp-image-1754" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig75apng-300x155.jpg" alt="" width="447" height="231" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig75apng-300x155.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig75apng-65x34.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig75apng-225x116.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig75apng-350x181.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig75apng.jpg 622w" /><div class="wp-caption-text" id="caption-attachment-1754">Figure 9.4 : The null hypothesis situation for Example 9.5</div></div> <p style="padding-left: 40px;">We come, of course, to the same decision by considering the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value :</p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b8c07e2a7e3967928c49a0afd96c4c50_l3.svg" height="18" width="180" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#40;&#112;&#32;&#61;&#32;&#48;&#46;&#48;&#49;&#55;&#41;&#32;&#60;&#32;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#53;&#41;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>5. Interpretation.</p> <p style="padding-left: 40px;">There is enough evidence, using a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-test at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />, to support the claim that more than <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ff1312b90fcddc1db43cf2befe9e0ed2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#50;&#53;&#92;&#37;" title="Rendered by QuickLaTeX.com" height="15" width="32" style="vertical-align: -1px;" /> of the lawyers use some form of advertising.</p> <p style="text-align: right;">▢</p> </div></div>
<div class="chapter standard" id="chapter-slug-9-5-chi-squared-test-for-variance-or-standard-deviation" title="9.5 Chi Squared Test for Variance or Standard Deviation"><div class="chapter-title-wrap"><h3 class="chapter-number">37</h3><h2 class="chapter-title">9.5 Chi Squared Test for Variance or Standard Deviation</h2></div><div class="ugc chapter-ugc"><p>The possible hypothesis pairs are, for variance :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 79.5152%; height: 42px;"><tbody><tr style="height: 14px;"><td class="shaded" style="width: 33.3333%; text-align: center; height: 14px;">Two-tailed Test</td> <td class="shaded" style="width: 33.3333%; text-align: center; height: 14px;">Right-tailed Test</td> <td class="shaded" style="width: 33.3333%; text-align: center; height: 14px;">Left-tailed Test</td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0074c954843bf7427deb35be86611edd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#58;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#61;&#107;" title="Rendered by QuickLaTeX.com" height="18" width="88" style="vertical-align: -3px;" /></td> <td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-671c3f12cd6b4ad0336cd4e6d89f6f1c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#58;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#92;&#108;&#101;&#113;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="18" width="88" style="vertical-align: -3px;" /></td> <td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b5043494fdb00c618f915673ee99ab6f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#58;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#92;&#103;&#101;&#113;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="18" width="88" style="vertical-align: -3px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bae29616320338b388f4f7b1bf8b1dc7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;&#58;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#92;&#110;&#101;&#113;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="19" width="88" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-583b9bb7b85e03effc43824ce94b129a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;&#58;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#62;&#107;" title="Rendered by QuickLaTeX.com" height="19" width="88" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6789666a113f5ef1c1fca0cf98b46392_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;&#58;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#60;&#107;" title="Rendered by QuickLaTeX.com" height="19" width="88" style="vertical-align: -4px;" /></td> </tr> </tbody> </table> <p>For standard deviation we use the square roots of everything :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 79.5152%; height: 42px;"><tbody><tr style="height: 14px;"><td class="shaded" style="width: 33.3333%; text-align: center; height: 14px;">Two-tailed Test</td> <td class="shaded" style="width: 33.3333%; text-align: center; height: 14px;">Right-tailed Test</td> <td class="shaded" style="width: 33.3333%; text-align: center; height: 14px;">Left-tailed Test</td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-968af5a57ba61194e5a127b16de2fc8c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#58;&#92;&#115;&#105;&#103;&#109;&#97;&#61;&#107;" title="Rendered by QuickLaTeX.com" height="16" width="81" style="vertical-align: -3px;" /></td> <td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-33d648a6e407f83a6fe044bcd780657e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#58;&#92;&#115;&#105;&#103;&#109;&#97;&#92;&#108;&#101;&#113;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="16" width="81" style="vertical-align: -3px;" /></td> <td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-71bb5263e0a74a5d589cd05f27eb14da_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#58;&#92;&#115;&#105;&#103;&#109;&#97;&#92;&#103;&#101;&#113;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="16" width="81" style="vertical-align: -3px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3eedc45bb652b55722d4ff5b0d0e2b2a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;&#58;&#92;&#115;&#105;&#103;&#109;&#97;&#92;&#110;&#101;&#113;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="81" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8d5bc0e5d75b207e5e8dbd3f89d71a94_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;&#58;&#92;&#115;&#105;&#103;&#109;&#97;&#62;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="81" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9f61915778c62be45d24d4c4205aca7d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;&#58;&#92;&#115;&#105;&#103;&#109;&#97;&#60;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="81" style="vertical-align: -4px;" /></td> </tr> </tbody> </table> <p>Note that we did not square root <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3422b6bb5c160593658b7c39425d9880_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;" title="Rendered by QuickLaTeX.com" height="13" width="9" style="vertical-align: 0px;" />. This is because we are using <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3422b6bb5c160593658b7c39425d9880_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;" title="Rendered by QuickLaTeX.com" height="13" width="9" style="vertical-align: 0px;" /> to stand in for whatever number. That number from <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> will appear in our formulae as either <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cc9e02a7ee97ee0f78742edeb5b38bdc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" /> or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> depending on the set up. Generally we will work with variance as we work through the problem and convert to standard deviation only in the last interpretation step if required by the wording of the question.</p> <p>The new test statistic is :</p> <p class="ql-center-displayed-equation" style="line-height: 39px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6e1c5fa38b18fec6879ae69f17fb758d_l3.svg" height="39" width="130" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#110;&#45;&#49;&#41;&#115;&#94;&#50;&#125;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" /> comes from the sample and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cc9e02a7ee97ee0f78742edeb5b38bdc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" /> comes from the number <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3422b6bb5c160593658b7c39425d9880_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;" title="Rendered by QuickLaTeX.com" height="13" width="9" style="vertical-align: 0px;" /> in <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. The degrees of freedom associated with the test statistic (for finding the critical statistic) is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170fcb5a47e3b2f5391ebc8e16d02db_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#32;&#110;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="13" width="74" style="vertical-align: -1px;" />. There is no mystery where this test statistic came from &#8212; this is just how <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> as a probability distribution is defined. So, for this test to be valid, <em>the population must be normally distributed</em>. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> test here is not very robust to violations of that assumption because there is no normalizing intermediate central limit theorem here.</p> <p>The critical regions on the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> distribution will appear as shown in Figure 9.5.</p> <div class="wp-caption aligncenter" id="attachment_1744" aria-describedby="caption-attachment-1744" style="width: 804px"><img class="wp-image-1744" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig76png-300x56.jpg" alt="" width="804" height="150" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig76png-300x56.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig76png-1024x191.jpg 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig76png-768x143.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig76png-65x12.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig76png-225x42.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig76png-350x65.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig76png.jpg 1431w" /><div class="wp-caption-text" id="caption-attachment-1744">Figure 9.5 : Schematics of the critical regions for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> tests of variance. In the two-tailed situation the tail areas are equal.</div></div> <p>Let&#8217;s work through an example of each hypotheses pair case. In all of the examples we assume that the population is normally distributed.</p> <p><strong>Example 9.6</strong> : An instructor wishes to see whether the variance in scores of the 23 students in her class is less than the variance of the population. The variance of the class is 198. is there enough evidence to support the claim that the variation of the students is less than the population variance <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-91abfcc0691135b9622684b00c013180_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#61;&#50;&#50;&#53;" title="Rendered by QuickLaTeX.com" height="15" width="68" style="vertical-align: 0px;" /> at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />?</p> <p><em>Solution</em> :</p> <p>1. Hypotheses.</p> <p style="text-align: center;"> </p> <p class="ql-center-displayed-equation" style="line-height: 20px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1548e119648090372fb0ee1d03aa4e9e_l3.svg" height="20" width="241" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#72;&#95;&#123;&#48;&#125;&#58;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#92;&#103;&#101;&#113;&#32;&#50;&#50;&#53;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#72;&#95;&#123;&#49;&#125;&#58;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#32;&#60;&#32;&#50;&#50;&#53;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>2. Critical statistic.</p> <p style="padding-left: 40px;">Refer to Figure 9.6 as we get the critical statistic from the <strong>Chi-squared Distribution Table</strong>. As we see in that figure, we must look in the column that corresponds to a right tail area of 0.95. The row we need is for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-97338360908fce5309e576f8aa8ffdad_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#32;&#110;&#45;&#49;&#61;&#50;&#51;&#45;&#49;&#61;&#50;&#50;" title="Rendered by QuickLaTeX.com" height="13" width="187" style="vertical-align: -1px;" />. With that information we find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0bca08009967f18e7e36ac40c44ade7c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#50;&#95;&#123;&#92;&#114;&#109;&#32;&#99;&#114;&#105;&#116;&#125;&#32;&#61;&#32;&#49;&#50;&#46;&#51;&#51;&#56;" title="Rendered by QuickLaTeX.com" height="21" width="106" style="vertical-align: -6px;" />.</p> <div class="wp-caption aligncenter" id="attachment_2012" aria-describedby="caption-attachment-2012" style="width: 529px"><img class="wp-image-2012" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/FIgure-9.6-300x126.jpg" alt="" width="529" height="222" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/FIgure-9.6-300x126.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/FIgure-9.6-768x321.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/FIgure-9.6-65x27.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/FIgure-9.6-225x94.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/FIgure-9.6-350x147.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/FIgure-9.6.jpg 817w" /><div class="wp-caption-text" id="caption-attachment-2012">Figure 9.6 : Schematics of the critical regions for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> tests of variance. In the two-tailed situation the tail areas are equal.</div></div> <p>3. Test statistic.</p> <p style="padding-left: 40px;">The values we need for the test statistic are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e0e623d8d44911cb7588c59c1536a006_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#50;&#50;&#53;" title="Rendered by QuickLaTeX.com" height="15" width="68" style="vertical-align: 0px;" /> (from <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />), <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7d27a9aed2838a528e2cdc69a67b4a2a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#49;&#57;&#56;" title="Rendered by QuickLaTeX.com" height="16" width="67" style="vertical-align: -1px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7b40c4ef7d062fbbdc248c11ab108b4e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#45;&#49;&#61;&#50;&#50;" title="Rendered by QuickLaTeX.com" height="13" width="82" style="vertical-align: -1px;" /> from the information in the problem. So :</p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 84px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6f3b2f3df8fd83d8239425097094c0e4_l3.svg" height="84" width="206" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#110;&#45;&#49;&#41;&#115;&#94;&#123;&#50;&#125;&#125;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#125;&#32;&#92;&#92; &#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#50;&#50;&#41;&#40;&#49;&#57;&#56;&#41;&#125;&#123;&#50;&#50;&#53;&#125;&#32;&#61;&#32;&#49;&#57;&#46;&#51;&#54; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;">At this point we can also estimate the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> value from the <strong>Chi-squared Distribution Table</strong>. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> value is the area under the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> distribution with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0964ba6c789c9f2b96da53d62083ed89_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#32;&#50;&#50;" title="Rendered by QuickLaTeX.com" height="12" width="51" style="vertical-align: 0px;" /> to the left of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3da64ff7b6e4b3f135311102458d284d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="37" style="vertical-align: -4px;" />. In the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0964ba6c789c9f2b96da53d62083ed89_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#32;&#50;&#50;" title="Rendered by QuickLaTeX.com" height="12" width="51" style="vertical-align: 0px;" /> row of the <strong>Chi-squared Distribution Table</strong> (in general use the closest <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-84f850cb7d68cf5b0b1a685b849a8674_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> if your particular value is not in the <strong>Chi-squared Distribution Table</strong>) hunt down the test statistic value of 19.38. You won&#8217;t find it but you can bracket it with values higher and lower than 19.38. Those numbers are 14.042 which has a right tail area of 0.90 (and so a left tail area of 0.10) and 30.813 which has a right tail area of 0.10 (and so a left tail area of 0.90). Recall that the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> in the column headings of the <strong>Chi-squared Distribution Table</strong> refers to right tail areas. So, considering the left tail areas we know that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a88bf6c1b4a27ffd553719538992c031_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#48;&#46;&#49;&#48;&#32;&#60;&#32;&#112;&#32;&#60;&#32;&#48;&#46;&#57;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="120" style="vertical-align: -4px;" /> since <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-269699414f9c69b7268956187a9dcd8f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#51;&#48;&#46;&#56;&#49;&#51;&#32;&#62;&#32;&#49;&#57;&#46;&#51;&#56;&#32;&#62;&#32;&#49;&#52;&#46;&#48;&#52;&#50;" title="Rendered by QuickLaTeX.com" height="13" width="186" style="vertical-align: -1px;" /> for the relevant <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> values.</p> <p>4. Decision.</p> <div class="wp-nocaption wp-image-1747 aligncenter"><img class="wp-image-1747 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig77apng-300x201.jpg" alt="" width="330" height="221" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig77apng-300x201.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig77apng-65x44.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig77apng-225x151.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig77apng-350x235.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig77apng.jpg 564w" /></div> <p style="padding-left: 40px;">Since <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-04ace88c942e1b7fce0f660ff4cabe89_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="32" style="vertical-align: -4px;" /> doesn&#8217;t fall in the rejection region, do not reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. We come to the same conclusion with our <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value estimate:</p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-310230f34c271afcad7a9f5c977193cf_l3.svg" height="18" width="236" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#40;&#48;&#46;&#49;&#48;&#32;&#60;&#32;&#112;&#32;&#60;&#32;&#48;&#46;&#57;&#48;&#41;&#32;&#62;&#32;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#53;&#41;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>5. Interpretation.</p> <p style="padding-left: 40px;">There is not enough evidence, at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /> with a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> test, to support the claim that the variation in test scores of the class is less than 225.</p> <p style="text-align: right;">▢</p> <p><strong>Example 9.7</strong> : A hospital administrator believes that the standard deviation of the number of people using out-patient surgery per day is greater than eight. A random sample of 15 days is selected. The data are shown below. At <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e4373527a619804f3b811a78e13c1e28_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="13" width="67" style="vertical-align: -1px;" /> is there enough evidence to support the administrator&#8217;s claim?</p> <p class="ql-center-displayed-equation" style="line-height: 14px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-de448f99c911e62d35b5dd81817c2a72_l3.svg" height="14" width="350" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#50;&#53;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#99;&#109;&#125;&#32;&#51;&#48;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#99;&#109;&#125;&#32;&#53;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#99;&#109;&#125;&#32;&#49;&#53;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#99;&#109;&#125;&#32;&#49;&#56;&#32;&#92;&#92; &#52;&#50;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#99;&#109;&#125;&#32;&#49;&#54;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#99;&#109;&#125;&#32;&#57;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#99;&#109;&#125;&#32;&#49;&#48;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#99;&#109;&#125;&#32;&#49;&#50;&#32;&#32;&#92;&#92; &#49;&#50;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#99;&#109;&#125;&#32;&#51;&#56;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#99;&#109;&#125;&#32;&#56;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#99;&#109;&#125;&#32;&#49;&#52;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#99;&#109;&#125;&#32;&#50;&#55; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p><em>Solution</em> :</p> <p>0. Data reduction.</p> <p style="padding-left: 40px;">We&#8217;ll introduce a step 0 when it looks like we should do some preliminary calculations with or data. In this case we should enter the dataset into our calculations and determine <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" />. We find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7538a8a2925094bf159da10caf8179fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#61;&#49;&#49;&#46;&#50;" title="Rendered by QuickLaTeX.com" height="13" width="63" style="vertical-align: -1px;" />.</p> <p>1. Hypotheses.</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 21px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fb57efb73e711068d77dc5b47ef10821_l3.svg" height="21" width="284" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#72;&#95;&#48;&#58;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#92;&#108;&#101;&#113;&#32;&#54;&#52;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#72;&#95;&#49;&#58;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#62;&#32;&#54;&#52;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#32;&#40;&#99;&#108;&#97;&#105;&#109;&#41;&#125;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;">Note conversion to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6a987274197f5fb6bfd3855d351bc2af_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" /> right away.</p> <p>2. Critical statistic.</p> <div class="wp-nocaption wp-image-2013 aligncenter"><img class="wp-image-2013 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig78png-1-300x125.jpg" alt="" width="444" height="185" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig78png-1-300x125.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig78png-1-768x319.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig78png-1-65x27.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig78png-1-225x93.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig78png-1-350x145.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig78png-1.jpg 850w" /></div> <p style="padding-left: 40px;">In the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d42514c9e1d08e8ad920e5e813701643_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#32;&#49;&#53;&#45;&#49;&#61;&#49;&#52;" title="Rendered by QuickLaTeX.com" height="14" width="123" style="vertical-align: -1px;" /> line and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1b35b48aef1d8a2bf1271ae71250f5ab_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#95;&#123;&#84;&#125;&#61;&#48;&#46;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="15" width="78" style="vertical-align: -3px;" /> column of the <strong>Chi-squared Distribution Table</strong>, look up <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7a984d0f98a5789d19fcc98e41398ac4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#50;&#95;&#123;&#92;&#114;&#109;&#32;&#99;&#114;&#105;&#116;&#125;&#32;&#61;&#32;&#50;&#49;&#46;&#48;&#54;&#52;" title="Rendered by QuickLaTeX.com" height="21" width="106" style="vertical-align: -6px;" /></p> <p>3. Test statistic.</p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 86px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1926045cee299f08bd5f7aa827ca34a7_l3.svg" height="86" width="234" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#110;&#45;&#49;&#41;&#115;&#94;&#50;&#125;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#32;&#92;&#92; &#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#49;&#52;&#41;&#40;&#49;&#49;&#46;&#50;&#41;&#94;&#50;&#125;&#123;&#54;&#52;&#125;&#32;&#61;&#32;&#50;&#55;&#46;&#52;&#52; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;">To estimate the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> value, find the bracketing values of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6c422bd0466c12d8b4fda6ba10e25599_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#50;&#55;&#46;&#52;&#52;" title="Rendered by QuickLaTeX.com" height="19" width="99" style="vertical-align: -4px;" /> in the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-75ec8b2ca46598efb47eb44f555cc192_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#32;&#49;&#52;" title="Rendered by QuickLaTeX.com" height="13" width="52" style="vertical-align: -1px;" /> line of the <strong>Chi-squared Distribution Table</strong>. They are : 26.119 (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5b30f253247cc57477c270c607428f95_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#50;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="75" style="vertical-align: 0px;" />) and 29.141 (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-378a58d301002938731f80dfad5c2888_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="13" width="76" style="vertical-align: -1px;" />), so <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7def3a6bfaebc7897e29e0ae05b4dbc9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#48;&#46;&#48;&#49;&#48;&#32;&#60;&#32;&#112;&#32;&#60;&#32;&#48;&#46;&#48;&#50;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="137" style="vertical-align: -4px;" />.</p> <p>4. Decision.</p> <div class="wp-nocaption wp-image-1749 aligncenter"><img class="wp-image-1749 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig78apng-300x182.jpg" alt="" width="379" height="230" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig78apng-300x182.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig78apng-65x39.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig78apng-225x137.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig78apng-350x212.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig78apng.jpg 628w" /></div> <p style="padding-left: 40px;">Reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> since <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-04ace88c942e1b7fce0f660ff4cabe89_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="32" style="vertical-align: -4px;" /> is in the rejection region. Our estimate of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> leads to the same conclusion : </p> <p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9538067d032a1d594af2c9eb7812fa61_l3.svg" height="18" width="254" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#40;&#48;&#46;&#48;&#49;&#48;&#32;&#60;&#32;&#112;&#32;&#60;&#32;&#48;&#46;&#48;&#50;&#53;&#41;&#32;&#60;&#32;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#49;&#48;&#41;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>5. Interpretation.</p> <p style="padding-left: 40px;">There is enough evidence, at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e4373527a619804f3b811a78e13c1e28_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="13" width="67" style="vertical-align: -1px;" /> with a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> test, to support the claim that the standard deviation is greater than 8. (Note how we convert to a statement about standard deviation after working through the problem using variances.)</p> <p style="text-align: right;">▢</p> <p><strong>Example 9.8</strong> : A cigarette manufacturer wishes to test the claim that the variance of the nicotine content of its cigarettes is 0.644. Nicotine content is measured in milligrams, assume that it is normally distributed. A sample of 20 cigarettes has a standard deviation of 1.00 kg. At <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />, is there enough evidence to reject the manufacturer&#8217;s claim?</p> <p><em>Solution</em> :</p> <p>1. Hypotheses.</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 21px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8cdfd4f69a4e52696b6fbcef6b79fb92_l3.svg" height="21" width="322" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#72;&#95;&#123;&#48;&#125;&#58;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#48;&#46;&#54;&#52;&#52;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#32;&#40;&#99;&#108;&#97;&#105;&#109;&#41;&#125;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#50;&#53;&#105;&#110;&#125;&#32;&#72;&#95;&#123;&#49;&#125;&#58;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#32;&#92;&#110;&#101;&#113;&#32;&#48;&#46;&#54;&#52;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>2. Critical statistic.</p> <div class="wp-caption aligncenter" id="attachment_1750" aria-describedby="caption-attachment-1750" style="width: 377px"><img class="wp-image-1750" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig79png-300x152.jpg" alt="" width="377" height="191" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig79png-300x152.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig79png-65x33.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig79png-225x114.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig79png-350x178.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig79png.jpg 625w" /><div class="wp-caption-text" id="caption-attachment-1750">Figure 9.7 : Critical regions for a two tailed test.</div></div> <p style="padding-left: 40px;">Referring to Figure 9.7, we see that we need two <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4b2184e2ed142200cdfd091fc4bc98ee_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#50;&#95;&#123;&#92;&#114;&#109;&#32;&#99;&#114;&#105;&#116;&#125;" title="Rendered by QuickLaTeX.com" height="21" width="31" style="vertical-align: -6px;" /> values, one with a tail area of 0.025 and the other with a tail area of 1 &#8211; 0.025 = 0.975. From the <strong>Chi-squared Distribution Table</strong> in the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-328614a395ee852545bcfecb4ea4568d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#32;&#110;&#32;&#45;&#32;&#49;&#32;&#61;&#32;&#49;&#57;" title="Rendered by QuickLaTeX.com" height="13" width="116" style="vertical-align: -1px;" /> line find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-654e41835ff954771b973a0f1c4036f7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#50;&#95;&#123;&#92;&#114;&#109;&#32;&#99;&#114;&#105;&#116;&#125;&#32;&#61;&#32;&#56;&#46;&#57;&#48;&#55;" title="Rendered by QuickLaTeX.com" height="21" width="97" style="vertical-align: -6px;" /> from the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cc16ea0d06abc17ff0bc5c4b97d90e22_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#95;&#123;&#84;&#125;&#32;&#61;&#32;&#48;&#46;&#57;&#55;&#53;" title="Rendered by QuickLaTeX.com" height="16" width="86" style="vertical-align: -3px;" /> column and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-15185bb744c9189ae05da69e07573b33_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#50;&#95;&#123;&#92;&#114;&#109;&#32;&#99;&#114;&#105;&#116;&#125;&#32;&#61;&#32;&#51;&#50;&#46;&#56;&#53;&#50;" title="Rendered by QuickLaTeX.com" height="21" width="105" style="vertical-align: -6px;" /> from the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-243c12f277e27528195c07d972b36679_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#95;&#123;&#84;&#125;&#32;&#61;&#32;&#48;&#46;&#48;&#50;&#53;" title="Rendered by QuickLaTeX.com" height="16" width="86" style="vertical-align: -3px;" /> column.</p> <p>3. Test statistic.</p> <p class="ql-center-displayed-equation" style="line-height: 89px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-19a2fe87f1a9dec90c264bfe9808c307_l3.svg" height="89" width="210" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#110;&#45;&#49;&#41;&#115;&#94;&#123;&#50;&#125;&#125;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#123;&#50;&#125;&#125;&#32;&#92;&#92; &#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#49;&#57;&#41;&#40;&#49;&#94;&#123;&#50;&#125;&#41;&#125;&#123;&#40;&#48;&#46;&#54;&#52;&#52;&#41;&#125;&#32;&#61;&#32;&#50;&#57;&#46;&#53;&#48; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>To estimate the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> value find the bracketing value of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9db09a8fafa20cbdc5086933ad699c0a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#50;&#57;&#46;&#53;&#48;" title="Rendered by QuickLaTeX.com" height="19" width="99" style="vertical-align: -4px;" /> in the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3629d9389ae2d175d8693e84e35609fe_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#32;&#49;&#57;" title="Rendered by QuickLaTeX.com" height="13" width="52" style="vertical-align: -1px;" /> row, They are 27.204 (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1e12291c17628481c1ea466970e7a14b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#95;&#123;&#84;&#125;&#32;&#61;&#32;&#48;&#46;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="15" width="78" style="vertical-align: -3px;" />) and 30.144 (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f460a441e1367fcf6774405bc89ec415_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#95;&#123;&#84;&#125;&#32;&#61;&#32;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="16" width="77" style="vertical-align: -3px;" />). The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4450936f2bf0034f0fa5d464e3cc0c63_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#95;&#123;&#84;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="21" style="vertical-align: -3px;" /> are right tail areas, which is ok, but we need to multiply them by 2 because those right tail areas represent <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6969e4e2420b17ba9ff219d5db82a6ae_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;&#47;&#50;" title="Rendered by QuickLaTeX.com" height="18" width="27" style="vertical-align: -5px;" /> as shown in Figure 9.8. So <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-46ac1c0f9f91f4d9bd291aa98ecae487_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#48;&#46;&#49;&#48;&#32;&#60;&#32;&#112;&#32;&#60;&#32;&#48;&#46;&#50;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="120" style="vertical-align: -4px;" />.</p> <div class="wp-caption aligncenter" id="attachment_2010" aria-describedby="caption-attachment-2010" style="width: 355px"><img class="wp-image-2010" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.8-300x216.png" alt="" width="355" height="255" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.8-300x216.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.8-768x552.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.8-65x47.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.8-225x162.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.8-350x251.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-9.8.png 838w" /><div class="wp-caption-text" id="caption-attachment-2010">Figure 9.8 : Areas for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> associated with the test statistic (29.50 here) in a two tail test.</div></div> <p>4. Decision.</p> <div class="wp-nocaption wp-image-1752 aligncenter"><img class="wp-image-1752 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig80png-300x163.jpg" alt="" width="394" height="214" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig80png-300x163.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig80png-65x35.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig80png-225x122.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig80png-350x190.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig80png.jpg 675w" /></div> <p style="padding-left: 40px;">Do not reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. The estimate <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> value leads to the same conclusion :</p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-82733b0c4ff9007c1ab42c605dad9858_l3.svg" height="18" width="236" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#40;&#48;&#46;&#49;&#48;&#32;&#60;&#32;&#112;&#32;&#60;&#32;&#48;&#46;&#50;&#48;&#41;&#32;&#62;&#32;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#53;&#41;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>5. Interpretation.</p> <p style="padding-left: 40px;">There is not enough evidence, at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /> with a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> test, to reject the manufacturer&#8217;s claim that the variance of the nicotine content of the cigarettes is equal to 0.644.</p> <p style="padding-left: 40px;">Notice, with the claim on <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />, that failing to reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> does not provide any evidence that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> is true. We just have the weaker conclusion that we couldn&#8217;t disprove it. Such is the double negative nature of the logic behind hypothesis testing that arises where we don&#8217;t assign probabilities to hypothesis.</p> <p style="text-align: right;">▢</p> <p>&nbsp;</p> </div></div>
<div class="chapter standard" id="chapter-slug-9-6-spss-lesson-5-single-sample-t-test" title="9.6 SPSS Lesson 5: Single Sample t-Test"><div class="chapter-title-wrap"><h3 class="chapter-number">38</h3><h2 class="chapter-title">9.6 SPSS Lesson 5: Single Sample t-Test</h2></div><div class="ugc chapter-ugc"> <p>Open “HeadCircum.sav” from the textbook <a href="#front-matter-data-sets" target="_blank" rel="noopener noreferrer">Data Sets</a>:</p> <div class="wp-caption alignnone" id="attachment_1105" aria-describedby="caption-attachment-1105" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum1-1.png"><img class="wp-image-1105" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum1-1-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum1-1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum1-1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum1-1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum1-1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum1-1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum1-1-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum1-1.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1105">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Look at how simple it is! One variable. This is our single sample. Let’s do a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test for the hypotheses:</p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8910a4c770c8fb6efffea20c7115ddfc_l3.svg" height="16" width="104" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[H_{0}: \mu = 33.8 \]" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">(9.2) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a0d28107dc346a8fe6beac46cbdd80e9_l3.svg" height="17" width="104" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} H_{1}: \mu \neq 33.8\ \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>where we have used <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1e37dca0c98d80ed2798ad614537c307_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="k = 34.5" title="Rendered by QuickLaTeX.com" height="14" width="64" style="vertical-align: -1px;" /> as the potentially inferred population value. Selecting the value for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3422b6bb5c160593658b7c39425d9880_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="k" title="Rendered by QuickLaTeX.com" height="13" width="9" style="vertical-align: 0px;" /> is something that you will need to think about when doing single sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-tests. Some possibilities are: past values, data range midpoints or chance level values. To run the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test in SPSS, pick Analyze <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Compare Means <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> One-Sample T Test:</p> <div class="wp-caption alignnone" id="attachment_1106" aria-describedby="caption-attachment-1106" style="width: 827px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum2-1.png"><img class="wp-image-1106" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum2-1-300x169.png" alt="" width="827" height="466" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum2-1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum2-1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum2-1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum2-1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum2-1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum2-1-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum2-1.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1106">SPSS screenshot © International Business Machines Corporation.</div></div> <p>The pop up menu is:</p> <div class="wp-caption alignnone" id="attachment_1107" aria-describedby="caption-attachment-1107" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum3-2.png"><img class="wp-image-1107" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum3-2-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum3-2-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum3-2-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum3-2-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum3-2-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum3-2-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum3-2-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum3-2.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1107">SPSS screenshot © International Business Machines Corporation.</div></div> <p>where we have moved our variable into the Test Variable(s) box. If more than one variable is in this box then a separate <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test will be run for each variable. The value <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a4c7050c353a15fdb7a0dba5ff937514_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="k=33.8" title="Rendered by QuickLaTeX.com" height="13" width="65" style="vertical-align: 0px;" /> has been entered into the Test Value box. That’s how SPSS knows that the hypotheses to test is that of the statement (9.2) above. If you open the Options menus, you will have a chance to specify the associated confidence interval. Running the analysis gives the very simple output:</p> <div class="wp-caption alignnone" id="attachment_1109" aria-describedby="caption-attachment-1109" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum4-1.png"><img class="wp-image-1109" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum4-1-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum4-1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum4-1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum4-1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum4-1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum4-1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum4-1-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum4-1.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1109">SPSS screenshot © International Business Machines Corporation.</div></div> <p>The output is simple but it requires your knowledge of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test to interpret. As you get more experience with using SPSS, or any canned statistical software, you will get into the habit of looking for the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value. In SPSS it is in the Sig. (for Significance) column. Here <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-52933563bbd696334b277757511db94f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p = 0.032" title="Rendered by QuickLaTeX.com" height="16" width="74" style="vertical-align: -4px;" />, which is less than <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />, so we reject the null hypothesis and conclude that there is evidence that the population mean is not 34.5. Note that this <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value is for a two-tailed test. What if you wanted to do a one-tailed test? Well, then you have to think because SPSS won’t do that for you explicitly. For a one-tailed test, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2ad3f5a692f8bb720df4a06fc6f7c014_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p = 0.016" title="Rendered by QuickLaTeX.com" height="16" width="75" style="vertical-align: -4px;" />, half that of the two-tailed test. Remember that the two-tailed <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> has two tails, each with an area of 0.016 as defined by <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d25afe28eb3d1a7ad7e633107eccaeca_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\pm t_{\rm test}" title="Rendered by QuickLaTeX.com" height="15" width="41" style="vertical-align: -3px;" />, so getting rid of one of those areas gives the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> for the one- tailed test. Another way to remember to divide the two-tailed <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> by 2 to get the one-tailed value is to remember that people try to go for a one-tailed test when they can because it has more power — it is easier to reject the null hypothesis with a one-tailed test meaning the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value will be smaller for a one-tailed test.</p> <p>Let’s look at the rest of the output. There is a lot of redundant information there. You can use that redundant information to check to make sure you know what SPSS is doing and I can use that redundant information to see if you understand what SPSS is doing by reducing the redundancy and asking you to calculate the missing pieces. In the first output table, “One-Sample Statistics” is the information that you would get out of your calculator. The first three columns are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170995d512c659d8668b4e42e1fef6b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x}" title="Rendered by QuickLaTeX.com" height="11" width="11" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s" title="Rendered by QuickLaTeX.com" height="8" width="8" style="vertical-align: 0px;" />. The last column is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-df90e8d1f0c50e550ec939ea1bb40190_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s/\sqrt{n}" title="Rendered by QuickLaTeX.com" height="19" width="43" style="vertical-align: -5px;" />.</p> <p>In the second output table “One-Sample Test”, notice that the test value of 33.8 is printed to remind you what the hypotheses being tested is. Te columns give: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5d9748cc18b5391e12cc7e345006dec8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\rm test}" title="Rendered by QuickLaTeX.com" height="15" width="27" style="vertical-align: -3px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-84f850cb7d68cf5b0b1a685b849a8674_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7c87719f1f322068d6f5598c6712c76d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x} - k" title="Rendered by QuickLaTeX.com" height="13" width="41" style="vertical-align: 0px;" />. Notice that the first column, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5d9748cc18b5391e12cc7e345006dec8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\rm test}" title="Rendered by QuickLaTeX.com" height="15" width="27" style="vertical-align: -3px;" /> is the fourth column <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7c87719f1f322068d6f5598c6712c76d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x} - k" title="Rendered by QuickLaTeX.com" height="13" width="41" style="vertical-align: 0px;" /> divided by the last column of the first table, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-df90e8d1f0c50e550ec939ea1bb40190_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s/\sqrt{n}" title="Rendered by QuickLaTeX.com" height="19" width="43" style="vertical-align: -5px;" />. The last two columns give the 95% confidence interval</p> <p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">(9.3) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-deaf7656645f4c706c359df292b42b16_l3.svg" height="17" width="218" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} 0.0249 &lt; \mu - 33.80 &lt; 0.5031 \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>Note that zero is not in this confidence interval which is consistent with rejecting the null hypothesis. Simply add <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cd78368840375cf561b7c912b9506536_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="k=33.80" title="Rendered by QuickLaTeX.com" height="13" width="74" style="vertical-align: 0px;" /> to Equation (9.3) to get the form we go for when we do confidence intervals by hand:</p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">(9.4) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf6088a410b92d7bae02f7a88cdc0016_l3.svg" height="16" width="174" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} 33.8249 &lt; \mu &lt; 34.3031 \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>You can use the output here to compute a further quantity, known as standardized effect size. You’ll get a little practice with doing that in the assignments. The standardized effect size, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4e8716946f6a868f015e0d62f28bc540_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="d" title="Rendered by QuickLaTeX.com" height="13" width="10" style="vertical-align: 0px;" />, is a purely descriptive statistic (although it can be used in power calculations) and is defined by</p> <p class="ql-center-displayed-equation" style="line-height: 41px;"><span class="ql-right-eqno">(9.5) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-dffd00560076d77d7e4a7c69a997ad41_l3.svg" height="41" width="130" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} d = \frac{\overline{x}-k}{s} = \frac{t}{\sqrt{n}} \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>where, by <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> we mean <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5d9748cc18b5391e12cc7e345006dec8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\rm test}" title="Rendered by QuickLaTeX.com" height="15" width="27" style="vertical-align: -3px;" />. Being a descriptive statistic, people use the following rule of thumb to describe <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4e8716946f6a868f015e0d62f28bc540_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="d" title="Rendered by QuickLaTeX.com" height="13" width="10" style="vertical-align: 0px;" />. If <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4e8716946f6a868f015e0d62f28bc540_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="d" title="Rendered by QuickLaTeX.com" height="13" width="10" style="vertical-align: 0px;" /> is approximately 0.2 then <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4e8716946f6a868f015e0d62f28bc540_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="d" title="Rendered by QuickLaTeX.com" height="13" width="10" style="vertical-align: 0px;" /> is considered “small”; if <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4e8716946f6a868f015e0d62f28bc540_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="d" title="Rendered by QuickLaTeX.com" height="13" width="10" style="vertical-align: 0px;" /> is approximately 0.5 then <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4e8716946f6a868f015e0d62f28bc540_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="d" title="Rendered by QuickLaTeX.com" height="13" width="10" style="vertical-align: 0px;" /> is considered “medium”; <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4e8716946f6a868f015e0d62f28bc540_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="d" title="Rendered by QuickLaTeX.com" height="13" width="10" style="vertical-align: 0px;" /> is approximately 0.8 then <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4e8716946f6a868f015e0d62f28bc540_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="d" title="Rendered by QuickLaTeX.com" height="13" width="10" style="vertical-align: 0px;" /> is considered “large”.</p> <p>For the presentation of data graphically in reports and papers, an error bar plot is frequently used. To get such a plot for the data here, select Graphs <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Legacy Dialogs <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Error Bar:</p> <div class="wp-caption alignnone" id="attachment_1120" aria-describedby="caption-attachment-1120" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum5.png"><img class="wp-image-1120" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum5-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum5-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum5-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum5-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum5-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum5-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum5-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum5.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1120">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Choose Simple and “Summaries of separate variables”:</p> <div class="wp-caption alignnone" id="attachment_1123" aria-describedby="caption-attachment-1123" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum6.png"><img class="wp-image-1123" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum6-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum6-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum6-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum6-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum6-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum6-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum6-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum6.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1123">SPSS screenshot © International Business Machines Corporation.</div></div> <p>and hit Define. Then set up the menu as follows:</p> <div class="wp-caption alignnone" id="attachment_1124" aria-describedby="caption-attachment-1124" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum7.png"><img class="wp-image-1124" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum7-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum7-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum7-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum7-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum7-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum7-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum7-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum7.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1124">SPSS screenshot © International Business Machines Corporation.</div></div> <p>noting that we have chosen “Bars Represent” as “Standard error of the mean” so that the error bars will be <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4e04ceda4a9353185d0c4cf6c6f98587_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x} \pm \frac{s}{\sqrt{n}}" title="Rendered by QuickLaTeX.com" height="24" width="54" style="vertical-align: -11px;" />:</p> <div class="wp-caption alignnone" id="attachment_1125" aria-describedby="caption-attachment-1125" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum8.png"><img class="wp-image-1125" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum8-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum8-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum8-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum8-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum8-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum8-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum8-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum8.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1125">SPSS screenshot © International Business Machines Corporation.</div></div> <p>With an error bar plot like this, you can intuitively check the meaning of rejecting <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> from the formal <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test. Here the error bars do not include the value of 33.80 which is consistent with the conclusion that we reject 33.80 as a possible value for the population mean. We can see this more directly, and exactly, if we choose the value 95<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1879384f447e632a72daeb57ac5b6712_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="%" title="Rendered by QuickLaTeX.com" height="1" width="1" style="vertical-align: 0px;" /> confidence interval in the Bars Represent pull down of the plot menu.</p> <p>This is a plot of Equation (9.4). The value <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cd78368840375cf561b7c912b9506536_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="k=33.80" title="Rendered by QuickLaTeX.com" height="13" width="74" style="vertical-align: 0px;" /> is not in the 95% confidence interval.</p> <p>Finally, selecting Graphs <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Legacy Dialogs <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Boxplot gives a EDA type of data presentation:</p> <div class="wp-caption alignnone" id="attachment_1127" aria-describedby="caption-attachment-1127" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum9.png"><img class="wp-image-1127" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum9-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum9-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum9-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum9-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum9-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum9-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum9-350x197.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp9HeadCircum9.png 1366w" /></a><div class="wp-caption-text" id="caption-attachment-1127">SPSS screenshot © International Business Machines Corporation.</div></div> </div></div>
<div class="chapter standard" id="chapter-slug-9-7-rstudio-lesson-5-single-sample-t-test" title="9.7 RStudio Lesson 5: Single Sample t-Test"><div class="chapter-title-wrap"><h3 class="chapter-number">39</h3><h2 class="chapter-title">9.7 RStudio Lesson 5: Single Sample t-Test</h2><h2 class="chapter-author">Osama Bataineh</h2></div><div class="ugc chapter-ugc"> <p>Let’s insert and attach the dataset “HeadCircum.sav” (from <a href="#front-matter-data-sets" target="_blank" rel="noopener noreferrer">Data Sets</a>). To get the descriptive statistics, first we need to install and load the package <em>pastecs</em>. I have already installed it before. So I just loaded this package using the <em>library</em> function. Then we utilize a function of this package <em>round</em> to get the descriptive statistics. Here we use our variable age as the argument and set digits equal to 2 to make it look nice.</p> <p>&gt; library(pastecs)<br /> Warning message:<br /> package ‘pastecs’ was built under R version 3.4.4<br /> &gt; descriptive_stat &lt;- round(stat.desc(age), digits = 2)<br /> &gt; descriptive_stat<br /> x<br /> nbr.val 5534.00<br /> nbr.null 0.00<br /> nbr.na 0.00<br /> min 10.00<br /> max 43.00<br /> range 33.00<br /> sum 129718.00<br /> median 23.00<br /> mean 23.44<br /> SE.mean 0.06<br /> CI.mean.0.95 0.12<br /> var 22.29<br /> std.dev 4.72<br /> coef.var 0.20</p> <p>Now we will be doing a T-test for mean equal to 33.80. To do it, we will take the help of the function <em>t.test</em>. Here we can see that in the argument, we have to mention the value of our null hypotheses (33.80 in the case), the type of T-test we are doing (one sided or two sided) and the confidence interval.</p> <p>Now we will be doing a T-test for mean equal to 23.30. To do it, we will take the help of the function <em>t.test</em>. Here we can see that in the argument, we have to mention the value of our null hypotheses (23.30 in the case), the type of T-test we are doing (one sided or two sided) and the confidence interval.</p> <div>&gt; t.test(age, mu=23.30, alternative=”two.sided”, conf.level=0.95)</div> <div></div> <div>One Sample t-test</div> <div></div> <div>data:&nbsp; age</div> <div>t = 2.2088, df = 5533, p-value = 0.02723</div> <div>alternative hypothesis: true mean is not equal to 23.3</div> <div>95 percent confidence interval:</div> <div>23.31577 23.56461</div> <div>sample estimates:</div> <div>mean of x</div> <div>23.44019</div> <div></div> <div>&gt; t.test(age, mu=23.30, alternative=”greater”, conf.level=0.95)</div> <div></div> <div>One Sample t-test</div> <div></div> <div>data:&nbsp; age</div> <div>t = 2.2088, df = 5533, p-value = 0.01361</div> <div>alternative hypothesis: true mean is greater than 23.3</div> <div>95 percent confidence interval:</div> <div>23.33578&nbsp; &nbsp; &nbsp; Inf</div> <div>sample estimates:</div> <div>mean of x</div> <div>23.44019</div> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> </div></div>
<div class="part " id="part-slug-10-comparing-two-population-means"><div class="part-title-wrap"><h3 class="part-number">X</h3><h1 class="part-title">10. Comparing Two Population Means</h1></div><p>There are two types of two-sample t-tests. (The test we covered in Chapter 9 that compared the mean of one sample to a fixed number <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3422b6bb5c160593658b7c39425d9880_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;" title="Rendered by QuickLaTeX.com" height="13" width="9" style="vertical-align: 0px;" /> is known as a one-sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test.) These tests are:</p> <p><strong>Unpaired or independent sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test:</strong></p> <p style="padding-left: 40px;">The two populations are “independent”. There is no relation between the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-01a7b7b5dca66cb33a1207e1f39c1140_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#49;" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f1cd6be340b4fce14489cf5b565a169e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /> variables (as we’ll call them). This is a “between subjects” test, the experimental subjects in each of the two populations are different.</p> <p><strong>Paired or dependent sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test:</strong></p> <p style="padding-left: 40px;">There is a natural pairing between the two variables <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-01a7b7b5dca66cb33a1207e1f39c1140_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#49;" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f1cd6be340b4fce14489cf5b565a169e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" />, usually they are measured from the same subject. A paired <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test is an example of a “repeated measures” or “within subject” test.</p> <p>We will introduce the independent sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test with a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-test approximation first to build ideas. As before, note that SPSS doesn’t do these approximate <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-tests. It does <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-tests even for large samples.</p><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-10-1-unpaired-z-test" title="10.1 Unpaired z-Test"><div class="chapter-title-wrap"><h3 class="chapter-number">40</h3><h2 class="chapter-title">10.1 Unpaired z-Test</h2></div><div class="ugc chapter-ugc"><p>We have two populations and two sample sets, one from each population :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 90.9091%; height: 81px;"><tbody><tr><td class="shaded" style="width: 33.3333%; text-align: center;"></td> <td class="shaded" style="width: 33.3333%; text-align: center;">Sample Mean</td> <td class="shaded" style="width: 33.3333%; text-align: center;">Sample std. dev.</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">From population 1</td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-496355b36b392f38e7a72f2b3bc1b38f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="16" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-83e6829cf634f6f115ad2c6cc9160a29_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 33.3333%; text-align: center;">From population 2</td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6f496c04aaf348befe28e000cc1327dd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="14" width="17" style="vertical-align: -3px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d7725868afc713f34eb814c852ab4845_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="15" style="vertical-align: -3px;" /></td> </tr> </tbody> </table> <p>The population means are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3030586c584fe27e132abd16ccafa0bc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="12" width="17" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4bdd4575161129dd97beedc6394a99fd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="12" width="18" style="vertical-align: -4px;" /> and just as with the single population test, there are 3 possible hypothesis tests :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 100%; height: 84px;"><tbody><tr style="height: 14px;"><td class="shaded" style="width: 33.3333%; text-align: center; height: 14px;">Two Tailed</td> <td class="shaded" style="width: 33.3333%; text-align: center; height: 14px;">Right Tailed</td> <td class="shaded" style="width: 33.3333%; text-align: center; height: 14px;">Left Tailed</td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ed29cb375ec9c9dd150750bab798a194_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#48;&#58;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#61;&#32;&#92;&#109;&#117;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="16" width="97" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a97534e50508e353103309ee9d03cb5c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#48;&#58;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#92;&#108;&#101;&#113;&#32;&#92;&#109;&#117;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="16" width="97" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f58ed312dd6cb7ba0b994360b605a34f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#48;&#58;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#92;&#103;&#101;&#113;&#32;&#92;&#109;&#117;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="16" width="97" style="vertical-align: -4px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8746abae1859a75f167daf44b4e31643_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#49;&#58;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#92;&#110;&#101;&#113;&#32;&#92;&#109;&#117;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="17" width="97" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c525bb4526205f727cd5232aab83aab2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#49;&#58;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#62;&#32;&#92;&#109;&#117;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="16" width="97" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-efee1d55a9631b314b1e0495e9c5c563_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#49;&#58;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#60;&#32;&#92;&#109;&#117;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="16" width="97" style="vertical-align: -4px;" /></td> </tr> <tr style="height: 14px;"><td class="shaded" style="width: 33.3333%; height: 14px; text-align: center;">or</td> <td class="shaded" style="width: 33.3333%; height: 14px; text-align: center;">or</td> <td class="shaded" style="width: 33.3333%; height: 14px; text-align: center;">or</td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b0f1d8e0f4ac34c322deacc442a3d7c7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#48;&#58;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="16" width="95" style="vertical-align: -4px;" /> = 0</td> <td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-758ce891b3fdfc43e2273a2338470b28_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#48;&#58;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#50;&#32;&#92;&#108;&#101;&#113;" title="Rendered by QuickLaTeX.com" height="16" width="114" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3293ee01cc6129781b1efc8b5d55a925_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#48;&#58;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#50;&#32;&#92;&#103;&#101;&#113;&#32;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="128" style="vertical-align: -4px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-99599af10edb7889dce32613057032f0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#49;&#58;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#50;&#32;&#92;&#110;&#101;&#113;&#32;&#48;" title="Rendered by QuickLaTeX.com" height="17" width="128" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5b36dcd17a8fbee32d0787d7f031ea4b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#49;&#58;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#50;&#32;&#62;&#32;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="128" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7baafd600d29d13fb3ae641bb01420c3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#49;&#58;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#50;&#32;&#60;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="128" style="vertical-align: -4px;" /></td> </tr> </tbody> </table> <p>In the second row the hypotheses are written in terms of a difference. Irrespective of which way you write the hypotheses, give population 1 priority. Write population 1 first. That way you won&#8217;t mess up your signs or your interpretation.</p> <p>The test statistic to use, in all cases<span class="footnote">You could specify a non-zero null hypothesis, e.g. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4e6691b66c0b028067e30a2ee5be50fa_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#58;&#32;&#92;&#109;&#117;&#95;&#123;&#49;&#125;&#45;&#92;&#109;&#117;&#95;&#123;&#50;&#125;&#32;&#61;&#32;&#107;" title="Rendered by QuickLaTeX.com" height="17" width="128" style="vertical-align: -4px;" />, in which case you would have <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-67712fa43474ca830c162b02e7ea7162_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#49;&#32;&#45;&#32;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#50;&#41;&#32;&#45;&#32;&#107;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#94;&#50;&#95;&#49;&#125;&#123;&#110;&#95;&#49;&#125;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#94;&#50;&#95;&#50;&#125;&#123;&#110;&#95;&#50;&#125;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="49" width="126" style="vertical-align: -29px;" />. We won't consider that case in this course.</span> is</p> <p class="ql-center-displayed-equation" style="line-height: 57px;"><span class="ql-right-eqno">(10.1) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-af2e124189eb6b63e2c65d08095ba008_l3.svg" height="57" width="135" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#122;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#49;&#32;&#45;&#32;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#50;&#41;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#94;&#50;&#95;&#49;&#125;&#123;&#110;&#95;&#49;&#125;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#94;&#50;&#95;&#50;&#125;&#123;&#110;&#95;&#50;&#125;&#125;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0244cc67b4744734fb7b437fc3936f7e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="12" width="17" style="vertical-align: -4px;" /> = sample set size from population 1 and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f1c23a5fc9eafb0aa3cfcf0f6703484f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="18" style="vertical-align: -3px;" /> = sample set size from population 2. This test statistic is based on a distribution of sample means as shown in Figure 10.1.</p> <div class="wp-caption aligncenter" id="attachment_2016" aria-describedby="caption-attachment-2016" style="width: 448px"><img class="wp-image-2016" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.1-300x148.png" alt="" width="448" height="221" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.1-300x148.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.1-1024x504.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.1-768x378.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.1-65x32.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.1-225x111.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.1-350x172.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.1.png 1162w" /><div class="wp-caption-text" id="caption-attachment-2016">Figure 10.1 : The distribution of the difference of sample means <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f18b3ea75f8371c3ce2c117fd81d2462_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#123;&#49;&#125;&#32;&#45;&#32;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="56" style="vertical-align: -4px;" /> under the null hypothesis <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5e2e6a72076f83515ddd235222243170_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#58;&#32;&#92;&#109;&#117;&#95;&#123;&#49;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#123;&#50;&#125;&#32;&#61;&#32;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="128" style="vertical-align: -4px;" />. A one-tail example is shown here. The test statistic of Equation 10.1 follows from a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation of this picture.</div></div> <p><strong>Example 10.1</strong> : A researcher hypothesizes that the average number of sports colleges offer for males is greater than the average number of sports offered for females. Samples of the number of sports offered to each sex by randomly selected colleges is given here :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 95.5437%; height: 56px;"><tbody><tr style="height: 14px;"><td class="shaded" style="width: 50%; height: 14px; text-align: center;">Males (pop. 1)</td> <td class="shaded" style="width: 50%; height: 14px; text-align: center;">Females (pop. 2)</td> </tr> <tr style="height: 14px;"><td style="width: 50%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fa07e99fdda1bb7b186546cf45041bc7_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#95;&#123;&#49;&#125;&#32;&#61;&#32;&#53;&#48;" title="Rendered by QuickLaTeX.com" height="17" width="60" style="vertical-align: -4px;" /></td> <td style="width: 50%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c6b7b618de16281bc0a4c58ef4ec8d7b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#95;&#123;&#50;&#125;&#32;&#61;&#32;&#53;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="60" style="vertical-align: -3px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 50%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a3dbc8c7df9e720269477599c2266973_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#123;&#49;&#125;&#32;&#61;&#32;&#56;&#46;&#54;" title="Rendered by QuickLaTeX.com" height="16" width="64" style="vertical-align: -4px;" /></td> <td style="width: 50%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b93ef0d71a144e860e7892bfdbecca54_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#123;&#50;&#125;&#32;&#61;&#32;&#55;&#46;&#57;" title="Rendered by QuickLaTeX.com" height="16" width="64" style="vertical-align: -3px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 50%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-841eb38d599a9681e6478f4e6951f96f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#95;&#123;&#49;&#125;&#32;&#61;&#32;&#51;&#46;&#51;" title="Rendered by QuickLaTeX.com" height="16" width="63" style="vertical-align: -4px;" /></td> <td style="width: 50%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-71fd8aa4e281da0696a7ebcd6196a1b3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#95;&#123;&#50;&#125;&#32;&#61;&#32;&#51;&#46;&#51;" title="Rendered by QuickLaTeX.com" height="15" width="63" style="vertical-align: -3px;" /></td> </tr> </tbody> </table> <p>At <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e4373527a619804f3b811a78e13c1e28_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="13" width="67" style="vertical-align: -1px;" /> is there enough evidence to support the claim?</p> <p><em>Solution</em> :</p> <p>1. Hypotheses.</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d37340f0dda5e18878887cccf79edfe8_l3.svg" height="18" width="315" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#72;&#95;&#123;&#48;&#125;&#58;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#92;&#108;&#101;&#113;&#32;&#92;&#109;&#117;&#95;&#50;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#46;&#53;&#105;&#110;&#125;&#32;&#72;&#95;&#123;&#49;&#125;&#58;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#62;&#32;&#92;&#109;&#117;&#95;&#50;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#32;&#40;&#99;&#108;&#97;&#105;&#109;&#41;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;">Note that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-39b77ae58bcb3df700ef76e1a4eeb89d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#123;&#49;&#125;&#32;&#62;&#32;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="58" style="vertical-align: -4px;" /> (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-88c1b4441937c2e0c1fefd7ddc170d32_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#56;&#46;&#54;&#62;&#55;&#46;&#57;" title="Rendered by QuickLaTeX.com" height="13" width="69" style="vertical-align: 0px;" />) so <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9de5916ee1011db7624457f504676e39_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;&#58;&#92;&#109;&#117;&#95;&#49;&#32;&#62;&#32;&#92;&#109;&#117;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="16" width="97" style="vertical-align: -4px;" /> is true on the face of it. If <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> is not true on the face of it then <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> is just plain false without the need for any statistical test. With the hypotheses direction set correctly, the question becomes: Is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-35a158b2a469be30e852566ab9685887_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="16" style="vertical-align: -4px;" /> <em>significantly</em> greater than <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-93d72a04badcd99be0a0eb29e629c04c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="14" width="17" style="vertical-align: -3px;" />? The term &#8220;statistically significant&#8221; corresponds to &#8220;reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />&#8220;.</p> <p>2. Critical statistic.</p> <p style="padding-left: 40px;">From the <strong><em>t</em> Distribution Table</strong>, one-tailed test at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e4373527a619804f3b811a78e13c1e28_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="13" width="67" style="vertical-align: -1px;" /> we find</p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 15px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf46ec4030d2f0bdc5e14f1f2c8da3a9_l3.svg" height="15" width="93" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#122;&#95;&#123;&#92;&#114;&#109;&#32;&#99;&#114;&#105;&#116;&#125;&#32;&#61;&#32;&#49;&#46;&#50;&#56;&#50;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;">Note that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a7d3a5ba87241ea1cba0cbe839d12433_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;&#95;&#123;&#99;&#114;&#105;&#116;&#105;&#99;&#97;&#108;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="53" style="vertical-align: -3px;" /> is positive because this is a right-tailed test. For left tailed tests make <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-65269b5988caf821cc54e81b380c244b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;&#95;&#123;&#92;&#114;&#109;&#32;&#99;&#114;&#105;&#116;&#125;" title="Rendered by QuickLaTeX.com" height="12" width="28" style="vertical-align: -4px;" /> negative. For two-tailed tests you have <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-78f66fda7a78ef312cb5a2e604597757_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#112;&#109;&#32;&#122;&#95;&#123;&#92;&#114;&#109;&#32;&#99;&#114;&#105;&#116;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="42" style="vertical-align: -4px;" />.</p> <p>3. Test statistic.</p> <p style="padding-left: 40px;"></p><p class="ql-center-displayed-equation" style="line-height: 138px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-274e72f5872c09eeb3c4de42e871c503_l3.svg" height="138" width="154" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#122;&#32;&#38;&#61;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#49;&#32;&#45;&#32;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#50;&#41;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#94;&#50;&#95;&#49;&#125;&#123;&#110;&#95;&#49;&#125;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#94;&#50;&#95;&#50;&#125;&#123;&#110;&#95;&#50;&#125;&#125;&#125;&#32;&#92;&#92; &#38;&#61;&#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#56;&#46;&#54;&#32;&#45;&#32;&#55;&#46;&#57;&#41;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#51;&#46;&#51;&#94;&#50;&#125;&#123;&#53;&#48;&#125;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#51;&#46;&#51;&#94;&#50;&#125;&#123;&#53;&#48;&#125;&#125;&#125;&#32;&#92;&#92; &#38;&#61;&#38;&#32;&#49;&#46;&#48;&#54; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p style="padding-left: 40px;">Using the <strong>Standard Normal Distribution Table</strong>, we can find the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value. Since <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5c53907b57cdcb3e3c5b1999353b7d4f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#65;&#40;&#122;&#41;&#32;&#61;&#32;&#65;&#40;&#49;&#46;&#48;&#54;&#41;&#32;&#61;&#32;&#48;&#46;&#51;&#53;&#53;&#52;" title="Rendered by QuickLaTeX.com" height="18" width="192" style="vertical-align: -4px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-23b8719298436ccab32cf8f0a08ffa97_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;&#32;&#61;&#32;&#48;&#46;&#48;&#53;&#32;&#45;&#32;&#48;&#46;&#51;&#53;&#53;&#52;&#32;&#61;&#32;&#48;&#46;&#49;&#52;&#52;&#54;" title="Rendered by QuickLaTeX.com" height="17" width="210" style="vertical-align: -4px;" />.</p> <p>4. Decision.</p> <div class="wp-nocaption wp-image-2017 aligncenter"><img class="wp-image-2017 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-ex-10.1-300x212.png" alt="" width="364" height="257" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-ex-10.1-300x212.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-ex-10.1-768x542.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-ex-10.1-65x46.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-ex-10.1-225x159.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-ex-10.1-350x247.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-ex-10.1.png 850w" /></div> <p style="padding-left: 40px;">Do not reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> since <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8b79642b0595ce68f947126027303d82_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="29" style="vertical-align: -3px;" /> is not in the rejection region. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value reflects this :</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-89b711f8bce024bd1e28104d4ee8a8b6_l3.svg" height="18" width="198" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#40;&#112;&#32;&#61;&#32;&#48;&#46;&#49;&#52;&#52;&#54;&#41;&#32;&#62;&#32;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#49;&#48;&#41;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>5. Interpretation.</p> <p style="padding-left: 40px;">There is not enough evidence, at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e4373527a619804f3b811a78e13c1e28_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="13" width="67" style="vertical-align: -1px;" /> under a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-test, to support the claim that colleges offer more sports for males than females.</p> <p style="text-align: right;">▢</p> </div></div>
<div class="chapter standard" id="chapter-slug-10-2-confidence-interval-for-difference-of-means-large-samples" title="10.2 Confidence Interval for Difference of Means (Large Samples)"><div class="chapter-title-wrap"><h3 class="chapter-number">41</h3><h2 class="chapter-title">10.2 Confidence Interval for Difference of Means (Large Samples)</h2></div><div class="ugc chapter-ugc"><p>Swapping the roles of sample and population in the sampling theory, we have the confidence interval corresponding to the hypothesis test of Section 10.1</p> <p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6365ffb3eae4b56d0524f1cb0ce3d59b_l3.svg" height="18" width="332" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#40;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#49;&#32;&#45;&#32;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#50;&#41;&#32;&#45;&#32;&#69;&#32;&#60;&#32;&#40;&#92;&#109;&#117;&#95;&#49;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#50;&#41;&#32;&#60;&#32;&#40;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#49;&#32;&#45;&#32;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#50;&#41;&#32;&#43;&#32;&#69;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>where</p> <p class="ql-center-displayed-equation" style="line-height: 54px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4b11c357c0352d91502a84b99a82b55c_l3.svg" height="54" width="139" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#69;&#32;&#61;&#32;&#122;&#95;&#123;&#92;&#99;&#97;&#108;&#32;&#67;&#125;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#94;&#50;&#95;&#49;&#125;&#123;&#110;&#95;&#49;&#125;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#94;&#50;&#95;&#50;&#125;&#123;&#110;&#95;&#50;&#125;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p><strong>Example 10.2</strong> : Find the 95<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#37;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> confidence interval for the difference between the means for the data of Example 10.1.</p> <p><em>Solution</em> : First, recall our data :</p> <p style="text-align: center"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d710431dfb47bfb81e78513268599491_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#49;&#32;&#61;&#32;&#56;&#56;&#46;&#52;&#50;" title="Rendered by QuickLaTeX.com" height="16" width="81" style="vertical-align: -4px;" />,  <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0ada1093c981dfaeaa8b9464c4990f70_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#95;&#49;&#32;&#61;&#32;&#53;&#46;&#54;&#50;" title="Rendered by QuickLaTeX.com" height="17" width="71" style="vertical-align: -4px;" />,  <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a8be5a8dd97d504690aacbed8c4c0e0f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#95;&#49;&#32;&#61;&#32;&#53;&#48;" title="Rendered by QuickLaTeX.com" height="17" width="60" style="vertical-align: -4px;" /></p> <p style="text-align: center"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-31c87a56477788e2f575f3601ac04fad_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#50;&#32;&#61;&#32;&#56;&#48;&#46;&#54;&#49;" title="Rendered by QuickLaTeX.com" height="15" width="81" style="vertical-align: -3px;" />.  <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4277eee7fc67a2982ad1f76918b082da_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#95;&#50;&#32;&#61;&#32;&#52;&#46;&#56;&#51;" title="Rendered by QuickLaTeX.com" height="15" width="72" style="vertical-align: -3px;" />,  <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-166e047226b18e698e3a4e7794d98838_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#95;&#50;&#32;&#61;&#32;&#53;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="60" style="vertical-align: -3px;" /></p> <p style="text-align: left">From the <strong><em>t</em> Distribution Table</strong>, look up the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> for the 95<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#37;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> confidence interval: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5e347f8ad1e572d96e49b113234a571d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;&#95;&#123;&#57;&#53;&#92;&#37;&#125;&#32;&#61;&#32;&#49;&#46;&#57;&#54;&#48;" title="Rendered by QuickLaTeX.com" height="17" width="99" style="vertical-align: -5px;" />. Then compute:</p> <p style="text-align: left"></p><p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d14edf3ca0b516ce3b36e2c446a6c16e_l3.svg" height="16" width="238" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#49;&#32;&#45;&#32;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#50;&#32;&#61;&#32;&#56;&#56;&#46;&#52;&#50;&#32;&#45;&#32;&#56;&#48;&#46;&#54;&#49;&#32;&#61;&#32;&#55;&#46;&#56;&#49;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: left">and</p> <p style="text-align: left"></p><p class="ql-center-displayed-equation" style="line-height: 121px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0f2498bf0676bedf74eb883edf153d16_l3.svg" height="121" width="226" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#69;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#122;&#95;&#123;&#57;&#53;&#92;&#37;&#125;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#94;&#50;&#95;&#49;&#125;&#123;&#110;&#95;&#49;&#125;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#94;&#50;&#95;&#50;&#125;&#123;&#110;&#95;&#50;&#125;&#125;&#32;&#92;&#92; &#38;&#32;&#61;&#32;&#38;&#32;&#49;&#46;&#57;&#54;&#48;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#53;&#46;&#54;&#50;&#94;&#50;&#125;&#123;&#53;&#48;&#125;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#52;&#46;&#56;&#51;&#94;&#50;&#125;&#123;&#53;&#48;&#125;&#125;&#32;&#92;&#92; &#38;&#32;&#61;&#32;&#38;&#32;&#50;&#46;&#48;&#53; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: left">so</p> <p style="text-align: left"></p><p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-722d2d186991b4b03b5911459a308d39_l3.svg" height="18" width="289" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#55;&#46;&#56;&#49;&#32;&#45;&#32;&#50;&#46;&#48;&#53;&#32;&#60;&#32;&#40;&#92;&#109;&#117;&#95;&#49;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#50;&#41;&#32;&#60;&#32;&#55;&#46;&#56;&#49;&#32;&#43;&#32;&#50;&#46;&#48;&#53;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: left">or</p> <p style="text-align: left"></p><p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a661fdd2ecc078bebcbb297ac3de322a_l3.svg" height="18" width="183" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#53;&#46;&#55;&#54;&#32;&#60;&#32;&#40;&#92;&#109;&#117;&#95;&#49;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#50;&#41;&#32;&#60;&#32;&#57;&#46;&#56;&#51;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: left">with 95<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#37;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> confidence. Notice that it is also correct to write <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d665b88cd4d2f725cd7f98d65923f486_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#95;&#123;&#49;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#123;&#50;&#125;&#32;&#61;&#32;&#55;&#46;&#56;&#49;&#32;&#92;&#112;&#109;&#32;&#50;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="166" style="vertical-align: -4px;" /> with 95<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#37;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> confidence.</p> <p style="text-align: right">▢</p> <p>This is a good point to make an important observation. A <em>two-tailed</em> hypothesis test at a given <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is complementary to a confidence interval of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f2d140e755774016ee095e157e6e7f4e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#123;&#92;&#99;&#97;&#108;&#123;&#67;&#125;&#125;&#32;&#61;&#32;&#49;&#32;&#45;&#32;&#92;&#97;&#108;&#112;&#104;&#97;" title="Rendered by QuickLaTeX.com" height="13" width="76" style="vertical-align: -1px;" /> in the sense that if 0 is in the confidence interval then the complementary hypothesis test will not reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />.</p> <p>Let&#8217;s illustrate this principle with a one-sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test under <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-93fcab61a40e7486fb90662232eb9057_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#58;&#32;&#92;&#109;&#117;&#32;&#61;&#32;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="81" style="vertical-align: -4px;" />. (We need <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d9e234749ecc0a2852f141f388e2d253_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#107;&#61;&#48;" title="Rendered by QuickLaTeX.com" height="13" width="42" style="vertical-align: 0px;" /> for this principle to work.) Look at the two possible outcomes :</p> <p><em>Case 1</em> : 0 in the confidence interval, fail to reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. In the hypothesis test you would find :</p> <div class="wp-nocaption wp-image-2020 aligncenter"><img class="wp-image-2020 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.01-300x209.png" alt="" width="566" height="395" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.01-300x209.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.01-1024x714.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.01-768x536.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.01-65x45.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.01-225x157.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.01-350x244.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.01.png 1322w" /></div> <p>In the confidence interval calculation you would find:</p> <div class="wp-nocaption wp-image-2021 aligncenter"><img class="wp-image-2021 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.02-300x121.png" alt="" width="511" height="206" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.02-300x121.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.02-1024x412.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.02-768x309.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.02-65x26.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.02-225x91.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.02-350x141.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.02.png 1168w" /></div> <p>Putting the two pictures together gives:</p> <div class="wp-nocaption wp-image-2022 aligncenter"><img class="wp-image-2022 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.03-300x235.png" alt="" width="392" height="307" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.03-300x235.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.03-768x601.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.03-65x51.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.03-225x176.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.03-350x274.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.03.png 784w" /></div> <p>See, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a5e437be25f29374d30f66cd46adf81c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#48;" title="Rendered by QuickLaTeX.com" height="12" width="9" style="vertical-align: 0px;" /> is in the confidence interval if ¯<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" /> is not in the rejection region. The red distribution that defines the confidence interval is just the blue (identical) distribution slid over from <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a5e437be25f29374d30f66cd46adf81c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#48;" title="Rendered by QuickLaTeX.com" height="12" width="9" style="vertical-align: 0px;" /> to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-20ebc7ea21d727ebe3840c06a433ab09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="10" style="vertical-align: 0px;" />. The distance <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-25b206f25506e6d6f46be832f7119ffa_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#65;" title="Rendered by QuickLaTeX.com" height="12" width="13" style="vertical-align: 0px;" /> is the same because <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f2d140e755774016ee095e157e6e7f4e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#123;&#92;&#99;&#97;&#108;&#123;&#67;&#125;&#125;&#32;&#61;&#32;&#49;&#32;&#45;&#32;&#92;&#97;&#108;&#112;&#104;&#97;" title="Rendered by QuickLaTeX.com" height="13" width="76" style="vertical-align: -1px;" />.</p> <p><em>Case 2</em> : 0 not in the confidence interval, reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. In this case the combined picture looks like:</p> <div class="wp-nocaption wp-image-2023 aligncenter"><img class="wp-image-2023 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.04-300x195.png" alt="" width="489" height="318" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.04-300x195.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.04-1024x665.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.04-768x499.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.04-65x42.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.04-225x146.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.04-350x227.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Figure-10.04.png 1078w" /></div> <p>Before we can consider the independent sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test, we need a tool for checking what the variances of the populations are. The formula for the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> test statistic will depend on whether the two variances are the same or not. So let’s take a look at comparing population variances.</p> <p>&nbsp;</p> </div></div>
<div class="chapter standard" id="chapter-slug-10-3-difference-between-two-variances-the-f-distributions" title="10.3 Difference between Two Variances - the F Distributions"><div class="chapter-title-wrap"><h3 class="chapter-number">42</h3><h2 class="chapter-title">10.3 Difference between Two Variances - the F Distributions</h2></div><div class="ugc chapter-ugc"> <p>Here we have to assume that the two <em>populations</em> (as opposed to sample mean distributions) have a distribution that is almost normal as shown in Figure 10.2.</p> <div class="wp-nocaption wp-image-2060 aligncenter"><img class="wp-image-2060 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig83png-300x229.jpg" alt="" width="572" height="437" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig83png-300x229.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig83png-768x585.jpg 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig83png-65x50.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig83png-225x171.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig83png-350x267.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig83png.jpg 933w" /></div> <p style="text-align: center;"><em>Figure 10.2: Two normal populations lead to two <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> distributions that represent distributions of sample variances. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> distribution results when you build up a distribution of the ratio of the two <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2fd71f844cdd94df46d9bc391a062046_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> sample values.</em></p> <p>The ratio <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-09e914ef2652389311912dbb5cc62d8d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\frac{s_{1}^{2}}{s_{2}^{2}}" title="Rendered by QuickLaTeX.com" height="31" width="14" style="vertical-align: -11px;" /> follows an <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" />-distribution if <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-497ca51cb9e674493a39363dacc5c308_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma_{1} = \sigma_{2}" title="Rendered by QuickLaTeX.com" height="12" width="58" style="vertical-align: -4px;" />. That <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> distribution has two degrees of freedom: one for the numerator (d.f.N. or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c25367bc5fbf09ea47b735a1d1cb27be_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu_{1}" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: -4px;" />) and one for the denominator (d.f.D. or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-95b83597701ee13ebb7ef564f66aee60_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu_{2}" title="Rendered by QuickLaTeX.com" height="11" width="16" style="vertical-align: -3px;" />). So we denote the distribution more specifically as <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e5d8fd26a3b5b0c136ba3c1cde13214e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F_{\nu_{1}, \nu_{2}}" title="Rendered by QuickLaTeX.com" height="18" width="42" style="vertical-align: -6px;" />. For the case of Figure 10.2, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7648fc32f1dda0fa718b0faab29fd5c1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu_{1} = n_{1} - 1" title="Rendered by QuickLaTeX.com" height="16" width="88" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c9257a7f1acd20b8c3050cb9ab374aac_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu_{2} = n_{2} - 1" title="Rendered by QuickLaTeX.com" height="15" width="88" style="vertical-align: -3px;" />. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> ratio, in general is the result of the following stochastic process. Let <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ed3aacd0b81542ea02bddd40797ef571_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="X_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> be random variable produced by a stochastic process with a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-391395c2b864692cd5941f651c475e4c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}_{\nu_{1}}" title="Rendered by QuickLaTeX.com" height="22" width="23" style="vertical-align: -7px;" /> distribution and let <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b53089e5e9ac3bae73751ec2bca686c2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="X_{2}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> be random variable produced by a stochastic process with a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3e9a7f1d843a3bc9d3bf2364ec78b21c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^{2}_{\nu_{2}}" title="Rendered by QuickLaTeX.com" height="21" width="24" style="vertical-align: -6px;" /> distribution. Then the random variable <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c3cc1018444e8f38910c674aded85b8d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F = X_{1}/X_{2}" title="Rendered by QuickLaTeX.com" height="18" width="91" style="vertical-align: -5px;" /> will, by definition, have a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e5d8fd26a3b5b0c136ba3c1cde13214e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F_{\nu_{1}, \nu_{2}}" title="Rendered by QuickLaTeX.com" height="18" width="42" style="vertical-align: -6px;" /> distribution.</p> <p>The exact shape of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6637fabe83263fb749bc726d79abe151_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F_{\nu_1, \nu_2}" title="Rendered by QuickLaTeX.com" height="18" width="42" style="vertical-align: -6px;" /> distribution depends on the choice of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae7beef04df5b4d497fbcdac435670a6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu_1" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f2fd0c7735aa781a92ba4104eeaee6cd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu_2" title="Rendered by QuickLaTeX.com" height="11" width="16" style="vertical-align: -3px;" />, But it roughly looks like a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4cbe148bd9da75d2e668ddd0223dbf9f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\chi^2" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> distribution as shown in Figure 10.3.</p> <p>&nbsp;</p> <div class="wp-caption aligncenter" id="attachment_2061" aria-describedby="caption-attachment-2061" style="width: 511px"><img class="wp-image-2061" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig84png-300x128.jpg" alt="" width="511" height="218" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig84png-300x128.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig84png-65x28.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig84png-225x96.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig84png-350x149.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig84png.jpg 600w" /><div class="wp-caption-text" id="caption-attachment-2061">Figure 10.3: A generic <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> distribution.</div></div> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> are related :</p> <p style="text-align: center;"></p><p class="ql-center-displayed-equation" style="line-height: 22px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8470be77c0fb982e305aa55d297dccc3_l3.svg" height="22" width="69" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[F_{1,\nu} = t^{2}_{\nu}\]" title="Rendered by QuickLaTeX.com" /></p> <p>so the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> statistic can be viewed as a special case of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> statistic.</p> <p>For comparing variances, we are interested in the follow hypotheses pairs :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 95.7576%; height: 86px;"><tbody><tr><td class="shaded" style="width: 33.3333%; text-align: center;">Right-tailed</td> <td class="shaded" style="width: 33.3333%; text-align: center;">Left-tailed</td> <td class="shaded" style="width: 33.3333%; text-align: center;">Two-tailed</td> </tr> <tr><td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fbe58915858199696603b5fadea62841_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_0: \sigma^2_1 \leq \sigma^2_2" title="Rendered by QuickLaTeX.com" height="21" width="97" style="vertical-align: -6px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-70a3dcb8e0f90a20fda06cd76c92483f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_0: \sigma^2_1 \geq \sigma^2_2" title="Rendered by QuickLaTeX.com" height="21" width="97" style="vertical-align: -6px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1f709da3a6403957298802a3c60e557b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_0: \sigma^2_1 = \sigma^2_2" title="Rendered by QuickLaTeX.com" height="21" width="97" style="vertical-align: -6px;" /></td> </tr> <tr><td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f8f799bdfc6b113f7db4745b1433188d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> \sigma^2_2" title="Rendered by QuickLaTeX.com" height="21" width="97" style="vertical-align: -6px;"&gt;</td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-87612aea2b989484f7fbf8e41e13754d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_1: \sigma^2_1 &lt; \sigma^2_2" title="Rendered by QuickLaTeX.com" height="21" width="97" style="vertical-align: -6px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-dcecd104eb353141cb72c83b2b97f960_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_1: \sigma^2_1 \neq \sigma^2_2" title="Rendered by QuickLaTeX.com" height="21" width="97" style="vertical-align: -6px;" /></td> </tr> </tbody> </table> <p>We’ll always compare variances (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6a987274197f5fb6bfd3855d351bc2af_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma^2" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: 0px;" />) and not standard deviations (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />) to keep life simple.</p> <p>The test statistic is</p> <p class="ql-center-displayed-equation" style="line-height: 45px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5fed4e1d6a095ac8581ddba8cd59e158_l3.svg" height="45" width="143" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ F_{\rm test} = F_{\nu_1, \nu_2} = \frac{s^{2}_{1}}{s^{2}_{2}} \]" title="Rendered by QuickLaTeX.com" /></p> <p>where (for finding the critical statistic), <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7b36f32a886eacd5f13874e32ce469af_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu_{1} = n_{1} - 1" title="Rendered by QuickLaTeX.com" height="16" width="90" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fd79c4154971c2fbd2b5911cfc65e661_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu_{2} = n_{2} - 1" title="Rendered by QuickLaTeX.com" height="16" width="90" style="vertical-align: -4px;" />.</p> <p>Note that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-67315d2d51ff29a7d82a3f14b9ec4087_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F_{\nu_1, \nu_2} = 1" title="Rendered by QuickLaTeX.com" height="18" width="75" style="vertical-align: -6px;" /> when <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6ddef8ceb1aec2b6dbed8bf8149126af_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_{1}^{2}=s_{2}^{2}" title="Rendered by QuickLaTeX.com" height="21" width="55" style="vertical-align: -6px;" />, a fact you can use to get a feel for the meaning of this test statistic.</p> <p>Values for the various <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> critical values are given in the <strong><em>F</em> Distribution Table</strong> in the <a href="#back-matter-appendix-tables" target="_blank" rel="noopener noreferrer">Appendix</a>. We will denote a critical value of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> with the notation :</p> <p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4edcecfc1baf8eb56eca737ab99d3eb8_l3.svg" height="17" width="134" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[F_{\rm crit} = F_{\alpha, \hspace{.1in}\nu_{1}, \hspace{.1in} \nu_2}\]" title="Rendered by QuickLaTeX.com" /></p> <p>Where:</p> <p style="text-align: left; padding-left: 40px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> = Type I error rate<br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c25367bc5fbf09ea47b735a1d1cb27be_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu_{1}" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: -4px;" /> = d.f.N.<br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-95b83597701ee13ebb7ef564f66aee60_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu_{2}" title="Rendered by QuickLaTeX.com" height="11" width="16" style="vertical-align: -3px;" /> = d.f.D.</p> <p>The <strong><em>F</em> Distribution Table</strong> gives critical values for small right tail areas only. This means that they are useless for a left-tailed test. But that does not mean we cannot do a left-tail test. A left-tail test is easily converted into a right tail test by switching the assignments of populations 1 and 2. To get the assignments correct in the first place then, always define populations 1 and 2 so that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b01d27831da29e71cb9abf9eef330b8f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> \sigma^{2}_{2}" title="Rendered by QuickLaTeX.com" height="21" width="60" style="vertical-align: -6px;"&gt;. Assign population 1 so that it has the largest sample variance. Do this even for a two-tail test because we will have no idea what <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-38ca6e4e1bd238bf100cbbd4e5b5195f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F_{\rm crit}" title="Rendered by QuickLaTeX.com" height="16" width="31" style="vertical-align: -4px;" /> on the left side of the distribution is.</p> <p><strong>Example 10.3</strong> : Given the following data for smokers and non-smokers (maybe its about some sort of disease occurrence, who cares, let’s focus on dealing with the numbers), test if the population variances are equal or not at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />.</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 84%; height: 87px;"><tbody><tr><td class="shaded" style="width: 50%; text-align: center;">Smokers</td> <td class="shaded" style="width: 50%; text-align: center;">Nonsmokers</td> </tr> <tr><td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-14981a766aa704dfcd1c79869ad1aa9d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n_{1} = 26" title="Rendered by QuickLaTeX.com" height="16" width="60" style="vertical-align: -4px;" /></td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-189751ae848ca4f4bcfb18cb81dfeeb2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n_{2} = 18" title="Rendered by QuickLaTeX.com" height="15" width="60" style="vertical-align: -3px;" /></td> </tr> <tr><td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5310ab71e951d0f09a1422df16fd8077_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_{1}^{2}=36" title="Rendered by QuickLaTeX.com" height="21" width="58" style="vertical-align: -6px;" /></td> <td style="width: 50%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-be3515b573cf5a354bbea7dcea37e1d1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_{2}^{2}=10" title="Rendered by QuickLaTeX.com" height="20" width="58" style="vertical-align: -5px;" /></td> </tr> </tbody> </table> <p>Note that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a17a8350e3a43fd400a2959619b2d710_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> s_{2}^{2}" title="Rendered by QuickLaTeX.com" height="21" width="55" style="vertical-align: -6px;"&gt; so we’re good to go.</p> <p><em>Solution :</em></p> <p>1. Hypothesis.</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-252ec3abc9f96d56b0ecda96445b19ea_l3.svg" height="43" width="97" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} $H_0: \sigma^2_1 = \sigma^2_2$ \\ $H_1: \sigma^2_1 \neq \sigma^2_2$ \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>2. Critical statistic.</p> <p>Use the <strong><em>F</em> Distribution Table</strong>; it is a bunch of tables labeled by “<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />” that we will designate at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4450936f2bf0034f0fa5d464e3cc0c63_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha_{T}" title="Rendered by QuickLaTeX.com" height="11" width="21" style="vertical-align: -3px;" />, the table values that signify right tail areas. Since this is a two-tail test, we need <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-84b37fd9c47304b9a06c180df8335937_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="alpha_{T} = \alpha/2" title="Rendered by QuickLaTeX.com" height="18" width="106" style="vertical-align: -5px;" />. Next we need the degrees of freedom:</p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c194063d4059bdcc13e350d29c4e3674_l3.svg" height="16" width="269" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\mbox{d.f.N.} = \nu_{1} = n_{1} - 1 = 26-1 = 25\]" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 15px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1f42b4e6626b5f1edca0abd338183265_l3.svg" height="15" width="270" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[\mbox{d.f.D.} = \nu_{2} = n_{2} - 1 = 18-1 = 17\]" title="Rendered by QuickLaTeX.com" /></p> <p>So the critical statistic is</p> <p class="ql-center-displayed-equation" style="line-height: 19px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b3ea41bd484869e954a629de9fa478c6_l3.svg" height="19" width="391" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[F_{\rm crit} = F_{\alpha/2, \nu_1, \nu_2} = F_{0.05/2, 25, 7} = F_{0.025, 25, 17} = 2.56.\]" title="Rendered by QuickLaTeX.com" /></p> <p>3. Test statistic.</p> <p class="ql-center-displayed-equation" style="line-height: 45px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-11d379ecd2469bf0c934ff6d54da38a2_l3.svg" height="45" width="85" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[F_{\nu_1, \nu_2} = \frac{s^2_1}{s^2_2}\]" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 37px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-951f7572c34e97f658d894da31ac0d9f_l3.svg" height="37" width="194" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[F_{\rm test} = F_{25, 17} = \frac{36}{10} = 3.6\]" title="Rendered by QuickLaTeX.com" /></p> <p>With this test statistic, we can estimate the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value using the <strong><em>F</em> Distribution Table</strong>. To find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />, look up all the numbers with d.f.N = 25 and d.f.N = 17 (24 <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-aba1ec8f60e6d7d974dd15eebe56feb5_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\&amp;" title="Rendered by QuickLaTeX.com" height="12" width="13" style="vertical-align: 0px;" /> 17 are the closest in the tables so use those) in all the the <strong><em>F</em> Distribution Table</strong> and form your own table. For each column in your table record <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4450936f2bf0034f0fa5d464e3cc0c63_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha_{T}" title="Rendered by QuickLaTeX.com" height="11" width="21" style="vertical-align: -3px;" /> and the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> value corresponding to the degrees of freedom of interest. Again, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4450936f2bf0034f0fa5d464e3cc0c63_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha_{T}" title="Rendered by QuickLaTeX.com" height="11" width="21" style="vertical-align: -3px;" /> corresponds to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6969e4e2420b17ba9ff219d5db82a6ae_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p/2" title="Rendered by QuickLaTeX.com" height="18" width="27" style="vertical-align: -5px;" /> for a two-tailed test. So make a row above the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4450936f2bf0034f0fa5d464e3cc0c63_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha_{T}" title="Rendered by QuickLaTeX.com" height="11" width="21" style="vertical-align: -3px;" /> row with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1cb5c9eef5265f1386e401e7e996eb41_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p = 2 \alpha_{T}" title="Rendered by QuickLaTeX.com" height="16" width="64" style="vertical-align: -4px;" />. (For a one-tailed test, we would put <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-93094ae62e47488183623ee91e025a09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p=\alpha_{T}" title="Rendered by QuickLaTeX.com" height="12" width="55" style="vertical-align: -4px;" />.)</p> <table class="grid" style="border-collapse: collapse; width: 100%;"><tbody><tr><td style="width: 19.1799%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /><br /> <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4450936f2bf0034f0fa5d464e3cc0c63_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha_{T}" title="Rendered by QuickLaTeX.com" height="11" width="21" style="vertical-align: -3px;" /></td> <td style="width: 80.8201%;">0.20&nbsp; &nbsp; &nbsp; 0.10&nbsp; &nbsp; &nbsp; 0.05&nbsp; &nbsp; &nbsp; 0.02&nbsp; &nbsp; &nbsp; 0.01<br /> 0.10&nbsp; &nbsp; &nbsp; &nbsp;0.05&nbsp; &nbsp; &nbsp;0.025&nbsp; &nbsp; 0.01&nbsp; &nbsp; &nbsp; 0.005</td> </tr> <tr><td style="width: 19.1799%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /></td> <td style="width: 80.8201%;">1.84&nbsp; &nbsp; &nbsp; &nbsp;2.19&nbsp; &nbsp; &nbsp; 2.56&nbsp; &nbsp; &nbsp; &nbsp;3.08&nbsp; &nbsp; &nbsp; 3.51&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3.6 is over here somewhere so <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d40547857492877f8322071088eacce0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p&lt;0.01" title="Rendered by QuickLaTeX.com" height="16" width="65" style="vertical-align: -4px;" /></td> </tr> </tbody> </table> <p>Notice how we put an upper limit on <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> because <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1f3d3c9d59d765a27ad52a52f7a72fcb_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F_{\rm test}" title="Rendered by QuickLaTeX.com" height="15" width="32" style="vertical-align: -3px;" /> was larger than all the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> values in our little table.</p> <p>Let’s take a graphical look at why we use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-87d7e8022fdcb5a2b11468991e9f9ee0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p=2\alpha" title="Rendered by QuickLaTeX.com" height="16" width="54" style="vertical-align: -4px;" /> in the little table and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c0c70166cc39ecb764663e3a13f641d0_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha_{T} = \alpha/2" title="Rendered by QuickLaTeX.com" height="18" width="74" style="vertical-align: -5px;" /> for finding <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-38ca6e4e1bd238bf100cbbd4e5b5195f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F_{\rm crit}" title="Rendered by QuickLaTeX.com" height="16" width="31" style="vertical-align: -4px;" /> for two tailed tests :</p> <p>&nbsp;</p> <div class="wp-nocaption wp-image-2062 aligncenter"><img class="wp-image-2062 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig85png-300x140.jpg" alt="" width="403" height="188" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig85png-300x140.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig85png-65x30.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig85png-225x105.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig85png-350x163.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig85png.jpg 500w" /></div> <p>But in a two-tailed test we want <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> split on both sides:</p> <div class="wp-nocaption wp-image-2063 aligncenter"><img class="wp-image-2063 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig86png-300x166.jpg" alt="" width="383" height="212" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig86png-300x166.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig86png-65x36.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig86png-225x125.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig86png-350x194.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig86png.jpg 406w" /></div> <p>&nbsp;</p> <p>4. Decision.</p> <div class="wp-nocaption wp-image-2064 aligncenter"><img class="wp-image-2064 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig86apng-300x183.jpg" alt="" width="377" height="230" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig86apng-300x183.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig86apng-65x40.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig86apng-225x137.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig86apng-350x213.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig86apng.jpg 456w" /></div> <p>Reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value estimate supports this :</p> <p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-894e2a20fffe4165c0e1f83bfbfda7d5_l3.svg" height="18" width="180" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[ ( p &lt; 0.01) &lt; (\alpha = 0.05) \]" title="Rendered by QuickLaTeX.com" /></p> <p>5. Interpretation.</p> <p>There is enough evidence to conclude, at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /> with an <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" />-test, that the variance of the smoker population is different from the non-smoker population.</p> <p style="text-align: right;">▢</p> </div></div>
<div class="chapter standard" id="chapter-slug-10-4-unpaired-or-independent-sample-t-test" title="10.4 Unpaired or Independent Sample t-Test"><div class="chapter-title-wrap"><h3 class="chapter-number">43</h3><h2 class="chapter-title">10.4 Unpaired or Independent Sample t-Test</h2></div><div class="ugc chapter-ugc">
<p>In comparing the variances of two populations we have one of two situations :</p> <ol><li>Homoscedasticity : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-97da04f339ac34b3da40692af84cece6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma^2_1 = \sigma^2_2" title="Rendered by QuickLaTeX.com" height="21" width="60" style="vertical-align: -6px;" /></li> <li>Heteroscedasticity : <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4360fb69dbc23c4e6b0ad4b37d54e0c9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma^2_1 \neq \sigma^2_2" title="Rendered by QuickLaTeX.com" height="21" width="60" style="vertical-align: -6px;" /></li> </ol> <p>These terms also apply when there are more than 2 populations. They either all have the same variance, or not. This affects how we do an independent sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test because we have two cases :</p> <p><strong>1. Variances of the two populations assumed unequal. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4360fb69dbc23c4e6b0ad4b37d54e0c9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma^2_1 \neq \sigma^2_2" title="Rendered by QuickLaTeX.com" height="21" width="60" style="vertical-align: -6px;" />.</strong></p> <p>Then the test statistic is :</p> <p class="ql-center-displayed-equation" style="line-height: 57px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf86b76a6f14b3f2c9ccf65b6af6e097_l3.svg" height="57" width="133" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[t_{\rm test} = \frac{(\bar{x}_1 - \bar{x}_2)}{\sqrt{\frac{s^2_1}{n_1} + \frac{s^2_1}{n_2}}}\]" title="Rendered by QuickLaTeX.com" /></p> <p>This is the same formula as we used for the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-test. To find the critical statistic we will use, when solving problems by hand, degrees of freedom</p> <p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">(10.2) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-62c8addc923c0955f02cacdadc6e0190_l3.svg" height="18" width="187" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*}  \nu = \min(n_{1}-1,n_{2}-1). \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>This choice is a conservative approach (harder to reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />). SPSS uses a more accurate<br /> <a id="id427816200"></a></p> <p class="ql-center-displayed-equation" style="line-height: 105px;"><span class="ql-right-eqno">(10.3) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d932e648d6f4e27c1e14acbfd1cfdef1_l3.svg" height="105" width="166" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} \nu = \frac{\left( \frac{s^2_1}{n_1} + \frac{s_2^2}{n_2} \right)^2}{\left[ \frac{\left( \frac{s^2_1}{n_1} \right)}{n_1-1} + \frac{\left( \frac{s^2_2}{n_2} \right)}{n_{2}-1} \right]} \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>You will not need to use Equation (10.3), only Equation (10.2). Equation (10.3) gives fractional degrees of freedom. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> test statistic for this case and the degrees of freedom in Equation (10.3) is know as the Satterwaite approximation. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-distributions are strictly only applicable if <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-497ca51cb9e674493a39363dacc5c308_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma_{1} = \sigma_{2}" title="Rendered by QuickLaTeX.com" height="12" width="58" style="vertical-align: -4px;" />. The Satterwaite approximation is an adjustment to make the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-distributions fit this <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f249b1decede49bab850ca1eb2c1d1a4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma_{1} \neq \sigma_{2}" title="Rendered by QuickLaTeX.com" height="17" width="58" style="vertical-align: -4px;" /> case.</p> <p><strong>2. Variances of the two populations assumed equal. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f8cde5581bd213aca6912274cd566158_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma_{1} = \sigma_{2} = \sigma" title="Rendered by QuickLaTeX.com" height="12" width="94" style="vertical-align: -4px;" />.</strong></p> <p>In this case the test statistic is:</p> <p class="ql-center-displayed-equation" style="line-height: 60px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0aed62420a3b5efe49daa35ca80a9e5c_l3.svg" height="60" width="278" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[t_{\rm test} = \frac{(\bar{x}_1 - \bar{x}_2)}{\sqrt{\frac{(n_1-1)s^2_1 + (n_2-1)s^2_2}{n_1 + n_2 - 2}} \sqrt{\frac{1}{n_1} + \frac{1}{n_2}}}\]" title="Rendered by QuickLaTeX.com" /></p> <p>This test statistic formula can be made more intuitive by defining</p> <p class="ql-center-displayed-equation" style="line-height: 54px;"><span class="ql-right-eqno">(10.4) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-85635de5372700e1b9674db172aa6395_l3.svg" height="54" width="240" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} s_{p} = \sqrt{\frac{(n_1-1)s^2_1 + (n_2-1)s^2_2}{n_1 + n_2 - 2}} \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>as the <em>pooled estimate of the variance</em>. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-282552639aa5d2dfe6e4c360359594b3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_{p}" title="Rendered by QuickLaTeX.com" height="14" width="15" style="vertical-align: -6px;" /> is the data estimate for the common population <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7bcc121b4cda7e973ba9887cd75f2b83_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_{p}^{2}" title="Rendered by QuickLaTeX.com" height="22" width="15" style="vertical-align: -7px;" /> is the weighted mean of the sample variances <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6f0b645b4eb6133a70e6d8c68fdab290_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_{1}^{2}" title="Rendered by QuickLaTeX.com" height="21" width="15" style="vertical-align: -6px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ddc53fdb160b4e11c95cf8052552f55c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_{2}^{2}" title="Rendered by QuickLaTeX.com" height="20" width="15" style="vertical-align: -5px;" />. Recall the generic weighted mean formula, Equation (3.2). The weights are <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a69a48de810ae8bbbecd9c9ea504a035_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu_{1} = n_{1}-1" title="Rendered by QuickLaTeX.com" height="16" width="88" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-69fdbff61ecae7b4aa11cc177ca92049_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu_{2}=n_{1}-1" title="Rendered by QuickLaTeX.com" height="16" width="88" style="vertical-align: -4px;" />; their sum is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0fe7c8fda0332d48576f3083a4737d8d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu_{1} + \nu_{2} = n_{1} - 1 + n_{2} -1 = n_{1} + n_{2} -2" title="Rendered by QuickLaTeX.com" height="16" width="309" style="vertical-align: -4px;" />. In other words</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c89017b80023ca684d61dc0cb1d41fd8_l3.svg" height="43" width="128" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[s_{p}^{2} = \frac{\nu_{1} s_{1}^{2} + \nu_{2} s_{2}^{2}}{\nu_{1} + \nu_{2}}\]" title="Rendered by QuickLaTeX.com" /></p> <p>and we can write the test statistic as</p> <p class="ql-center-displayed-equation" style="line-height: 57px;"><span class="ql-right-eqno">(10.5) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-290d2f57c9a15272826eea91e216e017_l3.svg" height="57" width="155" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} t_{\rm test}= \frac{(\bar{x}_1 - \bar{x}_2)}{s_{p} \sqrt{\frac{1}{n_1} + \frac{1}{n_2}}}. \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>See that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8e16fc203a3a20f609ae241e5d52a4e1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_{p} \sqrt{\frac{1}{n_1} + \frac{1}{n_2}}" title="Rendered by QuickLaTeX.com" height="33" width="94" style="vertical-align: -12px;" /> is clearly a standard error of the mean.</p> <h1 id="chapter-148-section-1" class="section-header"><strong>10.4.1 General form of the <em>t</em> test statistic</strong></h1> <p><em>All <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> statistics have the form</em> :</p> <p class="ql-center-displayed-equation" style="line-height: 38px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c6c10c20138436c8c2c22873c48310c0_l3.svg" height="38" width="348" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[t_{\rm test}= \frac{\mbox{Difference of means}}{\mbox{Standard error of the mean}} = \frac{\mbox{Signal}}{\mbox{Noise}}.\]" title="Rendered by QuickLaTeX.com" /></p> <p>Remember that! Memorizing complicated formulae is useless, but you should remember the basic form of a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> test statistic.</p> <h1 id="chapter-148-section-2" class="section-header"><strong>10.4.2 Two step procedure for the independent samples <em>t</em> test</strong></h1> <div>We will use the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> test to decide whether to use case 1 or 2.&nbsp;SPSS uses a test called “Levine’s test” instead of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> test we developed to test <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c529c41306bfda2f6858e58801d4979f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}: \sigma^2_1 \neq \sigma^2_2" title="Rendered by QuickLaTeX.com" height="21" width="97" style="vertical-align: -6px;" />.&nbsp; Levine’s test also produces an <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> test statistic. It is a different <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> than our <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> but you interpret it in the same way. If the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> is high (larger than <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />) then assume <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-497ca51cb9e674493a39363dacc5c308_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma_{1} = \sigma_{2}" title="Rendered by QuickLaTeX.com" height="12" width="58" style="vertical-align: -4px;" />, if the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value is low (smaller than <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" />) then assume <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f249b1decede49bab850ca1eb2c1d1a4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma_{1} \neq \sigma_{2}" title="Rendered by QuickLaTeX.com" height="17" width="58" style="vertical-align: -4px;" />.</div> <div></div> <div>In real life, homoscedasticity is almost always assumed because the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test is robust to violations of homoscedasticity until one sample set contains twice as many, or more, data points as the other.</div> <div></div> <p><strong>Example 10.4</strong>: Case 1 example.</p> <p>Given the following data summary :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 88.1212%; height: 56px;"><tbody><tr><td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fb78c4caee667b346ba761b4de00810f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_{1}=38" title="Rendered by QuickLaTeX.com" height="16" width="58" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-25c9716836023c630e543096bade8b78_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x}_{1}=191" title="Rendered by QuickLaTeX.com" height="16" width="67" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-024490491f3759d7ec5792e6ee8292a8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n_{1}=8" title="Rendered by QuickLaTeX.com" height="16" width="51" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7a616295cf115e2c9298362af4406eda_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_{2}=12" title="Rendered by QuickLaTeX.com" height="15" width="57" style="vertical-align: -3px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-870e99aad34a1a49a677913d0dd32469_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x}_{2}=199" title="Rendered by QuickLaTeX.com" height="15" width="68" style="vertical-align: -3px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-825b45490e870ec2ae5e0b8c7f0c05dc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n_{2}=10" title="Rendered by QuickLaTeX.com" height="15" width="60" style="vertical-align: -3px;" /></td> </tr> </tbody> </table> <p>(Note that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c2c955ae1dd131bd28bfb2b6139beb3e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> (s_{2}=12)" title="Rendered by QuickLaTeX.com" height="18" width="164" style="vertical-align: -4px;"&gt;. If that wasn’t true, we could reverse the definitions of populations 1 and 2 so that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f5ed4b8b541ae02ea3f96505f93f9112_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> 1" title="Rendered by QuickLaTeX.com" height="15" width="66" style="vertical-align: -3px;"&gt;.) Is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b8183fd7868377cfb555c426ec23dc56_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x}_1" title="Rendered by QuickLaTeX.com" height="15" width="16" style="vertical-align: -4px;" /> significantly different from <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a1c95e326f883b81e77999948dd18d4d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x}_2" title="Rendered by QuickLaTeX.com" height="14" width="17" style="vertical-align: -3px;" />? That is, is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d149c113f8f37609c8e55fb3c93c8640_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu_1" title="Rendered by QuickLaTeX.com" height="12" width="17" style="vertical-align: -4px;" /> different from <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ffdb6b6a231a0c42b4ec6db89b5d09b6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\mu_2" title="Rendered by QuickLaTeX.com" height="12" width="18" style="vertical-align: -4px;" />? Test at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1e7a70605f68e89ed47b3cb961fcd722_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha=0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />.</p> <p><em>Solution</em> :</p> <p>So the question is to decide between</p> <p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ba154255bbfa0763040cb2b5e014c0eb_l3.svg" height="17" width="253" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[H_{0}: \mu_{1} = \mu_{2} \hspace{.5in} H_{1}: \mu_{1} \neq \mu_{2}\]" title="Rendered by QuickLaTeX.com" /></p> <p>a two-tailed test. But before we can test the question, we have to decide which <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> test statistic to use: case 1 or 2. So we need to do two hypotheses tests in a row. The first one to decide which <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5d9748cc18b5391e12cc7e345006dec8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\rm test}" title="Rendered by QuickLaTeX.com" height="15" width="27" style="vertical-align: -3px;" /> statistic to use, the second one to test the hypotheses of interest given above.</p> <p><strong>Test 1</strong> : See if variances can be assumed equal or not.</p> <p>1. Hypothesis.</p> <p class="ql-center-displayed-equation" style="line-height: 22px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-69d9f2867bd08d8158355d3211e556f3_l3.svg" height="22" width="225" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[H_0: \sigma^2_1 = \sigma^2_2\hspace{.25in} H_1: \sigma^2_1 \neq \sigma^2_2\]" title="Rendered by QuickLaTeX.com" /></p> <p>(Always use a two-tailed hypothesis when using the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> test to decide between case 1 and 2 for the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> test statistic.)</p> <p>2. Critical statistic.</p> <p class="ql-center-displayed-equation" style="line-height: 19px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-48c705de519bdef4f79f779371c7c3e4_l3.svg" height="19" width="378" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[F_{\rm crit} = F_{\alpha/2, \nu_1, \nu_2} = F_{0.05/2, 7, 9} = F_{0.025},7 ,9 = 4.20\]" title="Rendered by QuickLaTeX.com" /></p> <p>(from the <strong><em>F</em>&nbsp;Distribution Table</strong>)</p> <p>(Here we used <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> given for the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test question. But that is not necessary. You can use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /> in general; the consequence of a type I error here is small because the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test is robust to violations of the assumption of homoscedasticity.)</p> <p>3. Test statistic.</p> <p class="ql-center-displayed-equation" style="line-height: 45px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1494dd5cc2524ecc9f0cc90955ed410d_l3.svg" height="45" width="249" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[F_{\rm test} = F_{7, 9} = \frac{s^2_1}{s^2_2} = \frac{38^2}{12^2} = 10.03\]" title="Rendered by QuickLaTeX.com" /></p> <p>4. Decision.</p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0f64281f9bf1f197b4e58fe12fa62516_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> 4.20" title="Rendered by QuickLaTeX.com" height="13" width="95" style="vertical-align: -1px;"&gt; (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3c21a2b3cd4200a955f85d88f8907af9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> F_{\rm crit}" title="Rendered by QuickLaTeX.com" height="16" width="89" style="vertical-align: -4px;"&gt; — drawing a picture would be a safe thing to do here as usual) so reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />.</p> <p>5. Interpretation.</p> <p>Assume the variances are unequal, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-03604774aed7ce59b6f9eab2db8377f5_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma_{1}^{2} \neq \sigma_{2}^{2}" title="Rendered by QuickLaTeX.com" height="21" width="60" style="vertical-align: -6px;" />, and use the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> test statistic of case 1.</p> <p><strong>Test 2</strong> : The question of interest.</p> <p>1. Hypothesis.</p> <p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad9030bd22cca07317bbc851399a1802_l3.svg" height="17" width="224" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[H_0: \mu_1 = \mu_2\hspace{.25in}H_1: \mu_1 \neq \mu_2\]" title="Rendered by QuickLaTeX.com" /></p> <p>2. Critical statistic.</p> <p>From the <strong><em>t</em> Distribution Table</strong>, with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4e24aaef75eeb9935be4ee62165200fa_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu =\min(n_{1}-1,n_{2}-1) = \min(8-1, 10-1) \min(7,9) = 7" title="Rendered by QuickLaTeX.com" height="18" width="449" style="vertical-align: -4px;" />, and a two-tailed test with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /> we find</p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-68a79d644b1d5b06787ad18882ee2c96_l3.svg" height="16" width="106" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[t_{\rm crit} = \pm 2.365\]" title="Rendered by QuickLaTeX.com" /></p> <p>3. Test Statistic.</p> <p class="ql-center-displayed-equation" style="line-height: 120px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-278a6a5b2ce99debac692d0f981f745f_l3.svg" height="120" width="215" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{eqnarray*} t &amp; = &amp; \frac{(\bar{x}_1 - \bar{x}_2)}{\sqrt{\frac{s^2_1}{n_1} + \frac{s^2_2}{n_2}}} \\ &amp; = &amp; \frac{(191 - 199)}{\sqrt{\frac{38^2}{8} + \frac{12^2}{10}}} = -0.57 \end{eqnarray*}" title="Rendered by QuickLaTeX.com" /></p> <p>The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value may be estimated from the <strong><em>t</em> Distribution Table</strong> using the procedure given in Chapter 9: from the <strong><em>t</em> Distribution Table</strong>, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8453e9e9a78b507670fa8d30dcc387a3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu = 7" title="Rendered by QuickLaTeX.com" height="13" width="43" style="vertical-align: 0px;" /> line, find the values that bracket 0.57. There are none, the smallest value is 0.711 corresponding to <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-547984d9a7db2bd36cd68f27e949e2ad_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.50" title="Rendered by QuickLaTeX.com" height="13" width="67" style="vertical-align: 0px;" />. So all we can say is <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5378cc8a0ccfb1cb5b0a16a0e50ffc43_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> 0.50" title="Rendered by QuickLaTeX.com" height="17" width="66" style="vertical-align: -4px;"&gt;.</p> <p>4. Decision.</p> <div class="wp-nocaption wp-image-2074 aligncenter"><img class="wp-image-2074 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig87png-300x184.jpg" alt="" width="403" height="247" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig87png-300x184.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig87png-65x40.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig87png-225x138.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig87png-350x215.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig87png.jpg 511w" /></div> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5c26616174aa19534a18555ab97615ab_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\rm test} = -0.57" title="Rendered by QuickLaTeX.com" height="16" width="99" style="vertical-align: -3px;" /> is not in the rejection region so do not reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. The estimate for the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value confirms this decision.</p> <p>5. Interpretation.</p> <p>There is not enough evidence, at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /> with the independent sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test, to conclude that the means of the populations are different.</p> <p style="text-align: right;">▢</p> <p><strong>Example 10.5</strong> (Case 2 example) :</p> <p>The following data seem to show that private nurses earn more than government nurses :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 77.3333%; height: 56px;"><tbody><tr style="height: 14px;"><td class="shaded" style="width: 50%; text-align: center; height: 14px;">Private Nurses Salary</td> <td class="shaded" style="width: 50%; text-align: center; height: 14px;">Government Nurses Salary</td> </tr> <tr style="height: 14px;"><td style="width: 50%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c4b5dabdcc28770bdd52fb2efbe0c319_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}_1 = 26,800" title="Rendered by QuickLaTeX.com" height="16" width="94" style="vertical-align: -4px;" /></td> <td style="width: 50%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fcedeed87c819196071de27d441b821c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\bar{x}_2 = 25,400" title="Rendered by QuickLaTeX.com" height="17" width="94" style="vertical-align: -4px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 50%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-214ecbbc1650d3f74913c5f227e7adfa_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_1 = 600" title="Rendered by QuickLaTeX.com" height="16" width="67" style="vertical-align: -4px;" /></td> <td style="width: 50%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-35e6fa4604a628dda463e80d2b6a13b9_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_2 = 450" title="Rendered by QuickLaTeX.com" height="16" width="67" style="vertical-align: -3px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 50%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5f2d0786552ea0c3986555f5622a34d3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n_1 = 10" title="Rendered by QuickLaTeX.com" height="16" width="60" style="vertical-align: -4px;" /></td> <td style="width: 50%; text-align: center; height: 14px;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3eac0f8e317722183c49bcb09fc9f4b4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="n_2 = 8" title="Rendered by QuickLaTeX.com" height="15" width="51" style="vertical-align: -3px;" /></td> </tr> </tbody> </table> <p>Testing at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-37cbad7dd6cbfce0029e7398590b30b4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha=0.01" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: -1px;" />, do private nurses earn more than government nurses?</p> <p><em>Solution</em> :</p> <p>First confirm, or change, the population definitions so that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a17a8350e3a43fd400a2959619b2d710_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="image" /> s_{2}^{2}" title="Rendered by QuickLaTeX.com" height="21" width="55" style="vertical-align: -6px;"&gt;. This is already true so we are good to go.</p> <p><strong>Test 1</strong> : See if variances can be assumed equal or not. This is a test of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-36bc3ef8eabe8450e4f19a72a0cc4a09_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}: \sigma_{1}^{2} = \sigma_{2}^{2}" title="Rendered by QuickLaTeX.com" height="21" width="97" style="vertical-align: -6px;" /> vs. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e80bd56a7c52224a4729565b16e0a333_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}: \sigma_{1}^{2} \neq \sigma_{2}^{2}" title="Rendered by QuickLaTeX.com" height="21" width="97" style="vertical-align: -6px;" />. After the test we find that we believe that <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b69800d62b5c8f78c9e48856e9d7e18f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\sigma_{1}^{2} = \sigma_{2}^{2}" title="Rendered by QuickLaTeX.com" height="21" width="60" style="vertical-align: -6px;" /> at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad6ce5c9ea5f3e49e839c4b3d5273902_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.05" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />. So we will use the case 2, equal variances, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test formula for test 2, the test of interest.</p> <p><strong>Test 2</strong> : The question of interest.</p> <p>1. Hypothesis.</p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-afdc81fdda63580a8a22cd35e08e1bf2_l3.svg" height="16" width="97" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[H_{0}: \mu_{1} \leq \mu_{2}\]" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-404da2b37028cc511a7676eecb94fb84_l3.svg" height="16" width="97" class="ql-img-displayed-equation quicklatex-auto-format" alt="image" /> \mu_{2}\]" title="Rendered by QuickLaTeX.com"&gt;</p> <p>(Note how <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cb24164671f845ebeed08fbdc9bc59ed_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{1}" title="Rendered by QuickLaTeX.com" height="16" width="21" style="vertical-align: -4px;" /> reflects the face value of the data, that private nurses appear to earn more than government nurses in the population — it is true in the samples.)</p> <p>2. Critical statistic.</p> <p>Use the <strong><em>t</em> Distribution Table</strong>, one-tailed test, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fef59435375469c4dfa5f6c25a323dc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.01" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: -1px;" /> (column) and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-91c1911f635127c984d440ee34cd48a1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu = n_{1} + n_{2} -2 = 10+8-2=16" title="Rendered by QuickLaTeX.com" height="16" width="266" style="vertical-align: -4px;" /> to find</p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-acee6d1adf98d3a25933dd13d86d369e_l3.svg" height="16" width="92" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[t_{\rm crit} = 2.583\]" title="Rendered by QuickLaTeX.com" /></p> <p>3. Test statistic.</p> <p class="ql-center-displayed-equation" style="line-height: 292px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a543c94235a3ae14e6927997df14adf3_l3.svg" height="292" width="348" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{eqnarray*} t_{\rm test} &amp;=&amp; \frac{(\bar{x}_1 - \bar{x}_2)}{\sqrt{\frac{(n_1-1)s^2_1 + (n_2-1)s^2_2}{n_1+n_2-2}} \sqrt{\frac{1}{n_1} + \frac{1}{n_2}}} \\ t_{\rm test} &amp;=&amp; \frac{(26,800 - 25,400)}{\sqrt{\frac{(10-1)600^2 + (8-1)450^2}{10+8-2}} \sqrt{\frac{1}{10} + \frac{1}{8}}} \\ t_{\rm test} &amp;=&amp; \frac{1400}{\sqrt{\frac{(9)(360000) + (7)(202500)}{16}}\sqrt{0.1+0.125}} \\ t_{\rm test} &amp;=&amp; \frac{1400}{\sqrt{\frac{3240000 + 1417500}{16}} \sqrt{0.225}} \\ t_{\rm test} &amp;=&amp; \frac{1400}{(\sqrt{291093.75})(\sqrt{0.225})} = 5.47 \end{eqnarray*}" title="Rendered by QuickLaTeX.com" /></p> <p>To estimate the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value, look at the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2bd7f58f0493d6120dd561017283665d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu = 16" title="Rendered by QuickLaTeX.com" height="13" width="52" style="vertical-align: -1px;" /> line in the <strong><em>t</em> Distribution Table</strong> to see if there are a pair of numbers that bracket <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1c92f0e4bc9544c7e69a7fbc84a4f9dd_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\rm test}=5.47" title="Rendered by QuickLaTeX.com" height="16" width="85" style="vertical-align: -3px;" />. They are all smaller than 5.47 so <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> is less than the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> associated with the largest number 2.921 whose <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f0b6b1a01f8fcc2f95be0364c090397_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha" title="Rendered by QuickLaTeX.com" height="8" width="11" style="vertical-align: 0px;" /> is 0.005 (one-tailed, remember). So <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-88df7baf24d60c024ed81ca33f73c619_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p &lt; 0.005" title="Rendered by QuickLaTeX.com" height="17" width="74" style="vertical-align: -4px;" />.</p> <p>4. Decision.</p> <div class="wp-nocaption wp-image-2107 aligncenter"><img class="wp-image-2107 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig88png-300x122.png" alt="" width="612" height="249" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig88png-300x122.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig88png-1024x416.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig88png-768x312.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig88png-65x26.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig88png-225x91.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig88png-350x142.png 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig88png.png 1047w" /></div> <p>Reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> since <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5d9748cc18b5391e12cc7e345006dec8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\rm test}" title="Rendered by QuickLaTeX.com" height="15" width="27" style="vertical-align: -3px;" /> is in the rejection region and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b0686454c4a6babfc9638498af736339_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="(p &lt; 0.005) &lt; (\alpha = 0.01)" title="Rendered by QuickLaTeX.com" height="18" width="189" style="vertical-align: -4px;" />.</p> <p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-329a4682f471325892bc752da69f4a1e_l3.svg" height="18" width="221" class="ql-img-displayed-equation quicklatex-auto-format" alt="image" /> t_{crit} \hspace{.25in} (5.47 &gt; 2.583)\]" title="Rendered by QuickLaTeX.com"&gt;</p> <p>5. Interpretation.</p> <p>From a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-fef59435375469c4dfa5f6c25a323dc8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\alpha = 0.01" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: -1px;" />, there is enough evidence to conclude that private nurses earn more than government nurses.</p> <p style="text-align: right;">▢</p> 
</div></div>
<div class="chapter standard" id="chapter-slug-10-5-confidence-intervals-for-the-difference-of-two-means" title="10.5 Confidence Intervals for the Difference of Two Means"><div class="chapter-title-wrap"><h3 class="chapter-number">44</h3><h2 class="chapter-title">10.5 Confidence Intervals for the Difference of Two Means</h2></div><div class="ugc chapter-ugc"><p>The form of the confidence interval is</p> <p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8f9a2f9b2834bbea1e1b4461d2786c22_l3.svg" height="18" width="332" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#40;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#49;&#32;&#45;&#32;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#50;&#41;&#32;&#45;&#32;&#69;&#32;&#60;&#32;&#40;&#92;&#109;&#117;&#95;&#123;&#49;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#123;&#50;&#125;&#41;&#32;&#60;&#32;&#40;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#49;&#32;&#45;&#32;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#50;&#41;&#32;&#43;&#32;&#69;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>but, as with hypothesis testing, we have two cases to choose from to get the formula for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-764e1c770271f92700e1a4fbce46c668_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#69;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> :</p> <p><strong>Case 1 : Variances of the 2 populations unequal</strong>}</p> <p class="ql-center-displayed-equation" style="line-height: 54px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-19f8c7422d643134c4619d2f29f9b9cf_l3.svg" height="54" width="138" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#69;&#32;&#61;&#32;&#116;&#95;&#123;&#92;&#99;&#97;&#108;&#123;&#67;&#125;&#125;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#94;&#50;&#95;&#49;&#125;&#123;&#110;&#95;&#49;&#125;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#94;&#50;&#95;&#50;&#125;&#123;&#110;&#95;&#50;&#125;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>where the degrees of freedom to use when looking up <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-698ee0eb93f34d1200260a73988d10cc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;&#95;&#123;&#92;&#99;&#97;&#108;&#123;&#67;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -3px;" /> in the <strong><em>t</em> Distribution Table</strong> is </p> <p class="ql-center-displayed-equation" style="line-height: 19px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-311cd1c3f079ca0706971c13c82d35b5_l3.svg" height="19" width="204" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#92;&#110;&#117;&#32;&#61;&#32;&#92;&#109;&#105;&#110;&#91;&#40;&#110;&#95;&#123;&#49;&#125;&#45;&#49;&#41;&#44;&#32;&#40;&#110;&#95;&#123;&#50;&#125;&#45;&#49;&#41;&#93;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p><strong>Case 2 : Variances of the 2 populations equal</strong></p> <p class="ql-center-displayed-equation" style="line-height: 54px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6f6a71218a95649c26ff7c55fc67f7f8_l3.svg" height="54" width="338" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#69;&#32;&#61;&#32;&#116;&#95;&#123;&#92;&#99;&#97;&#108;&#123;&#67;&#125;&#125;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#110;&#95;&#49;&#45;&#49;&#41;&#115;&#94;&#50;&#95;&#49;&#32;&#43;&#32;&#40;&#110;&#95;&#50;&#45;&#49;&#41;&#115;&#94;&#50;&#95;&#50;&#125;&#123;&#110;&#95;&#49;&#43;&#110;&#95;&#50;&#45;&#50;&#125;&#125;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#95;&#49;&#125;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#95;&#50;&#125;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>where we use </p> <p class="ql-center-displayed-equation" style="line-height: 15px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8d502efbd0bef3a40eff9b2476983895_l3.svg" height="15" width="121" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#92;&#110;&#117;&#61;&#32;&#110;&#95;&#49;&#32;&#43;&#32;&#110;&#95;&#50;&#32;&#45;&#32;&#50;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>when looking up <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-698ee0eb93f34d1200260a73988d10cc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;&#95;&#123;&#92;&#99;&#97;&#108;&#123;&#67;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -3px;" />.</p> <p>To select the appropriate formula for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-764e1c770271f92700e1a4fbce46c668_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#69;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> we need to do a preliminary hypothesis test on <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6d0d82b4c9aaf59fff8a6ef56ae756cf_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;&#32;&#58;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#123;&#49;&#125;&#94;&#123;&#50;&#125;&#32;&#61;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#123;&#50;&#125;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="21" width="97" style="vertical-align: -6px;" />. An odd combination of hypothesis test followed by confidence interval calculation.</p> <p><strong>Insight!</strong> By now you should have noticed that the formulae for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-764e1c770271f92700e1a4fbce46c668_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#69;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> are just <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> times standard error of the mean. This whole <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-transformation thing should be becoming somewhat transparent.</p> <p><strong>Example 10.6</strong> : Find the 95<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#37;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> confidence interval for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-72a6429fac6b10e85f12671ab589a21b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#109;&#117;&#95;&#123;&#49;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="12" width="58" style="vertical-align: -4px;" /> for the data of Example 10.4 :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 86.4242%; height: 59px;"><tbody><tr><td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3993679a643f26e0733e4bc5ab12ba0d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#95;&#49;&#61;&#51;&#56;" title="Rendered by QuickLaTeX.com" height="16" width="58" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b50741eef4a5c260f1d9e87fb497d044_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#95;&#49;&#32;&#61;&#32;&#49;&#57;&#49;" title="Rendered by QuickLaTeX.com" height="16" width="67" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8ecd0288194a6d849e88798685d36e7e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#95;&#49;&#32;&#61;&#32;&#56;" title="Rendered by QuickLaTeX.com" height="16" width="51" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8d8f21f1236df9b1b7268d4147825c38_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#95;&#50;&#32;&#61;&#32;&#49;&#50;" title="Rendered by QuickLaTeX.com" height="15" width="57" style="vertical-align: -3px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-912bcfab59a7616118dfff37b11080cc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#95;&#50;&#32;&#61;&#32;&#49;&#57;&#57;" title="Rendered by QuickLaTeX.com" height="15" width="68" style="vertical-align: -3px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7dcd84b4931f8d2dca950edc33e3cd14_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#110;&#95;&#50;&#32;&#61;&#32;&#49;&#48;&#48;" title="Rendered by QuickLaTeX.com" height="15" width="69" style="vertical-align: -3px;" /></td> </tr> </tbody> </table> <p><em>Solution</em> :</p> <p>First use <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#70;" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" />-test to see which formula to use.  We did this already in Example 10.4 (the data come from that question) and found that we believed <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-03604774aed7ce59b6f9eab2db8377f5_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#123;&#49;&#125;&#94;&#123;&#50;&#125;&#32;&#92;&#110;&#101;&#113;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#123;&#50;&#125;&#94;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="21" width="60" style="vertical-align: -6px;" /> with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1e7a70605f68e89ed47b3cb961fcd722_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#61;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />.</p> <p>Next, look up <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-698ee0eb93f34d1200260a73988d10cc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;&#95;&#123;&#92;&#99;&#97;&#108;&#123;&#67;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -3px;" /> in the <strong><em>t</em> Distribution Table</strong> for 95<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bf0eaef28263fe389d27c69703bee6d4_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#37;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -1px;" /> confidence interval for <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8453e9e9a78b507670fa8d30dcc387a3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#32;&#55;" title="Rendered by QuickLaTeX.com" height="13" width="43" style="vertical-align: 0px;" />:</p> <p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e2a65808ac1aaba6581500743ab10f38_l3.svg" height="17" width="96" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#32;&#116;&#95;&#123;&#57;&#53;&#92;&#37;&#125;&#32;&#61;&#32;&#50;&#46;&#51;&#54;&#53;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>Compute</p> <p class="ql-center-displayed-equation" style="line-height: 103px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cf404d994f7d2fb431802b8e6157e7ff_l3.svg" height="103" width="262" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#69;&#32;&#38;&#61;&#38;&#32;&#116;&#95;&#123;&#57;&#53;&#92;&#37;&#125;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#94;&#50;&#95;&#49;&#125;&#123;&#110;&#95;&#49;&#125;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#94;&#50;&#95;&#50;&#125;&#123;&#110;&#95;&#50;&#125;&#125;&#32;&#92;&#92; &#69;&#32;&#38;&#61;&#38;&#32;&#50;&#46;&#51;&#54;&#53;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#51;&#56;&#94;&#50;&#125;&#123;&#56;&#125;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#50;&#94;&#50;&#125;&#123;&#49;&#48;&#125;&#125;&#32;&#61;&#32;&#51;&#51;&#46;&#48;&#49; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>So</p> <p class="ql-center-displayed-equation" style="line-height: 98px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4a61d2455d53c35f9b1ff5eb46e44900_l3.svg" height="98" width="428" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#40;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#49;&#32;&#45;&#32;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#50;&#41;&#32;&#45;&#32;&#69;&#32;&#38;&#60;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#50;&#32;&#38;&#60;&#32;&#40;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#49;&#32;&#45;&#32;&#92;&#98;&#97;&#114;&#123;&#120;&#125;&#95;&#50;&#41;&#32;&#43;&#69;&#32;&#92;&#92; &#40;&#49;&#57;&#49;&#45;&#49;&#57;&#57;&#41;&#32;&#45;&#32;&#51;&#51;&#46;&#48;&#50;&#32;&#38;&#60;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#50;&#32;&#38;&#60;&#32;&#40;&#49;&#57;&#49;&#45;&#49;&#57;&#57;&#41;&#32;&#43;&#32;&#51;&#51;&#46;&#48;&#50;&#32;&#92;&#92; &#45;&#56;&#32;&#45;&#32;&#51;&#51;&#46;&#48;&#50;&#32;&#38;&#60;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#50;&#32;&#38;&#60;&#32;&#45;&#56;&#32;&#43;&#32;&#51;&#51;&#46;&#48;&#50;&#32;&#92;&#92; &#45;&#52;&#49;&#46;&#48;&#50;&#32;&#38;&#60;&#32;&#92;&#109;&#117;&#95;&#49;&#32;&#45;&#32;&#92;&#109;&#117;&#95;&#50;&#32;&#38;&#60;&#32;&#50;&#53;&#46;&#48;&#50; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com" /></p> <p>be careful of the order!</p> <p style="text-align: right;">▢</p> </div></div>
<div class="chapter standard" id="chapter-slug-10-6-spss-lesson-6-independent-sample-t-test" title="10.6 SPSS Lesson 6: Independent Sample t-Test"><div class="chapter-title-wrap"><h3 class="chapter-number">45</h3><h2 class="chapter-title">10.6 SPSS Lesson 6: Independent Sample t-Test</h2></div><div class="ugc chapter-ugc"> <p>To follow along, load in the <a href="#front-matter-data-sets" target="_blank" rel="noopener noreferrer">Data Set</a> titled “pHLevel.sav”:</p> <div class="wp-caption alignnone" id="attachment_1157" aria-describedby="caption-attachment-1157" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH1.png"><img class="wp-image-1157" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH1-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH1-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH1-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH1-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1157">SPSS screenshot © International Business Machines Corporation.</div></div> <p>This is the first time we have an independent variable, Species in this case, and it has two values, setosa and versicolor, that label the two populations. Notice, especially, that we do not have separate columns for each sample. There is only one dependent variable, Sepal.Length in this case. As we cover the more advanced statistical tests in later chapters (part of PSY 234) the nature and complexity of the independent variable will evolve but we will always have just one independent variable.</p> <p>Running the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test is easy, pick Analyze <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Compare Means <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Independent Samples T Test :</p> <div class="wp-caption alignnone" id="attachment_1158" aria-describedby="caption-attachment-1158" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH2.png"><img class="wp-image-1158" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH2-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH2-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH2-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH2-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH2-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH2-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH2-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH2-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH2-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1158">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Select Sepal.Length as the Test Variable (dependent variable) and Species as the group variable (independent variable) :</p> <div class="wp-caption alignnone" id="attachment_1159" aria-describedby="caption-attachment-1159" style="width: 827px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH3.png"><img class="wp-image-1159" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH3-300x169.png" alt="" width="827" height="466" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH3-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH3-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH3-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH3-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH3-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH3-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH3-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH3-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1159">SPSS screenshot © International Business Machines Corporation.</div></div> <p>You need to do some work to let SPSS know that the two levels of the “grouping variable” are 1 and 2 (as can be seen in the Variable View window). So hit Define Groups… and enter:</p> <div class="wp-caption alignnone" id="attachment_1161" aria-describedby="caption-attachment-1161" style="width: 822px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH4.png"><img class="wp-image-1161" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH4-300x169.png" alt="" width="822" height="463" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH4-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH4-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH4-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH4-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH4-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH4-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH4-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH4-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1161">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Hit Continue, then OK (the Options menu will allow you to set the confidence level percent) to get:</p> <div class="wp-caption alignnone" id="attachment_1162" aria-describedby="caption-attachment-1162" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH5.png"><img class="wp-image-1162" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH5-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH5-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH5-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH5-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH5-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH5-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH5-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH5-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH5-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1162">SPSS screenshot © International Business Machines Corporation.</div></div> <p>The first table shows descriptive statistics for the two groups independently. These numbers, excluding standard error numbers can be plugged into the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5d9748cc18b5391e12cc7e345006dec8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\rm test}" title="Rendered by QuickLaTeX.com" height="15" width="27" style="vertical-align: -3px;" /> formulae for pencil and paper calculations.</p> <p>The important table is the second table. First, what hypothesis are we testing? It is important to write it out explicitly:</p> <p style="text-align: left;"></p><p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-87f2d841855035b7456a08a01c33d40e_l3.svg" height="16" width="128" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[H_{0}: \mu_{1} - \mu_{2} = 0\]" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: left;"></p><p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">(10.6) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ae51ff29540be5a19783809489a51d67_l3.svg" height="17" width="128" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} H_{1}: \mu_{1} - \mu_{2} \neq 0 \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: left;">This, as you recall, is our test of interest. When we did this test by hand, we had to do a preliminary <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> test the see if we could assume homoscedasticity or not :</p> <p style="text-align: left;"></p><p class="ql-center-displayed-equation" style="line-height: 22px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-41c369db85df64260f50801190593415_l3.svg" height="22" width="97" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[H_{0}: &amp; \sigma_{1}^{2} = \sigma_{2}^{2}\]" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: left;"></p><p class="ql-center-displayed-equation" style="line-height: 22px;"><span class="ql-right-eqno">(10.7) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a2c4f8d1d4b968dda7fd91f073c2b04e_l3.svg" height="22" width="97" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} H_{1}: &amp; \sigma_{1}^{2} \neq \sigma_{2}^{2} \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>That preliminary test is given to us as Levine’s test in the first two columns of the second table. Levine’s test is similar to but not exactly the same as the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> test we used but it also uses <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2510519bbe1660dfdffb4195c7287343_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F" title="Rendered by QuickLaTeX.com" height="12" width="14" style="vertical-align: 0px;" /> as a test statistic. Here we see <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-687083744dd8e1014383d150be8b8b5f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="F_{\rm test} = 12.061" title="Rendered by QuickLaTeX.com" height="15" width="107" style="vertical-align: -3px;" /> with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0cfc1c857ce9b2641b611133b019f887_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p=0.001" title="Rendered by QuickLaTeX.com" height="16" width="74" style="vertical-align: -4px;" />, so we reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" /> and assume that population variances are unequal. That means we look at only the second line of the second table corresponding to “Equal variances not assumed”. SPSS computes <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> using both <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> formulae but it does not decide for you which one is correct. You need to decide that yourself on the basis of the Levine’s test.</p> <p>Again the information is fairly redundant. Looking across the second row we have <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-90d6b5e63fbfbfc9fc9a44f8be33e255_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\rm test} = -3.741" title="Rendered by QuickLaTeX.com" height="16" width="107" style="vertical-align: -3px;" /> (note that it is the same as the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> in the first row – that’s because the sample is large, making <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="z" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" /> a good approximation for both), <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c24d2e36265fc5c5e0d0a60dde4a41e5_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu = 32" title="Rendered by QuickLaTeX.com" height="12" width="51" style="vertical-align: 0px;" /> (notice the fractional <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-84f850cb7d68cf5b0b1a685b849a8674_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu" title="Rendered by QuickLaTeX.com" height="8" width="10" style="vertical-align: 0px;" /> here for the heteroscedastic case — recall Equation (10.3)), <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9e0008f5d2a41111826f803f98733332_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p = 0.001" title="Rendered by QuickLaTeX.com" height="16" width="74" style="vertical-align: -4px;" /> (note that it is for a two-tailed hypothesis, if your hypothesis is one-tailed then divide <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> by 2), <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-2f97c8ba3c3abf0ca6d359ea8a4a51f1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{x}_{1} - \overline{x}_{2} = -0.208" title="Rendered by QuickLaTeX.com" height="16" width="136" style="vertical-align: -4px;" />, and the standard error, the denominator of the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> test statistic formula (<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" /> is mean over standard error). The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" /> value is small, so we reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />, the difference of the sample means is significant. The last two columns give the 95% confidence interval as</p> <p style="text-align: left;"></p><p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">(10.8) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-0ff71566ede910892490947a86c77f65_l3.svg" height="17" width="222" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} 0.75429 &lt; \mu_{1} - \mu_{2} &lt; 1.10571 \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>Notice that zero is not in the confidence interval, consistent with rejecting <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />.</p> <p>We can also make an error bar plot. Go through Graphs <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Legacy Dialogs <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Errorbar and pick Simple and “Summaries for groups of cases” in the next menu and:</p> <div class="wp-caption alignnone" id="attachment_1165" aria-describedby="caption-attachment-1165" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH6.png"><img class="wp-image-1165" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH6-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH6-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH6-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH6-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH6-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH6-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH6-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH6-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH6-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1165">SPSS screenshot © International Business Machines Corporation.</div></div> <p>which results in:</p> <div class="wp-caption alignnone" id="attachment_1166" aria-describedby="caption-attachment-1166" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH7.png"><img class="wp-image-1166" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH7-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH7-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH7-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH7-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH7-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH7-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH7-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH7-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH7-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1166">SPSS screenshot © International Business Machines Corporation.</div></div> <p>or you could generate a boxplot comparison:</p> <div class="wp-caption alignnone" id="attachment_1167" aria-describedby="caption-attachment-1167" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH8.png"><img class="wp-image-1167" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH8-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH8-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH8-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH8-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH8-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH8-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH8-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH8-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10pH8-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1167">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Finally, we throw in a couple of effect size (descriptive) measures. One is the standardized effect size defined as:</p> <p style="text-align: left;"></p><p class="ql-center-displayed-equation" style="line-height: 45px;"><span class="ql-right-eqno">(10.9) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-34ff5c90609485fa3ed45daf4017b2d6_l3.svg" height="45" width="203" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} d = t \sqrt{\frac{n_{1} + n_{2}}{n_{1} n_{2}}} = \frac{\overline{x}_{1}-\overline{x}_{2}}{s_{p}} \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>where <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-282552639aa5d2dfe6e4c360359594b3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_{p}" title="Rendered by QuickLaTeX.com" height="14" width="15" style="vertical-align: -6px;" /> is the pooled variance as given by Equation (10.4). Another measure is the strength of association</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">(10.10) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1bf4e91a2548dc5574cd87df520e4f94_l3.svg" height="43" width="182" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} \eta^{2} = \frac{t^{2}}{t^{2} + (n_{1}+n_{2} -2)} \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>which measures a kind of “correlation'” between <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1ee89d257836594b43959a4b9ba70cc6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{1}" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1b8f7c11a53579abfdd4b94207dfc798_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="x_{2}" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" />. The larger <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />, the closer <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-740ddff33d9dfc3e9ac44471aa8095fc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\eta^{2}" title="Rendered by QuickLaTeX.com" height="19" width="16" style="vertical-align: -4px;" /> is to 1.</p> </div></div>
<div class="chapter standard" id="chapter-slug-10-7-rstudio-lesson-6-independent-sample-t-test" title="10.7 RStudio Lesson 6: Independent Sample t-Test"><div class="chapter-title-wrap"><h3 class="chapter-number">46</h3><h2 class="chapter-title">10.7 RStudio Lesson 6: Independent Sample t-Test</h2></div><div class="ugc chapter-ugc"><p>[Coming soon]</p> </div></div>
<div class="chapter standard" id="chapter-slug-10-8-paired-t-test" title="10.8 Paired t-Test"><div class="chapter-title-wrap"><h3 class="chapter-number">47</h3><h2 class="chapter-title">10.8 Paired t-Test</h2></div><div class="ugc chapter-ugc"><p>Here two measurements <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1ee89d257836594b43959a4b9ba70cc6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1b8f7c11a53579abfdd4b94207dfc798_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /> are taken from every subject. We could say that we measure a vector <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b789f758edcd02ed15886f3b83123792_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#32;&#61;&#32;&#91;&#120;&#95;&#123;&#49;&#125;&#92;&#59;&#32;&#120;&#95;&#123;&#50;&#125;&#93;&#94;&#123;&#84;&#125;" title="Rendered by QuickLaTeX.com" height="20" width="94" style="vertical-align: -5px;" /> as the independent variable for every subject instead of just a number as the independent variable<span class="footnote">An introduction to vectors will be given in Chapter 17.</span>. This is a <em>within subject</em> design. Within subject designs tend to be more statistically powerful than independent or between subjects designs that have two completely different bunches of people for each variable. The extra power comes because we take the difference <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-28e7b6c8ec060d051edb1f1546367de2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#68;&#32;&#61;&#32;&#120;&#95;&#123;&#49;&#125;&#32;&#45;&#32;&#120;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="95" style="vertical-align: -4px;" /> for every subject. So any overall differences, or variances, in <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1ee89d257836594b43959a4b9ba70cc6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: -4px;" /> or <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1b8f7c11a53579abfdd4b94207dfc798_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /> due to individuals has been removed from the data.</p> <p>The paired <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test is a <em>univariate test</em>. The difference between univariate and multivariate statistics is the the independent variables are numbers for univariate statistics and vectors for multivariate statistics. For the paired <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test, the vector is converted to a number by taking a difference. To convert vector data to difference data, make a table :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 50.4243%; height: 135px;"><tbody><tr><td class="shaded" style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1ee89d257836594b43959a4b9ba70cc6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: -4px;" /></td> <td class="shaded" style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1b8f7c11a53579abfdd4b94207dfc798_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /></td> <td class="shaded" style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ad41a6f1d40208018c62de8847e4ac0a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#68;&#61;&#120;&#95;&#123;&#49;&#125;&#45;&#120;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="95" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 33.3333%; text-align: center;">1</td> <td style="width: 33.3333%; text-align: center;">2</td> <td style="width: 33.3333%; text-align: center;">-1</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">2</td> <td style="width: 33.3333%; text-align: center;">3</td> <td style="width: 33.3333%; text-align: center;">-1</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">3</td> <td style="width: 33.3333%; text-align: center;">5</td> <td style="width: 33.3333%; text-align: center;">-2</td> </tr> <tr><td style="width: 33.3333%; text-align: center;">1</td> <td style="width: 33.3333%; text-align: center;">-2</td> <td style="width: 33.3333%; text-align: center;">3</td> </tr> </tbody> </table> <p>Note here that the differences in individuals are gone after we take differences <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4b9ef1bbd23fd1b198de883813285620_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#68;" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: 0px;" />.</p> <p>The data from the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4b9ef1bbd23fd1b198de883813285620_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#68;" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: 0px;" /> column are what you will work with. Compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f075b1c5c32d7cac0bf79720af137ac8_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#98;&#97;&#114;&#123;&#68;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="15" style="vertical-align: 0px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4bc4b57b44f768f20f6e4f73d63a571b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#95;&#123;&#68;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="19" style="vertical-align: -3px;" /> the mean and sample standard deviation of these data. With <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4b9ef1bbd23fd1b198de883813285620_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#68;" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: 0px;" /> the procedure becomes a single sample <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test of <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4b9ef1bbd23fd1b198de883813285620_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#68;" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: 0px;" /> against zero. Specifically we can test :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 86.7879%; height: 60px;"><tbody><tr><td class="shaded" style="width: 33.3333%; text-align: center;">Two-tailed</td> <td class="shaded" style="width: 33.3333%; text-align: center;">Left-tailed</td> <td class="shaded" style="width: 33.3333%; text-align: center;">Right-tailed</td> </tr> <tr><td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-df3bff9442bbd0b9c14668b871ea4546_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#48;&#58;&#92;&#109;&#117;&#95;&#68;&#61;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="93" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-307d832b0e7aecdebc02c15f65f48d60_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#48;&#58;&#92;&#109;&#117;&#95;&#68;&#92;&#103;&#101;&#113;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="93" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f5202fab472f1a5d195bfbab53302a9c_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#48;&#58;&#92;&#109;&#117;&#95;&#68;&#92;&#108;&#101;&#113;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="93" style="vertical-align: -4px;" /></td> </tr> <tr><td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-e065fdc2150a6cca14201923e744104d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#49;&#58;&#92;&#109;&#117;&#95;&#68;&#92;&#110;&#101;&#113;&#48;" title="Rendered by QuickLaTeX.com" height="17" width="93" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f0928c5e2a7dc39c6db57842f2da6442_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#49;&#58;&#92;&#109;&#117;&#95;&#68;&#60;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="93" style="vertical-align: -4px;" /></td> <td style="width: 33.3333%; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-9900a2fbfa91b291f6d10dda64d4db85_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#49;&#58;&#92;&#109;&#117;&#95;&#68;&#62;&#48;" title="Rendered by QuickLaTeX.com" height="16" width="93" style="vertical-align: -4px;" /></td> </tr> </tbody> </table> <p>The test statistic is</p> <p class="ql-center-displayed-equation" style="line-height: 44px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3869d3d46cc5de88b0eadcb4c3cd195c_l3.svg" height="44" width="124" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#32;&#116;&#95;&#123;&#92;&#114;&#109;&#32;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#68;&#125;&#125;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#115;&#95;&#123;&#68;&#125;&#47;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#125;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>with <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b170fcb5a47e3b2f5391ebc8e16d02db_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#32;&#110;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="13" width="74" style="vertical-align: -1px;" /> (for finding <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ebc79a7f2977bb900f736022890fbdca_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;&#95;&#123;&#92;&#114;&#109;&#32;&#99;&#114;&#105;&#116;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="26" style="vertical-align: -4px;" />).</p> <p><strong>Example 10.7</strong> : A Physical Education director claims that a vitamin will increase a weight lifter&#8217;s strength. Eight athletes are selected and tested on how much they can bench press. They are each tested once before taking the vitamin and again after taking the vitamin for two weeks. We want to test the director&#8217;s claim at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1e7a70605f68e89ed47b3cb961fcd722_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#61;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" /></p> <p>The data are :</p> <table class="grid aligncenter" style="border-collapse: collapse; width: 60.8485%; height: 249px;"><tbody><tr style="height: 14px;"><td class="shaded" style="width: 25%; height: 14px; text-align: center;">Athlete</td> <td class="shaded" style="width: 25%; height: 14px; text-align: center;">Before(<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-01a7b7b5dca66cb33a1207e1f39c1140_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#49;" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: -4px;" />)</td> <td class="shaded" style="width: 25%; height: 14px; text-align: center;">After(<img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f1cd6be340b4fce14489cf5b565a169e_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" />)</td> <td class="shaded" style="width: 25%; height: 14px; text-align: center;"><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f42ea7a7692406fcfbe8781f703def14_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#68;&#61;&#120;&#95;&#49;&#45;&#120;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="16" width="95" style="vertical-align: -4px;" /></td> </tr> <tr style="height: 14px;"><td style="width: 25%; height: 14px; text-align: center;">1</td> <td style="width: 25%; height: 14px; text-align: center;">210</td> <td style="width: 25%; height: 14px; text-align: center;">219</td> <td style="width: 25%; height: 14px; text-align: center;">-9</td> </tr> <tr style="height: 14px;"><td style="width: 25%; height: 14px; text-align: center;">2</td> <td style="width: 25%; height: 14px; text-align: center;">230</td> <td style="width: 25%; height: 14px; text-align: center;">236</td> <td style="width: 25%; height: 14px; text-align: center;">-6</td> </tr> <tr style="height: 14px;"><td style="width: 25%; height: 14px; text-align: center;">3</td> <td style="width: 25%; height: 14px; text-align: center;">182</td> <td style="width: 25%; height: 14px; text-align: center;">179</td> <td style="width: 25%; height: 14px; text-align: center;">3</td> </tr> <tr style="height: 14px;"><td style="width: 25%; height: 14px; text-align: center;">4</td> <td style="width: 25%; height: 14px; text-align: center;">205</td> <td style="width: 25%; height: 14px; text-align: center;">204</td> <td style="width: 25%; height: 14px; text-align: center;">1</td> </tr> <tr style="height: 14px;"><td style="width: 25%; height: 14px; text-align: center;">5</td> <td style="width: 25%; height: 14px; text-align: center;">262</td> <td style="width: 25%; height: 14px; text-align: center;">270</td> <td style="width: 25%; height: 14px; text-align: center;">-8</td> </tr> <tr style="height: 14px;"><td style="width: 25%; height: 14px; text-align: center;">6</td> <td style="width: 25%; height: 14px; text-align: center;">253</td> <td style="width: 25%; height: 14px; text-align: center;">250</td> <td style="width: 25%; height: 14px; text-align: center;">3</td> </tr> <tr style="height: 14px;"><td style="width: 25%; height: 14px; text-align: center;">7</td> <td style="width: 25%; height: 14px; text-align: center;">219</td> <td style="width: 25%; height: 14px; text-align: center;">222</td> <td style="width: 25%; height: 14px; text-align: center;">-3</td> </tr> <tr style="height: 14px;"><td style="width: 25%; height: 14px; text-align: center;">8</td> <td style="width: 25%; height: 14px; text-align: center;">216</td> <td style="width: 25%; height: 14px; text-align: center;">216</td> <td style="width: 25%; height: 14px; text-align: center;">0</td> </tr> </tbody> </table> <p>Here we have listed the differences which is actually part of step 0 of the solution. The <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1ee89d257836594b43959a4b9ba70cc6_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="12" width="16" style="vertical-align: -4px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1b8f7c11a53579abfdd4b94207dfc798_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -3px;" /> columns are what you enter into SPSS as your independent variables. With SPSS you never see the differences.</p> <p><em>Solution</em> :</p> <p>0. Data reduction.</p> <p>Compute <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-5460306b8d3b397b71b2585544548063_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#68;&#125;&#61;&#45;&#50;&#46;&#51;&#55;&#53;" title="Rendered by QuickLaTeX.com" height="15" width="93" style="vertical-align: 0px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4a4fee12165e3a6cedaab4213ad69f1_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#115;&#95;&#68;&#61;&#52;&#46;&#56;&#52;" title="Rendered by QuickLaTeX.com" height="15" width="76" style="vertical-align: -3px;" /> by entering the difference data into your calculator.</p> <p>1. Hypothesis.</p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-138ac1a8d084e8906361a7bcb9591c1c_l3.svg" height="16" width="93" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#72;&#95;&#48;&#58;&#32;&#92;&#109;&#117;&#95;&#68;&#92;&#103;&#101;&#113;&#48;&#32;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-6b36a5b0b798154cda70bf4d6fd12039_l3.svg" height="16" width="93" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#72;&#95;&#49;&#58;&#92;&#109;&#117;&#95;&#68;&#60;&#48;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>Note that a negative difference, based on <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-706c94a51afe1fb9b8a84428ed785fe5_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#120;&#95;&#123;&#49;&#125;&#32;&#45;&#32;&#120;&#95;&#123;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="12" width="56" style="vertical-align: -4px;" /> (always consistently give population 1 priority if you want to stay out of trouble without thinking), indicates an increase in strength. It is important to interpret positive or negative differences correctly by thinking about what they mean.</p> <p>2. Critical statistic.</p> <p>Using the <strong><em>t</em> Distribution Table</strong> with the column for one-tailed tests, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1e7a70605f68e89ed47b3cb961fcd722_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#61;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />, and row <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a2eed0b8c2e2d2bb5ae7347757d4e8f2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#110;&#45;&#49;&#61;&#56;&#45;&#49;&#61;&#55;" title="Rendered by QuickLaTeX.com" height="14" width="170" style="vertical-align: -1px;" />, find</p> <p class="ql-center-displayed-equation" style="line-height: 14px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-dc060ace049f0a2c534f2afeb801680e_l3.svg" height="14" width="111" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#116;&#123;&#92;&#114;&#109;&#32;&#99;&#114;&#105;&#116;&#125;&#32;&#61;&#32;&#45;&#49;&#46;&#56;&#57;&#53;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>(We added the negative sign because this is a left-tailed test.)</p> <p>3. Test statistic.</p> <p class="ql-center-displayed-equation" style="line-height: 59px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-f56097f2c8bbbc88ba910425415af73c_l3.svg" height="59" width="228" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#116;&#95;&#123;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#98;&#97;&#114;&#123;&#68;&#125;&#45;&#92;&#109;&#117;&#95;&#68;&#125;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#95;&#68;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#45;&#50;&#46;&#51;&#55;&#53;&#45;&#48;&#125;&#123;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#52;&#46;&#56;&#52;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#56;&#125;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#125;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p class="ql-center-displayed-equation" style="line-height: 14px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-24a0664e96343f8e3272677d1ba53f0e_l3.svg" height="14" width="109" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#116;&#95;&#123;&#116;&#101;&#115;&#116;&#125;&#32;&#61;&#32;&#45;&#49;&#46;&#51;&#56;&#56;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>To estimate the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#112;" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value, from the <strong><em>t</em> Distribution Table</strong>, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-dcb33c398dfc7c28fc1bc32c4bfd2b0f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#55;" title="Rendered by QuickLaTeX.com" height="13" width="43" style="vertical-align: 0px;" /> line, find <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-66dd530fd3ff68e540ef83e8a7396926_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#48;&#46;&#49;&#48;&#60;&#112;&#60;&#48;&#46;&#50;&#53;" title="Rendered by QuickLaTeX.com" height="17" width="119" style="vertical-align: -4px;" />.</p> <p>4. Decision.</p> <div class="wp-nocaption wp-image-2104 aligncenter"><img class="wp-image-2104 aligncenter" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig89png-300x191.jpg" alt="" width="448" height="285" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig89png-300x191.jpg 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig89png-65x41.jpg 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig89png-225x143.jpg 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig89png-350x222.jpg 350w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/fig89png.jpg 600w" /></div> <p>Do not reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#72;&#95;&#123;&#48;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />. <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-c2c7cd82d8db01b9844ef6297511539b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#40;&#48;&#46;&#49;&#48;&#60;&#112;&#60;&#48;&#46;&#50;&#53;&#41;&#32;&#62;&#32;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#48;&#46;&#48;&#53;&#41;" title="Rendered by QuickLaTeX.com" height="18" width="236" style="vertical-align: -4px;" />.</p> <p>5. Interpretation.</p> <p>Under a paired <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test, at <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-1e7a70605f68e89ed47b3cb961fcd722_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#97;&#108;&#112;&#104;&#97;&#61;&#48;&#46;&#48;&#53;" title="Rendered by QuickLaTeX.com" height="13" width="66" style="vertical-align: 0px;" />, the is not enough evidence to conclude that the vitamin increases strength.</p> <p style="text-align: right;">▢</p> </div></div>
<div class="chapter standard" id="chapter-slug-10-9-confidence-intervals-for-paired-t-tests" title="10.9 Confidence Intervals for Paired t-Tests"><div class="chapter-title-wrap"><h3 class="chapter-number">48</h3><h2 class="chapter-title">10.9 Confidence Intervals for Paired t-Tests</h2></div><div class="ugc chapter-ugc"><p>The usual form applies :</p> <p class="ql-center-displayed-equation" style="line-height: 20px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-d88c844e1a5dd3fd3832b905a619ace4_l3.svg" height="20" width="172" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#68;&#125;&#32;&#45;&#32;&#69;&#32;&#60;&#32;&#92;&#109;&#117;&#95;&#123;&#68;&#125;&#32;&#60;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#68;&#125;&#32;&#43;&#32;&#69;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>where now</p> <p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-063f88aa19b3790204776115cbd12c14_l3.svg" height="43" width="108" class="ql-img-displayed-equation quicklatex-auto-format" alt="&#92;&#91;&#69;&#32;&#61;&#32;&#116;&#95;&#123;&#92;&#99;&#97;&#108;&#123;&#67;&#125;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#95;&#68;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#92;&#93;" title="Rendered by QuickLaTeX.com" /></p> <p>and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-698ee0eb93f34d1200260a73988d10cc_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#116;&#95;&#123;&#92;&#99;&#97;&#108;&#123;&#67;&#125;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: -3px;" /> can found from the <strong><em>t</em> Distribution Table</strong> in the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-cf2e98dd705be1bb844fe070d704bdcf_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#110;&#117;&#32;&#61;&#32;&#110;&#32;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="13" width="74" style="vertical-align: -1px;" /> line using the &#8220;confidence intervals&#8221; heading.</p> </div></div>
<div class="chapter standard" id="chapter-slug-10-10-spss-lesson-7-paired-sample-t-test" title="10.10 SPSS Lesson 7: Paired Sample t-Test"><div class="chapter-title-wrap"><h3 class="chapter-number">49</h3><h2 class="chapter-title">10.10 SPSS Lesson 7: Paired Sample t-Test</h2></div><div class="ugc chapter-ugc"> <p>To follow along, load in the <a href="#front-matter-data-sets" target="_blank" rel="noopener noreferrer">Data Set</a> “Methadone.sav”:</p> <div class="wp-caption alignnone" id="attachment_1176" aria-describedby="caption-attachment-1176" style="width: 825px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth1.png"><img class="wp-image-1176" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth1-300x169.png" alt="" width="825" height="465" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth1-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth1-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth1-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth1-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth1-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth1-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth1-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth1-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1176">SPSS screenshot © International Business Machines Corporation.</div></div> <p>As set up, the file has two dependent variables. This “within subjects” dataset is fundamentally multivariate. When we did the paired <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test by hand we converted the multivariate data to univariate data by taking differences. SPSS will do the differences behind the scene and you won’t actually see them. Run the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test by picking Analyze <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Compare Means <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-bd19711dcae8be5a4a04c7dc4523b48b_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\rightarrow" title="Rendered by QuickLaTeX.com" height="11" width="17" style="vertical-align: -1px;" /> Paired -Samples T-Test:</p> <div class="wp-caption alignnone" id="attachment_1177" aria-describedby="caption-attachment-1177" style="width: 824px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth2.png"><img class="wp-image-1177" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth2-300x169.png" alt="" width="824" height="464" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth2-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth2-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth2-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth2-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth2-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth2-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth2-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth2-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1177">SPSS screenshot © International Business Machines Corporation.</div></div> <p>Move the two variables into Pair 1 and hit OK (Options again allows you to specify a confidence intervals percentage):</p> <div class="wp-caption alignnone" id="attachment_1178" aria-describedby="caption-attachment-1178" style="width: 827px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth3.png"><img class="wp-image-1178" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth3-300x169.png" alt="" width="827" height="466" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth3-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth3-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth3-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth3-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth3-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth3-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth3-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth3-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1178">SPSS screenshot © International Business Machines Corporation.</div></div> <p>The output is:</p> <div class="wp-caption alignnone" id="attachment_1179" aria-describedby="caption-attachment-1179" style="width: 827px"><a href="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth4.png"><img class="wp-image-1179" src="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth4-300x169.png" alt="" width="827" height="466" srcset="https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth4-300x169.png 300w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth4-1024x576.png 1024w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth4-768x432.png 768w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth4-1536x864.png 1536w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth4-2048x1152.png 2048w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth4-65x37.png 65w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth4-225x127.png 225w, https://openpress.usask.ca/app/uploads/sites/76/2020/01/Chp10Meth4-350x197.png 350w" /></a><div class="wp-caption-text" id="caption-attachment-1179">SPSS screenshot © International Business Machines Corporation.</div></div> <p>The first two tables are descriptive statistics. The last table gives the stuff we want: <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ac51c9203dd541346c595153942400a3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\overline{D} = 0.9615" title="Rendered by QuickLaTeX.com" height="16" width="88" style="vertical-align: -1px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-379abd845c982be4cede3bdd2d1642c3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="s_{D} = 10.7067" title="Rendered by QuickLaTeX.com" height="16" width="103" style="vertical-align: -3px;" />, the confidence interval</p> <p style="text-align: left;"></p><p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">(10.11) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-211364801a21070ab9d002b3fe790b75_l3.svg" height="17" width="186" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} -5.5084&lt; \mu_{D} &lt; 7.4315, \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-8e43e4398f3d228cadbfdaaf9ca0dd40_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t_{\rm test} = 0.324" title="Rendered by QuickLaTeX.com" height="15" width="94" style="vertical-align: -3px;" />, <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-7c7ecbf6b0cb913454f9a7216ddcc57a_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="\nu = 12" title="Rendered by QuickLaTeX.com" height="13" width="51" style="vertical-align: -1px;" /> and <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ecbeebafbe7bd1b143fb97e32f97045d_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p = 0.002" title="Rendered by QuickLaTeX.com" height="16" width="74" style="vertical-align: -4px;" /> for the two-tailed hypotheses pair</p> <p style="text-align: left;"></p><p class="ql-center-displayed-equation" style="line-height: 16px;"><span class="ql-right-eqno">&nbsp; </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b7b1c025e2b9d8a57510aa86672b2bc7_l3.svg" height="16" width="93" class="ql-img-displayed-equation quicklatex-auto-format" alt="\[H_{0}: &amp; \mu_{D} = 0 \]" title="Rendered by QuickLaTeX.com" /></p> <p style="text-align: left;"></p><p class="ql-center-displayed-equation" style="line-height: 17px;"><span class="ql-right-eqno">(10.12) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-a805fc243a2e907c88d3019943234940_l3.svg" height="17" width="97" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} H_{1}: &amp; \mu_{D} \neq 0. \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>The very low <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-3bf85f1087e9fbed3a319341134ac1a2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="p" title="Rendered by QuickLaTeX.com" height="12" width="10" style="vertical-align: -4px;" />-value (0 in this case) and the absence of 0 in the confidence interval guide us to reject <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-ea12efd2b071b3f370ebab619138dac3_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="H_{0}" title="Rendered by QuickLaTeX.com" height="15" width="22" style="vertical-align: -3px;" />, the differences are significantly different from zero.</p> <p>The standardized effect size and strength of association for the paired <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b4e3cbf5d4c5c6d9b702dd139f14c147_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="t" title="Rendered by QuickLaTeX.com" height="12" width="6" style="vertical-align: 0px;" />-test are</p> <p style="text-align: left;"></p><p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno">(10.13) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-923fe27c82e9556d7702a6e2755a3a46_l3.svg" height="43" width="108" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} d = \frac{t}{\sqrt{n}} = \frac{\overline{D}}{s_{D}} \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>and</p> <p style="text-align: left;"></p><p class="ql-center-displayed-equation" style="line-height: 41px;"><span class="ql-right-eqno">(10.14) </span> <span class="ql-left-eqno">&nbsp; </span><img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-b846c06b9bc0a7578b9ce34b16a4d508_l3.svg" height="41" width="120" class="ql-img-displayed-equation quicklatex-auto-format" alt="\begin{equation*} \eta^{2} = \frac{t^{2}}{t^{2}+n-1} \end{equation*}" title="Rendered by QuickLaTeX.com" /></p> <p>respectively.</p> </div></div>
<div class="chapter standard" id="chapter-slug-10-11-rstudio-lesson-7-paired-sample-t-test" title="10.11 RStudio Lesson 7: Paired Sample t-Test"><div class="chapter-title-wrap"><h3 class="chapter-number">50</h3><h2 class="chapter-title">10.11 RStudio Lesson 7: Paired Sample t-Test</h2></div><div class="ugc chapter-ugc"><p>[Coming soon]</p> </div></div>
<div class="part " id="part-slug-11-comparing-proportions"><div class="part-title-wrap"><h3 class="part-number">XI</h3><h1 class="part-title">11. Comparing Proportions</h1></div><p>In this Chapter we will use a <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4cbe148bd9da75d2e668ddd0223dbf9f_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#92;&#99;&#104;&#105;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="18" style="vertical-align: -4px;" /> test to compare proportions and extend what we do here with the <img src="https://openpress.usask.ca/app/uploads/quicklatex/quicklatex.com-4586e340cb83d5b642972e97a288fec2_l3.svg" class="ql-img-inline-formula quicklatex-auto-format" alt="&#122;" title="Rendered by QuickLaTeX.com" height="8" width="9" style="vertical-align: 0px;" />-distribution.</p><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-11-1-z-test-for-comparing-proportions" title="11.1 z-Test for Comparing Proportions"><div class="chapter-title-wrap"><h3 class="chapter-number">51</h3><h2 class="chapter-title">11.1 z-Test for Comparing Proportions</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-11-2-confidence-interval-for-the-difference-between-two-proportions" title="11.2 Confidence Interval for the Difference between Two Proportions"><div class="chapter-title-wrap"><h3 class="chapter-number">52</h3><h2 class="chapter-title">11.2 Confidence Interval for the Difference between Two Proportions</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="part " id="part-slug-12-anova"><div class="part-title-wrap"><h3 class="part-number">XII</h3><h1 class="part-title">12. ANOVA</h1></div><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-12-1-one-way-anova" title="12.1 One-way ANOVA"><div class="chapter-title-wrap"><h3 class="chapter-number">53</h3><h2 class="chapter-title">12.1 One-way ANOVA</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-12-2-post-hoc-comparisons" title="12.2 Post hoc Comparisons"><div class="chapter-title-wrap"><h3 class="chapter-number">54</h3><h2 class="chapter-title">12.2 Post hoc Comparisons</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-12-3-spss-lesson-9-one-way-anova" title="12.3 SPSS Lesson 9: One-way ANOVA"><div class="chapter-title-wrap"><h3 class="chapter-number">55</h3><h2 class="chapter-title">12.3 SPSS Lesson 9: One-way ANOVA</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-12-4-r-lesson-9-one-way-anova" title="12.4 R Lesson 9: One-way ANOVA"><div class="chapter-title-wrap"><h3 class="chapter-number">56</h3><h2 class="chapter-title">12.4 R Lesson 9: One-way ANOVA</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-12-5-two-way-anova" title="12.5 Two-way ANOVA"><div class="chapter-title-wrap"><h3 class="chapter-number">57</h3><h2 class="chapter-title">12.5 Two-way ANOVA</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-12-6-spss-lesson-9-two-way-anova" title="12.6 SPSS Lesson 9: Two-way ANOVA"><div class="chapter-title-wrap"><h3 class="chapter-number">58</h3><h2 class="chapter-title">12.6 SPSS Lesson 9: Two-way ANOVA</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-12-7-r-lesson-9-two-way-anova" title="12.7 R Lesson 9: Two-way ANOVA"><div class="chapter-title-wrap"><h3 class="chapter-number">59</h3><h2 class="chapter-title">12.7 R Lesson 9: Two-way ANOVA</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-12-8-higher-factorial-anova" title="12.8 Higher Factorial ANOVA"><div class="chapter-title-wrap"><h3 class="chapter-number">60</h3><h2 class="chapter-title">12.8 Higher Factorial ANOVA</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-12-9-between-and-within-factors" title="12.9 Between and Within Factors"><div class="chapter-title-wrap"><h3 class="chapter-number">61</h3><h2 class="chapter-title">12.9 Between and Within Factors</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-12-10-contrasts" title="12.10 *Contrasts"><div class="chapter-title-wrap"><h3 class="chapter-number">62</h3><h2 class="chapter-title">12.10 *Contrasts</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="part " id="part-slug-13-power"><div class="part-title-wrap"><h3 class="part-number">XIII</h3><h1 class="part-title">13. Power</h1></div><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-13-1-power" title="13.1 Power"><div class="chapter-title-wrap"><h3 class="chapter-number">63</h3><h2 class="chapter-title">13.1 Power</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="part " id="part-slug-14-correlation-and-regression"><div class="part-title-wrap"><h3 class="part-number">XIV</h3><h1 class="part-title">14. Correlation and Regression</h1></div><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-14-1-scatter-plots" title="14.1 Scatter Plots"><div class="chapter-title-wrap"><h3 class="chapter-number">64</h3><h2 class="chapter-title">14.1 Scatter Plots</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-14-2-correlation" title="14.2 Correlation"><div class="chapter-title-wrap"><h3 class="chapter-number">65</h3><h2 class="chapter-title">14.2 Correlation</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-14-3-spss-lesson-10-scatterplots-and-correlation" title="14.3 SPSS Lesson 10: Scatterplots and Correlation"><div class="chapter-title-wrap"><h3 class="chapter-number">66</h3><h2 class="chapter-title">14.3 SPSS Lesson 10: Scatterplots and Correlation</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-14-4-r-lesson-10-scatterplots-and-correlation" title="14.4 R Lesson 10: Scatterplots and Correlation"><div class="chapter-title-wrap"><h3 class="chapter-number">67</h3><h2 class="chapter-title">14.4 R Lesson 10: Scatterplots and Correlation</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-14-5-linear-regression" title="14.5 Linear Regression"><div class="chapter-title-wrap"><h3 class="chapter-number">68</h3><h2 class="chapter-title">14.5 Linear Regression</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-14-6-r-squared-and-the-standard-error-of-the-estimate-of-y-prime" title="14.6 r-squared and the Standard Error of the Estimate of y-prime"><div class="chapter-title-wrap"><h3 class="chapter-number">69</h3><h2 class="chapter-title">14.6 r-squared and the Standard Error of the Estimate of y-prime</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-14-7-confidence-interval-for-y-prime-at-a-given-x" title="14.7 Confidence Interval for y-prime at a Given x"><div class="chapter-title-wrap"><h3 class="chapter-number">70</h3><h2 class="chapter-title">14.7 Confidence Interval for y-prime at a Given x</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-14-8-spss-lesson-11-linear-regression" title="14.8 SPSS Lesson 11: Linear Regression"><div class="chapter-title-wrap"><h3 class="chapter-number">71</h3><h2 class="chapter-title">14.8 SPSS Lesson 11: Linear Regression</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-14-9-r-lesson-11-linear-regression" title="14.9 R Lesson 11: Linear Regression"><div class="chapter-title-wrap"><h3 class="chapter-number">72</h3><h2 class="chapter-title">14.9 R Lesson 11: Linear Regression</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-14-10-multiple-regression" title="14.10 Multiple Regression"><div class="chapter-title-wrap"><h3 class="chapter-number">73</h3><h2 class="chapter-title">14.10 Multiple Regression</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-14-11-spss-lesson-12-multiple-regression" title="14.11 SPSS Lesson 12: Multiple Regression"><div class="chapter-title-wrap"><h3 class="chapter-number">74</h3><h2 class="chapter-title">14.11 SPSS Lesson 12: Multiple Regression</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-14-12-r-lesson-12-multiple-regression" title="14.12 R Lesson 12: Multiple Regression"><div class="chapter-title-wrap"><h3 class="chapter-number">75</h3><h2 class="chapter-title">14.12 R Lesson 12: Multiple Regression</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="part " id="part-slug-15-chi-squared-goodness-of-fit-and-contingency-tables"><div class="part-title-wrap"><h3 class="part-number">XV</h3><h1 class="part-title">15. Chi Squared: Goodness of Fit and Contingency Tables</h1></div><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-15-1-goodness-of-fit" title="15.1 Goodness of Fit"><div class="chapter-title-wrap"><h3 class="chapter-number">76</h3><h2 class="chapter-title">15.1 Goodness of Fit</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-15-2-contingency-tables" title="15.2 Contingency Tables"><div class="chapter-title-wrap"><h3 class="chapter-number">77</h3><h2 class="chapter-title">15.2 Contingency Tables</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-15-3-spss-lesson-13-proportions-goodness-of-fit-and-contingency-tables" title="15.3 SPSS Lesson 13: Proportions, Goodness of Fit, and Contingency Tables"><div class="chapter-title-wrap"><h3 class="chapter-number">78</h3><h2 class="chapter-title">15.3 SPSS Lesson 13: Proportions, Goodness of Fit, and Contingency Tables</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-15-4-r-lesson-13-proportions-goodness-of-fit-and-contingency-tables" title="15.4 R Lesson 13: Proportions, Goodness of Fit, and Contingency Tables"><div class="chapter-title-wrap"><h3 class="chapter-number">79</h3><h2 class="chapter-title">15.4 R Lesson 13: Proportions, Goodness of Fit, and Contingency Tables</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="part " id="part-slug-16-non-parametric-tests"><div class="part-title-wrap"><h3 class="part-number">XVI</h3><h1 class="part-title">16. Non-parametric Tests</h1></div><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-16-1-how-to-rank-data" title="16.1 How to Rank Data"><div class="chapter-title-wrap"><h3 class="chapter-number">80</h3><h2 class="chapter-title">16.1 How to Rank Data</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-16-2-median-sign-test" title="16.2 Median Sign Test"><div class="chapter-title-wrap"><h3 class="chapter-number">81</h3><h2 class="chapter-title">16.2 Median Sign Test</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-16-3-paired-sample-sign-test" title="16.3 Paired Sample Sign Test"><div class="chapter-title-wrap"><h3 class="chapter-number">82</h3><h2 class="chapter-title">16.3 Paired Sample Sign Test</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-16-4-two-sample-wilcoxon-rank-sum-test-mann-whitney-u-test" title="16.4 Two Sample Wilcoxon Rank Sum Test (Mann-Whitney U Test)"><div class="chapter-title-wrap"><h3 class="chapter-number">83</h3><h2 class="chapter-title">16.4 Two Sample Wilcoxon Rank Sum Test (Mann-Whitney U Test)</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-16-5-paired-wilcoxon-signed-rank-test" title="16.5 Paired Wilcoxon Signed Rank Test"><div class="chapter-title-wrap"><h3 class="chapter-number">84</h3><h2 class="chapter-title">16.5 Paired Wilcoxon Signed Rank Test</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-16-6-kruskal-wallis-test-h-test" title="16.6 Kruskal-Wallis Test (H Test)"><div class="chapter-title-wrap"><h3 class="chapter-number">85</h3><h2 class="chapter-title">16.6 Kruskal-Wallis Test (H Test)</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-16-7-spearman-rank-correlation-coefficient" title="16.7 Spearman Rank Correlation Coefficient"><div class="chapter-title-wrap"><h3 class="chapter-number">86</h3><h2 class="chapter-title">16.7 Spearman Rank Correlation Coefficient</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-16-8-spss-lesson-14-non-parametric-tests" title="16.8 SPSS Lesson 14: Non-parametric Tests"><div class="chapter-title-wrap"><h3 class="chapter-number">87</h3><h2 class="chapter-title">16.8 SPSS Lesson 14: Non-parametric Tests</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-16-9-r-lesson-14-non-parametric-tests" title="16.9 R Lesson 14: Non-parametric Tests"><div class="chapter-title-wrap"><h3 class="chapter-number">88</h3><h2 class="chapter-title">16.9 R Lesson 14: Non-parametric Tests</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-16-10-runs-test" title="16.10 Runs Test"><div class="chapter-title-wrap"><h3 class="chapter-number">89</h3><h2 class="chapter-title">16.10 Runs Test</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="part " id="part-slug-17-overview-of-the-general-linear-model"><div class="part-title-wrap"><h3 class="part-number">XVII</h3><h1 class="part-title">17. Overview of the General Linear Model</h1></div><div class="ugc part-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-17-1-linear-algebra-basics" title="17.1 Linear Algebra Basics"><div class="chapter-title-wrap"><h3 class="chapter-number">90</h3><h2 class="chapter-title">17.1 Linear Algebra Basics</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="chapter standard" id="chapter-slug-17-2-the-general-linear-model-glm-for-univariate-statistics" title="17.2 The General Linear Model (GLM) for Univariate Statistics"><div class="chapter-title-wrap"><h3 class="chapter-number">91</h3><h2 class="chapter-title">17.2 The General Linear Model (GLM) for Univariate Statistics</h2></div><div class="ugc chapter-ugc"></div></div>
<div class="back-matter miscellaneous" id="back-matter-appendix-tables" title="Appendix: Tables"><div class="back-matter-title-wrap"><h3 class="back-matter-number">1</h3><h1 class="back-matter-title">Appendix: Tables</h1></div><div class="ugc back-matter-ugc"> <ul><li>Binomial Distribution Table (<a href="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Binomial-Distribution-Table.pdf" target="_blank" rel="noopener noreferrer">PDF</a>) (<a href="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Binomial-Distribution-Table.docx" target="_blank" rel="noopener noreferrer">Word</a>)</li> <li>Standard Normal Distribution Table (<a href="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Standard-Normal-Distribution-Table.pdf" target="_blank" rel="noopener noreferrer">PDF</a>) (<a href="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Standard-Normal-Distribution-Table.docx" target="_blank" rel="noopener noreferrer">Word</a>)</li> <li><em>t</em> Distribution Table (<a href="https://openpress.usask.ca/app/uploads/sites/76/2020/05/t-Distribution-Table.pdf" target="_blank" rel="noopener noreferrer">PDF</a>) (<a href="https://openpress.usask.ca/app/uploads/sites/76/2020/05/t-Distribution-Table.docx" target="_blank" rel="noopener noreferrer">Word</a>)</li> <li>Chi Squared Distribution Table (<a href="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Chi-squared-Distribution-Table.pdf" target="_blank" rel="noopener noreferrer">PDF</a>) (<a href="https://openpress.usask.ca/app/uploads/sites/76/2020/05/Chi-squared-Distribution-Table.docx" target="_blank" rel="noopener noreferrer">Word</a>)</li> <li><em>F</em> Distribution Table (<a href="https://openpress.usask.ca/app/uploads/sites/76/2020/05/F-Distribution-Table.pdf" target="_blank" rel="noopener noreferrer">PDF</a>) (<a href="https://openpress.usask.ca/app/uploads/sites/76/2020/05/F-Distribution-Table.docx" target="_blank" rel="noopener noreferrer">Word</a>)</li> </ul> </div></div>

</body>
</html>