SN1Manual Sept 2025 2nd Edition

1. Introduction to statistics and descriptive statistics (part 1)

This section of the study guide covers the foundational concepts of statistics, focusing on the collection, analysis, presentation, and interpretation of data, as well as an introduction to descriptive statistics including frequency distributions, tables, and graphs.

1.1 Overview of statistics

Statistics is defined as the art and science of collecting, analyzing, presenting, and interpreting data. A statistical study typically involves four phases:

  • Phase I: Data Collection: This involves gathering information from relevant sources to answer research questions, test hypotheses, and evaluate outcomes. It addresses what data is needed and how to collect it.
  • Phase II: Data Analysis: This phase employs analytical and statistical tools to evaluate data, uncover useful information, and aid decision-making.
  • Phase III: Data Presentation: Data is organized into tables, graphs, or charts to derive logical and statistical conclusions. Visual representations are emphasized for their clarity.
  • Phase IV: Data Interpretation: This involves assigning meaning to the analyzed data, determining its significance, and implications. Results should be communicated clearly, even to non-statisticians.

Key Definitions:

  • Population: A collection of all elements (persons, items, or data) of interest in a study.
  • Sample: A subset of the population from which information is collected.
  • Variable: A characteristic, number, or quantity that can be measured or counted in a population or sample.
  • Data: The value of a variable assigned to one or all elements of a population or sample 5.
  • Qualitative Data (Categorical Data): Data that can be arranged into categories based on non-numerical traits.
  • Quantitative Data: Numerical data acquired through counting or measuring.
  • Parameter: A characteristic of a population.
  • Statistic: A characteristic of a sample.
  • Statistical Inference: Methods for estimating and drawing conclusions about population characteristics based on information from a sample. It allows for educated guesses about population parameters using sample statistics.

Example: Measuring the sodium content in cans of tomato soup. The population is all cans of soup, while a sample of a few cans is measured. The average sodium content in all cans (population parameter, μ\mu) is unknown, but the average from the sample (sample statistic, xˉ\bar{x}) can be calculated to estimate μ\mu.

1.2 Sampling techniques

Sampling is the process of selecting a representative sample from a target population to gather data and understand the population. Sampling techniques are broadly categorized into two types:

  • Probability Sampling: Uses random sampling techniques to create a sample, ensuring each element has an equal chance of selection.
  • Non-Probability Sampling: Employs non-random processes such as researcher judgment or convenience 6.

Types of Probability Sampling:

  • Simple Random Sampling: Every element has an equal chance of being selected. Used when no prior information about the population is available.
  • Stratified Sampling: The population is divided into distinct groups (strata), and a probability sample is drawn from each group.
  • Cluster Sampling: The population is divided into clusters or sections, clusters are randomly selected, and then all elements within the selected clusters are sampled. This can be Single Stage (entire cluster selected) or Two Stage (clusters selected, then elements within those clusters selected) 7.
  • Systematic Sampling: Elements are selected from an ordered sampling frame. An element is chosen at random, and then every kk-th element is selected, where k=N/nk = N/n (NN is population size, nn is sample size).

Types of Non-Probability Sampling:

  • Convenience Sampling: Samples are drawn from the part of the population that is most accessible. Useful for pilot testing 8.

Tip: Probability sampling methods are generally preferred in statistical studies because they provide a more objective and representative sample, leading to more reliable inferences about the population. 6-8

1.3 Classifying data according to levels of measurement

Data can be classified into four levels of measurement, each with different properties and analytical possibilities:

  • Nominal Data:
    • Consists of names, labels, or categories.
    • No inherent order or ranking exists.
    • Arithmetic operations cannot be performed.
    • Examples: Gender (Male/Female), Hair color (Brown, Blonde).
  • Ordinal Data:
    • The order of values is important, but the differences between them are not necessarily known or equal.
    • Arithmetic operations are generally not meaningful.
    • Example: Employee satisfaction survey responses (Extremely Happy, Happy, Neutral, Unhappy, Extremely Unhappy).
  • Interval Data:
    • Measured on a scale where each point is equidistant from others.
    • Data appears as numbers where distances are standardized and equal.
    • Addition and subtraction are possible, but multiplication and division are not always meaningful.
    • There is no natural zero point.
    • Examples: Temperature in degrees Fahrenheit or Celsius (0°F does not mean no temperature; 2 times 50°C is not twice the heat of 100°C).
  • Ratio Data:
    • Similar to interval data but includes a natural zero point, making multiplication and division meaningful.
    • All arithmetic operations are possible.
    • Examples: Weight, height, sales figures, number of children (0 weight means no weight; 60 kg is 50 units more than 10 kg and three times 20 kg).
Level of MeasurementOrder MattersEqual IntervalsNatural ZeroArithmetic Operations (Addition/Subtraction)Arithmetic Operations (Multiplication/Division)
NominalNoNoNoNoNo
OrdinalYesNoNoNoNo
IntervalYesYesNoYesNo (usually)
RatioYesYesYesYesYes

Note: Understanding the level of measurement is crucial for selecting appropriate statistical methods 9.

1.4 Tables, charts, graphs, and plots

Various graphical and tabular methods are used to present and visualize data, depending on the type of data and the intended message.

  • Bar Graph: Useful for displaying relationships between data in categories.
  • Pie Chart: Illustrates how categories within a dataset relate to the whole.
  • Pareto Chart: Combines bars and a line graph, with bars representing individual values in descending order and a line showing the cumulative total 10.
  • Scatter Plot: An effective way to display individual data points and potential relationships between two variables.
  • Histogram: Summarizes discrete or continuous data by showing the frequency of data points within specified ranges (bins). It resembles a bar graph but has no gaps between bars.
  • Dot Plot: A graphical display using dots, where each dot represents a data point. Columns of dots show the frequency for a specific value 11.
  • Stem and Leaf Plot: A table that splits data values into a "stem" (leading digits) and a "leaf" (usually the last digit). It can be used to compare two different samples simultaneously.
  • Box-and-Whisker Plot (Box Plot): Displays a five-number summary of data: minimum, first quartile, median, third quartile, and maximum. A box is drawn from the first to the third quartile, with a line indicating the median 12.

Frequency Distributions:

A frequency distribution is a table or graph that organizes data into classes or intervals and shows the count (frequency) of entries within each class.

  • Ungrouped Frequency Distribution: Lists each unique data value and its frequency. Suitable for data with a limited number of distinct values.
  • Grouped Frequency Distribution: Organizes data into intervals (classes), showing the frequency for each interval. This is practical for data with a wide range of values 16.

Guidelines for Constructing a Grouped Frequency Distribution Table: 17.

  1. Decide on the number of classes: Typically between 5 and 20, or use Sturges' formula: Number of classes ≈1+3.3log⁡n\approx 1 + 3.3 \log n.
  2. Ensure equal class width: Class width ≈(Largest Value−Smallest Value)/Number of classes\approx (\text{Largest Value} - \text{Smallest Value}) / \text{Number of classes}. Round up to a convenient number.
  3. Find class limits: Choose a lower limit for the first class and add the class width to find subsequent lower limits.
  4. Determine upper limits: Subtract one (or an appropriate value) from the lower limit of the next class to find the upper limit of the current class.
  5. Calculate class boundaries: Subtract 0.5 (or an appropriate value) from lower limits and add 0.5 to upper limits. Boundaries are halfway between the upper limit of one class and the lower limit of the next.
  6. Find the class mark (midpoint): The average of the upper and lower limits of a class.
  7. Tally the data: Count the number of observations falling into each class.
  8. Find class frequencies: The count of observations in each class.
  9. Find cumulative frequencies (cf): The number of observations less than the upper boundary of the class.
  10. Calculate relative frequency (rf): Frequency of a class divided by the total sample size (nn).
  11. Calculate relative cumulative frequency (rcf): Cumulative frequency of a class divided by the total sample size (nn).

Note: Histograms, frequency polygons, and cumulative frequency polygons are visual representations derived from frequency distribution tables. Relative frequency distributions and cumulative frequency distributions provide proportional or cumulative insights into the data. 17-19

This section introduces fundamental statistical concepts, focusing on data collection, organization, presentation, and initial analysis through descriptive statistics.

1.5 The role of statistics

Statistics is the science of collecting, organizing, presenting, analyzing, and interpreting data. Its primary goal is to make informed decisions based on empirical evidence. This field is broadly divided into two main branches:

  • Descriptive Statistics: This branch involves methods for summarizing and describing the main features of a dataset. It focuses on presenting data in a manageable and understandable form, often through tables, graphs, and numerical measures.
  • Inferential Statistics: This branch uses sample data to make generalizations, predictions, or inferences about a larger population.

Note: This part of the summary will focus on descriptive statistics. [ ].

1.6 Frequency distributions and their representation

A frequency distribution is a way to organize and summarize data by grouping values into classes or categories and showing the number of observations that fall into each category. This provides a clear overview of how often different values occur within a dataset.

1.7 Constructing frequency tables

To construct a frequency table, data is categorized, and the count (frequency) for each category is determined.

Example: For a list of blood groups (O, A, B, AB), a frequency table would show how many donors fall into each blood group. [ ].

1.8 Graphical representation of frequency distributions

Visualizing frequency distributions enhances understanding and allows for quick identification of patterns. Common graphical methods include:

  • Frequency Histogram: A bar graph where the bars represent classes, and the height of each bar indicates the frequency of observations within that class. There are no gaps between the bars in a histogram, signifying that the data is continuous or grouped into continuous intervals.
  • Frequency Polygon: A line graph that connects the midpoints of the tops of the bars in a histogram. It is useful for comparing multiple frequency distributions.
  • Relative Frequency Histogram: Similar to a frequency histogram, but the height of the bars represents the relative frequency (proportion or percentage) of observations in each class, rather than the raw count. This is useful for comparing datasets of different sizes.
  • Cumulative Frequency Polygon (Ogive): A line graph that plots the cumulative frequency against the upper class boundaries. It shows the total number of observations that fall below a certain value.

Example: For the heights of male students, a frequency histogram would visually display how many students fall into each height range (e.g., 140-149 cm, 150-159 cm, etc.). [ ].

1.9 Key components of frequency distributions

When working with grouped data in frequency distributions, several components are important:

  • Class Width: The range of values within a single class interval. It is calculated by subtracting the lower limit of a class from the lower limit of the next class, or by subtracting the upper and lower class limits and adding 1 (for discrete data) or simply subtracting the lower limits (for continuous data).
    • For a class interval Llower−UupperL_{lower} - U_{upper}, the class width ww can be found by w=Llower(next class)−Llower(current class)w = L_{lower (next\ class)} - L_{lower (current\ class)}.
  • Class Midpoint: The value that represents the center of a class interval. It is calculated by averaging the lower and upper limits of a class.
    • Class Midpoint =Uupper+Llower2= \frac{U_{upper} + L_{lower}}{2}
  • Class Boundaries: Values that separate adjacent classes without gaps, ensuring continuity for continuous data. For a class interval Llower−UupperL_{lower} - U_{upper}, the lower class boundary is Llower−0.5L_{lower} - 0.5 and the upper class boundary is Uupper+0.5U_{upper} + 0.5 for data measured in whole units. For data measured to a certain decimal place, the adjustment is made accordingly (e.g., for data to two decimal places, subtract 0.005 and add 0.005).

Example: For the class interval 10-13, assuming the data are integers:

  • Class Width: If the next class starts at 14, the width is 14−10=414 - 10 = 4.
  • Class Midpoint: 13+102=11.5\frac{13 + 10}{2} = 11.5.
  • Class Boundaries: Lower boundary is 10−0.5=9.510 - 0.5 = 9.5, Upper boundary is 13+0.5=13.513 + 0.5 = 13.5. [ ].

1.10 Measures of Central Tendency

Measures of central tendency provide a single value that represents the "center" or typical value of a dataset.

  • Mean: The arithmetic average of all values in a dataset. It is calculated by summing all values and dividing by the total number of observations.
    • For a population: μ=∑i=1NxiN\mu = \frac{\sum_{i=1}^{N} x_i}{N}
    • For a sample: xˉ=∑i=1nxin\bar{x} = \frac{\sum_{i=1}^{n} x_i}{n} Where:
    • μ\mu is the population mean.
    • xˉ\bar{x} is the sample mean.
    • xix_i represents each individual value.
    • NN is the total number of observations in the population.
    • nn is the total number of observations in the sample.
  • Median: The middle value of a dataset when it is arranged in ascending or descending order. If the dataset has an odd number of observations, the median is the middle value. If it has an even number of observations, the median is the average of the two middle values.
  • Mode: The value that appears most frequently in a dataset. A dataset can be unimodal (one mode), bimodal (two modes), or multimodal (more than two modes). It is also possible for a dataset to have no mode if all values occur with the same frequency.

Important: The mean is sensitive to outliers, while the median is resistant to them. The mode is useful for categorical data. [ ] 20.

2. Introduction to statistics and descriptive statistics (part 2)

This section delves into key measures of central tendency, position, and variation, crucial for summarizing and understanding data distributions.

2.1 Measures of central tendency

Measures of central tendency provide a single value that describes the center of a dataset. The three most common measures are the mean, median, and mode.

  • Mean: The average of a sample, denoted by xˉ\bar{x} (read as "x bar"), is calculated by summing all values and dividing by the sample size (nn). The population mean is denoted by μ\mu and calculated similarly using the population size (NN). The mean is sensitive to outliers. xˉ=∑xn\bar{x} = \frac{\sum x}{n} μ=∑xN\mu = \frac{\sum x}{N}

    Example (Mean and Outlier): For the dataset 0, 2, 3, 0, 5, 6, 1000, the sample mean is approximately 145.14. Removing the outlier 1000 results in a mean of approximately 2.67, demonstrating the mean's sensitivity to extreme values.

  • Median: The median, denoted by x~\tilde{x} (read as "x tilde"), is the middle value of a ranked dataset. If the sample size (nn) is odd, the median is the exact middle value. If nn is even, the median is the average of the two middle values. The median is less sensitive to outliers than the mean.

    • To locate the median's position in a ranked dataset: n+12\frac{n+1}{2}.

    Example (Median when n is Odd): For the ranked dataset 0, 0, 2, 3, 5, 6, 1000 (n=7n=7), the median is the 4th value, which is 3. Example (Median when n is Even): For the ranked dataset 0, 0, 2, 3, 5, 6 (n=6n=6), the median is the average of the 3rd and 4th values: 2+32=2.5\frac{2+3}{2} = 2.5.

  • Mode: The mode is the value that occurs most frequently in a dataset.

    • A dataset can have no mode (if all values occur with the same frequency).
    • A dataset can have one mode (unimodal).
    • A dataset can have two modes (bimodal).

    Example (Mode): In the dataset 0, 2, 3, 0, 5, 6, 1000, the mode is 0. In the dataset 0, 2, 3, 0, 5, 6, 5, the modes are 0 and 5 (bimodal) 23.

2.2 Measures of position (ranking)

Measures of position describe a data value's location relative to other values in the dataset. Percentiles and quartiles are key measures.

  • Percentiles: Percentiles divide a dataset into 100 approximately equal groups. The KthK^{th} percentile (PkP_k) is the value such that at most K%K\% of observations are less than PkP_k.

    • To find PkP_k: Multiply n+1n+1 by k/100k/100. If the result is an integer ii, PkP_k is the ithi^{th} entry. If not, average the two closest entries.

    Example (Percentiles): For a sample of n=45n=45 observations, to find P30P_{30}: 0.30(45+1)=13.80.30(45+1) = 13.8. P30P_{30} is the 13th value plus 0.8 of the difference between the 13th and 14th values. If the 13th value is 51 and the 14th is 53, then P30=51+0.8×(53−51)=52.6P_{30} = 51 + 0.8 \times (53-51) = 52.6 24. To find P50P_{50} (which is the median) for n=45n=45: 0.50(45+1)=230.50(45+1) = 23. Thus, P50P_{50} is the 23rd observation, which is 62.

  • Quartiles: Quartiles divide a dataset into four approximately equal groups.

    • Q1Q_1 (1st quartile): At most 25% of values are less than Q1Q_1. (P25P_{25})
    • Q2Q_2 (2nd quartile): At most 50% of values are less than Q2Q_2. (P50P_{50}, the median)
    • Q3Q_3 (3rd quartile): At most 75% of values are less than Q3Q_3. (P75P_{75})

    Example (Quartiles): For the same n=45n=45 dataset:

    • Q1Q_1: 0.25(45+1)=11.50.25(45+1) = 11.5. Q1=11th+12th2=48+512=49.5Q_1 = \frac{11^{th} + 12^{th}}{2} = \frac{48+51}{2} = 49.5.
    • Q2Q_2: 0.50(45+1)=230.50(45+1) = 23. Q2Q_2 is the 23rd observation, which is 62.
    • Q3Q_3: 0.75(45+1)=34.50.75(45+1) = 34.5. Q3=34th+35th2=77+772=77Q_3 = \frac{34^{th} + 35^{th}}{2} = \frac{77+77}{2} = 77.
  • Box-and-Whisker Chart: A graphical representation displaying quartiles, minimum, and maximum values. It provides a visual summary of the data's spread and center.

    Outliers and the Box-and-Whisker Chart:

    • Interquartile Range (IQR): IQR=Q3−Q1IQR = Q_3 - Q_1.
    • A data value is a potential outlier if it is:
    • More than 1.5×IQR1.5 \times IQR above Q3Q_3.
    • Less than 1.5×IQR1.5 \times IQR below Q1Q_1. Outliers are typically plotted as individual points on the chart, and the whiskers are adjusted 25.

    Example (Outlier Detection): For Q1=49.5Q_1 = 49.5, Q3=77Q_3 = 77, IQR=24.5IQR = 24.5. 1.5×IQR=36.751.5 \times IQR = 36.75.

    • Upper outlier boundary: 77+36.75=113.7577 + 36.75 = 113.75.
    • Lower outlier boundary: 49.5−36.75=12.7549.5 - 36.75 = 12.75. A value like 140 in the dataset would be identified as an outlier.

2.3 Measures of variation (spread)

Measures of variation quantify the dispersion or spread of data points around the center.

  • Range: The difference between the maximum and minimum data values. It is highly sensitive to outliers. Range=Maximum−Minimum\text{Range} = \text{Maximum} - \text{Minimum}

    Example (Range Sensitivity): For the sample 36, 36, 39, 44, 48, 48, 51, 51, 51, 53, the range is 53−36=1753-36=17. For the sample 36, 36, 39, 44, 48, 48, 51, 51, 51, 553, the range is 553−36=517553-36=517, highlighting the impact of an outlier 26.

  • Interquartile Range (IQR): The difference between the first and third quartiles (Q3−Q1Q_3 - Q_1). It measures the spread of the middle 50% of the data and is not affected by extreme values.

  • Variance: The average of the squared differences from the mean.

    • Sample Variance (s2s^2): s2=∑(x−xˉ)2n−1s^2 = \frac{\sum(x - \bar{x})^2}{n-1}
    • Population Variance (σ2\sigma^2): σ2=∑(x−μ)2N\sigma^2 = \frac{\sum(x - \mu)^2}{N}

    Example (Variance Calculation): For the sample 0, 1, 5, 3, 6:

    • Sample mean (xˉ\bar{x}) = 3.
    • Sum of squared differences: ∑(x−xˉ)2=(−3)2+(−2)2+2+2+2=9+4+4+0+9=26\sum(x-\bar{x})^2 = (-3)^2 + (-2)^2 + ^2 + ^2 + ^2 = 9 + 4 + 4 + 0 + 9 = 26 2 3.
    • Sample variance (s2s^2) = 265−1=264=6.5\frac{26}{5-1} = \frac{26}{4} = 6.5.
  • Standard Deviation: The square root of the variance. It provides a measure of spread in the same units as the data.

    • Sample Standard Deviation (ss): s=s2=∑(x−xˉ)2n−1s = \sqrt{s^2} = \sqrt{\frac{\sum(x - \bar{x})^2}{n-1}}
    • Population Standard Deviation (σ\sigma): σ=σ2=∑(x−μ)2N\sigma = \sqrt{\sigma^2} = \sqrt{\frac{\sum(x - \mu)^2}{N}}

    Example (Standard Deviation Calculation): For the sample 0, 1, 5, 3, 6, with s2=6.5s^2 = 6.5, the sample standard deviation is s=6.5≈2.546s = \sqrt{6.5} \approx 2.546 27.

  • Computational Formula for Variance: This formula simplifies calculations, especially with large datasets, by using sums of xx and x2x^2. s2=∑x2−(∑x)2nn−1s^2 = \frac{\sum x^2 - \frac{(\sum x)^2}{n}}{n-1} σ2=∑x2−(∑x)2NN\sigma^2 = \frac{\sum x^2 - \frac{(\sum x)^2}{N}}{N}

    Example (Computational Formula): For the sample 0, 1, 5, 3, 6: ∑x=15\sum x = 15, ∑x2=71\sum x^2 = 71. s2=71−255−1=71−22554=71−454=264=6.5s^2 = \frac{71 - \frac{ ^2}{5}}{5-1} = \frac{71 - \frac{225}{5}}{4} = \frac{71 - 45}{4} = \frac{26}{4} = 6.5 15 28.

2.4 Weighted mean and variance for frequency distributions

When data is presented in frequency tables, specific formulas are used to calculate the mean and variance.

  • Weighted Mean: Used when data entries have different weights (ww). xˉ=∑(w⋅x)∑w\bar{x} = \frac{\sum(w \cdot x)}{\sum w}

    Example (Grades): Mateo's final grade is a weighted average of his test scores: xˉ=(82×0.35)+(75×0.15)+(93×0.10)+(77×0.40)0.35+0.15+0.10+0.40=28.7+11.25+9.3+30.81.00=80.05\bar{x} = \frac{(82 \times 0.35) + (75 \times 0.15) + (93 \times 0.10) + (77 \times 0.40)}{0.35 + 0.15 + 0.10 + 0.40} = \frac{28.7 + 11.25 + 9.3 + 30.8}{1.00} = 80.05 30.

  • Mean and Variance for an Ungrouped Frequency Distribution:

    • Mean: xˉ=∑(x⋅f)n\bar{x} = \frac{\sum(x \cdot f)}{n}, where n=∑fn = \sum f.
    • Sample Variance: s2=∑(x−xˉ)2fn−1=∑x2f−(∑xf)2nn−1s^2 = \frac{\sum(x - \bar{x})^2 f}{n-1} = \frac{\sum x^2 f - \frac{(\sum xf)^2}{n}}{n-1}.

    Example (Ungrouped Frequency): For xx values 0 (f=4), 1 (f=7), 2 (f=3), 3 (f=1):

    • ∑xf=(0×4)+(1×7)+(2×3)+(3×1)=0+7+6+3=16\sum xf = (0 \times 4) + (1 \times 7) + (2 \times 3) + (3 \times 1) = 0 + 7 + 6 + 3 = 16.
    • n=4+7+3+1=15n = 4+7+3+1 = 15.
    • xˉ=1615≈1.07\bar{x} = \frac{16}{15} \approx 1.07.
    • ∑x2f=(02×4)+(12×7)+(22×3)+(32×1)=0+7+12+9=28\sum x^2f = (0^2 \times 4) + (1^2 \times 7) + (2^2 \times 3) + (3^2 \times 1) = 0 + 7 + 12 + 9 = 28.
    • s2=28−21515−1=28−2561514=28−17.0714≈10.9314≈0.78095s^2 = \frac{28 - \frac{ ^2}{15}}{15-1} = \frac{28 - \frac{256}{15}}{14} = \frac{28 - 17.07}{14} \approx \frac{10.93}{14} \approx 0.78095 16.
  • Estimating Mean and Variance for a Grouped Frequency Distribution: Midpoints (MM) of each class are used to represent the data within that class.

    • Estimated Mean: xˉ≈∑(M⋅f)n\bar{x} \approx \frac{\sum(M \cdot f)}{n}.
    • Estimated Variance: s2≈∑(M−xˉ)2fn−1≈∑M2f−(∑Mf)2nn−1s^2 \approx \frac{\sum(M - \bar{x})^2 f}{n-1} \approx \frac{\sum M^2 f - \frac{(\sum Mf)^2}{n}}{n-1}.

    Example (Grouped Frequency): For height classes with midpoints MM and frequencies ff:

    • ∑Mf=1514\sum Mf = 1514, n=23n=23.
    • xˉ≈151423≈65.8\bar{x} \approx \frac{1514}{23} \approx 65.8 inches.
    • ∑M2f=99890\sum M^2f = 99890.
    • s2≈99890−22323−1≈99890−22921962322≈99890−99660.6922≈229.3122≈10.423s^2 \approx \frac{99890 - \frac{ ^2}{23}}{23-1} \approx \frac{99890 - \frac{2292196}{23}}{22} \approx \frac{99890 - 99660.69}{22} \approx \frac{229.31}{22} \approx 10.423 .
    • s≈10.423≈3.23s \approx \sqrt{10.423} \approx 3.23 inches 31.

2.5 The Empirical Rule

The Empirical Rule (or 68-95-99.7 Rule) applies to bell-shaped (normal) distributions and describes the percentage of data falling within certain standard deviations of the mean.

  • Approximately 68% of data falls within ±1\pm 1 standard deviation of the mean (xˉ±s\bar{x} \pm s).

  • Approximately 95% of data falls within ±2\pm 2 standard deviations of the mean (xˉ±2s\bar{x} \pm 2s).

  • Approximately 99.7% of data falls within ±3\pm 3 standard deviations of the mean (xˉ±3s\bar{x} \pm 3s).

    Example (Empirical Rule): For a bell-shaped distribution of test scores with xˉ=70\bar{x}=70 and s=10s=10:

    • Approximately 68% of scores are between 70−10=6070-10=60 and 70+10=8070+10=80.
    • Approximately 95% of scores are between 70−2=5070-2 =50 and 70+2=9070+2 =90.
    • Approximately 99.7% of scores are between 70−3=4070-3 =40 and 70+3=10070+3 =100 10 32.

3. Linear regression, correlation, and probability basics

This section explores the relationship between variables using linear regression and correlation, and introduces fundamental counting techniques in probability.

3.1 Linear regression model

Linear regression models are used to examine and represent the relationship between two variables, allowing for predictions. The simple linear regression model, also known as the line of best fit or least squares line, is defined by the equation:

yi=β0+β1xi+ϵiy_i = \beta_0 + \beta_1 x_i + \epsilon_i

where:

  • yiy_i is the dependent variable for the ii-th observation.
  • xix_i is the independent variable for the ii-th observation.
  • β0\beta_0 is the y-intercept.
  • β1\beta_1 is the slope.
  • ϵi\epsilon_i is the random error for the ii-th observation.

The goal is to estimate the population parameters β0\beta_0 and β1\beta_1 by minimizing the sum of the squared differences between the observed and predicted values. The least squares method yields the estimated regression line:

y^=β^0+β^1x\hat{y} = \hat{\beta}_0 + \hat{\beta}_1 x

The slope (β^1\hat{\beta}_1) and y-intercept (β^0\hat{\beta}_0) are calculated as follows:

β^1=SSxySSx\hat{\beta}_1 = \frac{SS_{xy}}{SS_x} β^0=yˉ−β^1xˉ\hat{\beta}_0 = \bar{y} - \hat{\beta}_1 \bar{x}

where:

  • SSx=∑x2−(∑x)2nSS_x = \sum x^2 - \frac{(\sum x)^2}{n} (Sum of Squares of x)
  • SSy=∑y2−(∑y)2nSS_y = \sum y^2 - \frac{(\sum y)^2}{n} (Sum of Squares of y)
  • SSxy=∑xy−(∑x)(∑y)nSS_{xy} = \sum xy - \frac{(\sum x)(\sum y)}{n} (Sum of Squares of x and y)
  • xˉ=∑xn\bar{x} = \frac{\sum x}{n} (Mean of x)
  • yˉ=∑yn\bar{y} = \frac{\sum y}{n} (Mean of y)

Example: For adult males, given their heights and weights, the least squares line can be determined. If the calculated slope is 1.859 and the y-intercept is -245.43, the regression equation is y^=−245.43+1.859x\hat{y} = -245.43 + 1.859x. This equation can predict weight based on height. For instance, a height of 186 cm predicts a weight of approximately 100.34 kg.

Note: Regression models are designed to fit data within a specific range. Extrapolating predictions far outside this range can lead to unreliable results 38.

3.2 Correlation coefficient

Correlation measures the strength and direction of the linear relationship between two variables. The correlation coefficient, denoted by rr, ranges from -1 to 1.

  • r=1r = 1: Perfect positive linear correlation.
  • 0<r<10 < r < 1: Positive linear correlation.
  • r≈0r \approx 0: No linear correlation.
  • −1<r<0-1 < r < 0: Negative linear correlation.
  • r=−1r = -1: Perfect negative linear correlation.

The formula for the sample correlation coefficient is:

r=SSxySSxSSyr = \frac{SS_{xy}}{\sqrt{SS_x SS_y}}

The population correlation coefficient is denoted by ρ\rho (rho).

The coefficient of determination, r2r^2, represents the proportion of the variation in the dependent variable (yy) that is explained by the regression line. A value of r2r^2 close to 1 indicates a good fit, while a value close to 0 suggests a poor fit.

Example: If r=0.8552r = 0.8552, then r2=(0.8552)2=0.7314r^2 = (0.8552)^2 = 0.7314. This means approximately 73% of the variation in yy is explained by the regression model 39.

3.3 Correlation and causation

It is crucial to distinguish between correlation and causation.

  • Correlation: Indicates that two variables tend to change together but does not imply that one causes the other.
  • Causation: Suggests that one event or variable directly influences or causes a change in another.

Confusing correlation with causation can lead to poor decision-making. A strong relationship between variables might be a coincidence or influenced by other confounding factors. To establish causation, controlled experiments are often necessary.

Types of Studies:

  • Observational Studies: Researchers observe and record data without intervening. They identify associations but cannot prove causation due to potential confounding factors.
  • Experimental Studies: Researchers actively manipulate variables to observe their effect on other variables, aiming to establish cause-and-effect relationships. These studies offer stronger evidence of causation due to controlled variables 44.

Example: A positive correlation between sunscreen sales and ice cream sales exists because both increase with warmer weather, not because sunscreen causes ice cream sales or vice versa 43.

3.4 Counting techniques

Counting techniques are essential for determining the number of possible outcomes in probability problems.

3.4.1 Fundamental Principle of Counting

If an experiment has kk steps, and the first step has n1n_1 choices, the second n2n_2 choices, ..., and the kk-th step has nkn_k choices, then the total number of possible outcomes is the product:

n1⋅n2⋅n3⋅⋯⋅nkn_1 \cdot n_2 \cdot n_3 \cdot \dots \cdot n_k

Illustration: Ordering a pizza with choices of 4 meats, 3 cheeses, and 5 sizes results in 4×3×5=604 \times 3 \times 5 = 60 different possible pizzas 46.

3.4.2 Factorial Notation

Factorial notation, denoted by n!n!, is defined as the product of all positive integers up to nn:

n!=n⋅(n−1)⋅(n−2)⋅⋯⋅3⋅2⋅1n! = n \cdot (n-1) \cdot (n-2) \cdot \dots \cdot 3 \cdot 2 \cdot 1

By convention, 0!=10! = 1. The number of ways nn distinct items can be arranged in order is n!n! 47.

3.4.3 Permutations

A permutation is an arrangement of objects where order matters. The number of permutations of rr objects from a set of nn distinct objects is:

nPr=n!(n−r)!{}_nP_r = \frac{n!}{(n-r)!}

Example: The number of ways to arrange 5 people from a group of 10 is 10P5=10!(10−5)!=30,240{}_{10}P_5 = \frac{10!}{(10-5)!} = 30,240.

Permutations with repeated objects: When dealing with arrangements where some objects are identical, the formula is:

n!n1!⋅n2!⋅⋯⋅nk!\frac{n!}{n_1! \cdot n_2! \cdot \dots \cdot n_k!}

where nn is the total number of objects, and n1,n2,…,nkn_1, n_2, \dots, n_k are the counts of each type of identical object, such that n1+n2+⋯+nk=nn_1 + n_2 + \dots + n_k = n 48.

Example: The number of distinct orderings of the letters in the word MISSISSIPPI is 11!4!4!2!=34,650\frac{11!}{4!4!2!} = 34,650.

3.4.4 Combinations

A combination is a selection of objects where order does not matter. The number of combinations of rr objects taken from a set of nn distinct objects is:

nCr=n!r!(n−r)!{}_nC_r = \frac{n!}{r!(n-r)!}

Example: The number of different 5-card hands that can be formed from a deck of 52 cards is 52C5=52!5!(52−5)!=2,589,860{}_{52}C_5 = \frac{52!}{5!(52-5)!} = 2,589,860.

Example: To form a 5-member committee from a class of 20 students (12 boys, 8 girls) with 3 boys and 2 girls, the number of ways is 12C3×8C2=220×28=6160{}_{12}C_3 \times {}_{8}C_2 = 220 \times 28 = 6160 49.

4. Probability distributions and statistical inference (part 1)

This section introduces discrete probability distributions and their properties, followed by foundational concepts of statistical inference including sampling distributions and confidence intervals.

4.1 Discrete probability distributions

A discrete random variable is one that can take on a finite or countably infinite list of values. The probability distribution for a discrete random variable assigns a probability to each possible value. For a probability distribution P(x)P(x) to be valid, two conditions must be met: P(x)≥0P(x) \geq 0 for all possible values of xx, and the sum of all probabilities over all possible values of xx must equal 1.

  • Probability function/table: Assigns a probability P(x)P(x) to each possible value xx of a discrete random variable.
    • Condition 1: 0≤P(x)≤10 \leq P(x) \leq 1 for all xx.
    • Condition 2: ∑all xP(x)=1\sum_{\text{all } x} P(x) = 1.

Example: If a fair coin is tossed 3 times, and XX is the number of heads, the possible values for XX are 0, 1, 2, or 3. The probability distribution would list the probability for each of these outcomes. For instance, P(X=0)P(X=0) (no heads) is 1/81/8, and P(X=1)P(X=1) (one head) is 3/83/8.

4.1.1 Expected value of a discrete random variable

The expected value, denoted by μ\mu or E(x)E(x), represents the mean of a probability distribution. It is calculated as the weighted average of all possible values of the random variable, where the weights are their respective probabilities.

The formula for the expected value is: μ=E(x)=∑all xx⋅P(x)\mu = E(x) = \sum_{\text{all } x} x \cdot P(x)

Note: The expected value is not necessarily a possible outcome of the experiment but represents the average outcome over many trials.

4.1.2 Variance and standard deviation of a discrete random variable

The variance, σ2\sigma^2, measures the spread or dispersion of the probability distribution around the mean. It is computed by multiplying the squared difference between each value of xx and the mean (μ)(\mu) by its probability, and then summing these products.

The formula for variance is: σ2=E((x−μ)2)=∑all x(x−μ)2P(x)\sigma^2 = E((x - \mu)^2) = \sum_{\text{all } x} (x - \mu)^2 P(x)

The standard deviation, σ\sigma, is the square root of the variance and provides a measure of spread in the same units as the random variable. σ=σ2=∑all x(x−μ)2P(x)\sigma = \sqrt{\sigma^2} = \sqrt{\sum_{\text{all } x} (x - \mu)^2 P(x)}

A computational formula for variance is often more convenient: σ2=∑all xx2P(x)−μ2\sigma^2 = \sum_{\text{all } x} x^2 P(x) - \mu^2

Tip: Variance is always non-negative. The standard deviation gives a more interpretable measure of the typical deviation from the mean.

4.2 Sampling distributions and the Central Limit Theorem

Statistical inference allows us to draw conclusions about a population based on a sample. A crucial concept is the sampling distribution, which is the probability distribution of a statistic (e.g., the sample mean) computed from all possible samples of a given size drawn from a population.

The Central Limit Theorem (CLT) is a cornerstone of statistical inference. It states that for a sufficiently large sample size, the sampling distribution of the sample mean will be approximately normally distributed, regardless of the shape of the population distribution.

  • Key implication of CLT: Even if the population distribution is not normal, the distribution of sample means will tend toward a normal distribution as the sample size (nn) increases.
  • Rule of thumb: A sample size of n≥30n \geq 30 is generally considered sufficient for the CLT to apply.

The mean of the sampling distribution of the sample mean (μxˉ\mu_{\bar{x}}) is equal to the population mean (μ\mu). μxˉ=μ\mu_{\bar{x}} = \mu

The standard deviation of the sampling distribution of the sample mean, known as the standard error of the mean (σxˉ\sigma_{\bar{x}}), is calculated as: σxˉ=σn\sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}} where σ\sigma is the population standard deviation and nn is the sample size.

Important: The standard error of the mean decreases as the sample size increases, meaning that larger samples lead to more precise estimates of the population mean.

4.3 Confidence intervals for the population mean

A confidence interval (CI) is a range of values that is likely to contain the population parameter (in this case, the population mean μ\mu) with a certain level of confidence. It is constructed from sample data.

The general formula for a confidence interval for the population mean is: Sample Statistic±Margin of Error\text{Sample Statistic} \pm \text{Margin of Error}

When the population standard deviation (σ\sigma) is known or the sample size is large (n≥30n \geq 30), the confidence interval for the population mean is calculated as: xˉ±zα/2⋅σn\bar{x} \pm z_{\alpha/2} \cdot \frac{\sigma}{\sqrt{n}} where:

  • xˉ\bar{x} is the sample mean.
  • zα/2z_{\alpha/2} is the critical value from the standard normal distribution corresponding to the desired confidence level (e.g., for a 95% confidence level, α=0.05\alpha = 0.05, and z0.025≈1.96z_{0.025} \approx 1.96).
  • σn\frac{\sigma}{\sqrt{n}} is the standard error of the mean.

The margin of error is zα/2⋅σnz_{\alpha/2} \cdot \frac{\sigma}{\sqrt{n}}.

A confidence level of, for example, 95% means that if we were to take many random samples and construct a confidence interval for each, approximately 95% of those intervals would contain the true population mean.

Reminder: The confidence level does not refer to the probability that a specific interval contains the true mean after it has been calculated. Instead, it refers to the long-run proportion of intervals constructed in this manner that would capture the true parameter.

4.3.1 Factors affecting the width of a confidence interval

The width of a confidence interval is influenced by:

  • Confidence level: A higher confidence level requires a wider interval to be more certain of capturing the true mean.
  • Sample size (nn): A larger sample size leads to a smaller standard error and thus a narrower, more precise interval.
  • Population standard deviation (σ\sigma): A larger population standard deviation results in a wider interval.

Tip: To decrease the width of a confidence interval while maintaining the same confidence level, you must increase the sample size.

5. Probability distributions and statistical inference (part 2)

This section delves into discrete probability distributions, focusing on the binomial distribution and its normal approximation, before transitioning to inferential statistics by introducing sampling distributions, the Central Limit Theorem, and confidence intervals for the population mean.

5.1 The binomial distribution

The binomial distribution is used to model experiments with a fixed number of independent trials, each having only two possible outcomes: "success" or "failure," with a constant probability of success.

Characteristics of a Binomial Experiment:

  1. Identical and Independent Trials: The experiment consists of nn identical and independent trials.
  2. Two Outcomes: Each trial has only two possible outcomes: a "success" or a "failure."
  3. Constant Probability of Success: The probability of success, denoted by pp, remains constant for each trial.
  4. Constant Probability of Failure: The probability of failure is q=1−pq = 1 - p, and p+q=1p + q = 1.

A discrete random variable XX, representing the number of successes in nn independent and identical trials of a binomial experiment, follows the binomial probability distribution, denoted as B(x;n,p)B(x; n, p):

P(x)=(nx)pxqn−xfor x=0,1,2,…,nP(x) = \binom{n}{x} p^x q^{n-x} \quad \text{for } x = 0, 1, 2, \dots, n

The mean and variance of a binomial distribution are given by:

  • Mean: μ=np=E(X)\mu = np = E(X)
  • Variance: σ2=npq=E(X−μ)2\sigma^2 = npq = E(X - \mu)^2.

Example (Roulette Table): Consider placing the same bet on 5 different games at a roulette table, where the probability of winning a single bet (e.g., on an Odd or Even bet) is p=18/38p = 18/38. Let XX be the number of wins in n=5n=5 games. This scenario follows a binomial distribution, X∼Bin(n=5,p=18/38)X \sim \text{Bin}(n=5, p=18/38).

  • The probability of never winning (x=0x=0) is P=(50)(18/38)0(20/38)5≈0.0438P = \binom{5}{0} (18/38)^0 (20/38)^5 \approx 0.0438 .
  • The probability of winning exactly once (x=1x=1) is P=(51)(18/38)1(20/38)4≈0.1817P = \binom{5}{1} (18/38)^1 (20/38)^4 \approx 0.1817.
  • The probability of winning at most twice (x≤2x \le 2) is P(x≤2)=P+P+P≈0.0404+0.1817+0.3271=0.5493P(x \le 2) = P + P + P \approx 0.0404 + 0.1817 + 0.3271 = 0.5493 1 2.
  • The expected number of wins in 10 such bets (n=10n=10) is μ=np=10×(18/38)≈4.74\mu = np = 10 \times (18/38) \approx 4.74 77.

Example (University Admissions): If 3/4 of students go on to university, then in a random sample of 10 students, let XX be the number who go to university. Here, n=10n=10 and p=3/4p=3/4. The distribution is B(x;10,3/4)B(x; 10, 3/4).

  • To find P(X≤5)P(X \le 5), we sum the probabilities from x=0x=0 to x=5x=5 using binomial tables or formulas, yielding approximately 0.078130.07813.
  • To find P(X=5)P(X=5), we can calculate P(X≤5)−P(X≤4)≈0.07813−0.01973=0.05840P(X \le 5) - P(X \le 4) \approx 0.07813 - 0.01973 = 0.05840.
  • The mean is μ=np=10×(3/4)=7.5\mu = np = 10 \times (3/4) = 7.5, and the variance is σ2=npq=10×(3/4)×(1/4)=1.875\sigma^2 = npq = 10 \times (3/4) \times (1/4) = 1.875. The standard deviation is σ=1.875≈1.369\sigma = \sqrt{1.875} \approx 1.369 78 79.

5.2 The normal distribution

The normal distribution is a continuous probability distribution characterized by its bell-shaped and symmetric curve, with the mean, median, and mode all being equal. It is fundamental in statistics for modeling various natural phenomena.

Properties of the Normal Distribution:

  • Shape: Bell-shaped and symmetric about the mean (μ\mu).
  • Central Tendency: Mean, median, and mode are equal.
  • Total Area: The total area under the curve is equal to 1.
  • Symmetry: P(x<μ)=P(x>μ)=0.5P(x < \mu) = P(x > \mu) = 0.5.
  • Parameters: The shape is determined by the mean (μ\mu) and standard deviation (σ\sigma).

The probability density function (PDF) for a normal distribution N(x;μ,σ)N(x; \mu, \sigma) is given by: f(x)=1σ2πe−12(x−μσ)2f(x) = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2} where μ\mu is the population mean and σ\sigma is the population standard deviation (σ>0\sigma > 0)85.

Note: For any continuous random variable, the probability of it taking on an exact specific value is zero. For example, P(X=5′6′′)=0P(X = 5' 6'') = 0. Probabilities are calculated for intervals.

Important: The Empirical Rule states that for a normal distribution, approximately 68% of the data falls within ±1\pm 1 standard deviation of the mean, 95% within ±2\pm 2 standard deviations, and 99.7% within ±3\pm 3 standard deviations 84.

The Standard Normal Distribution: Any normal distribution N(x;μ,σ)N(x; \mu, \sigma) can be transformed into the standard normal distribution N(z;0,1)N(z; 0, 1) using the z-score formula: z=x−μσz = \frac{x - \mu}{\sigma} The standard normal distribution has a mean (μz\mu_z) of 0 and a standard deviation (σz\sigma_z) of 1. This standardization allows the use of a single table (the z-table) to find probabilities for any normal distribution.

Example (Heights): The average height of adult males in Canada is 175.3 cm with a standard deviation of 7.6 cm. If heights are normally distributed X∼N(μ=175.3,σ=7.6)X \sim N(\mu=175.3, \sigma=7.6), we can find the z-scores for specific heights. For example, a height of 183 cm corresponds to a z-score of z=(183−175.3)/7.6≈1.01z = (183 - 175.3) / 7.6 \approx 1.01. Using the z-table, we can find probabilities such as P(X>183 cm)=P(Z>1.01)P(X > 183 \text{ cm}) = P(Z > 1.01) 86.

Using the Standard Normal Table (z-table): The z-table typically provides the area (probability) under the standard normal curve. Common tables give:

  • Area from −∞-\infty to a positive zz value.
  • Area from 00 to a positive zz value.

The symmetry of the normal distribution is crucial: P(0<z<z∗)=P(−z∗<z<0)P(0 < z < z^*) = P(-z^* < z < 0), and P(z<0)=P(z>0)=0.5P(z < 0) = P(z > 0) = 0.5 87.

Example (Montreal Temperatures): The average temperature in Montreal for July is μ=23.5∘C\mu = 23.5^\circ \text{C} with σ=3.5∘C\sigma = 3.5^\circ \text{C}. Assuming a normal distribution X∼N(23.5,3.5)X \sim N(23.5, 3.5):

  • To find the probability of a temperature being more than 25∘C25^\circ \text{C}:
  • Calculate the z-score: z=(25−23.5)/3.5≈0.43z = (25 - 23.5) / 3.5 \approx 0.43.
  • Find the probability P(Z>0.43)P(Z > 0.43) using the z-table. This is 0.5−P(0<Z<0.43)≈0.5−0.1664=0.33360.5 - P(0 < Z < 0.43) \approx 0.5 - 0.1664 = 0.3336.
  • To find the probability of a temperature being less than 18∘C18^\circ \text{C}:
  • Calculate the z-score: z=(18−23.5)/3.5≈−1.57z = (18 - 23.5) / 3.5 \approx -1.57.
  • Find the probability P(Z<−1.57)P(Z < -1.57) using the z-table. This is 0.5−P(0<Z<1.57)≈0.5−0.4418=0.05820.5 - P(0 < Z < 1.57) \approx 0.5 - 0.4418 = 0.0582.
  • To find the probability of a temperature being between 25∘C25^\circ \text{C} and 30∘C30^\circ \text{C}:
  • Calculate z-scores: z1=(25−23.5)/3.5≈0.43z_1 = (25 - 23.5) / 3.5 \approx 0.43 and z2=(30−23.5)/3.5≈1.86z_2 = (30 - 23.5) / 3.5 \approx 1.86.
  • Find P(0.43<Z<1.86)=P(0<Z<1.86)−P(0<Z<0.43)≈0.4686−0.1664=0.3022P(0.43 < Z < 1.86) = P(0 < Z < 1.86) - P(0 < Z < 0.43) \approx 0.4686 - 0.1664 = 0.3022 91.

Example (Pain Tablets): A pharmaceutical company produces pain tablets with an active ingredient amount normally distributed with μ=498.2 mg\mu = 498.2 \text{ mg} and σ=3.51 mg\sigma = 3.51 \text{ mg}.

  • The probability that a tablet has more than 506 mg of the active ingredient is P(X>506)P(X > 506). The z-score is z=(506−498.2)/3.51≈2.22z = (506 - 498.2) / 3.51 \approx 2.22. So, P(Z>2.22)≈0.5−0.4868=0.0132P(Z > 2.22) \approx 0.5 - 0.4868 = 0.0132.
  • If 90% of tablets have above a certain amount, we need to find that amount (x0x_0). This means P(X>x0)=0.90P(X > x_0) = 0.90, or P(X<x0)=0.10P(X < x_0) = 0.10. The z-score corresponding to an area of 0.400.40 to the left of the mean (for P(Z<z0)=0.10P(Z < z_0)=0.10) is approximately −1.28-1.28. Using z=(x0−μ)/σz = (x_0 - \mu) / \sigma, we get −1.28=(x0−498.2)/3.51-1.28 = (x_0 - 498.2) / 3.51, so x0≈498.2−1.28×3.51≈493.7 mgx_0 \approx 498.2 - 1.28 \times 3.51 \approx 493.7 \text{ mg} 92.

5.3 Inferential statistics: Sampling distributions and the Central Limit Theorem

Inferential statistics involves using sample data to draw conclusions about a larger population. Key to this are sampling distributions and the Central Limit Theorem.

Sampling Distributions: A sampling distribution is the probability distribution of a statistic (e.g., sample mean, sample proportion) that is calculated from all possible samples of a given size drawn from a population. The sampling distribution of the sample mean, denoted Xˉ\bar{X}, is particularly important.

  • Mean of the Sampling Distribution: The mean of the sampling distribution of the sample mean (μXˉ\mu_{\bar{X}}) is equal to the population mean (μ\mu): μXˉ=μ\mu_{\bar{X}} = \mu.
  • Standard Deviation of the Sampling Distribution (Standard Error): The standard deviation of the sampling distribution of the sample mean, also known as the standard error (σXˉ\sigma_{\bar{X}}), is equal to the population standard deviation (σ\sigma) divided by the square root of the sample size (nn): σXˉ=σn\sigma_{\bar{X}} = \frac{\sigma}{\sqrt{n}}. This relationship holds true regardless of the population's distribution, provided nn is sufficiently large or the population itself is normally distributed.

The Central Limit Theorem (CLT): The Central Limit Theorem is a cornerstone of inferential statistics. It states that if you take sufficiently large random samples from any population, regardless of the population's original distribution (as long as it has a finite mean and variance), the distribution of the sample means will be approximately normally distributed.

  • Conditions for CLT: Typically, a sample size of n≥30n \ge 30 is considered sufficiently large for the CLT to apply.
  • Implications: The CLT allows us to use normal distribution theory and z-tables to make inferences about the population mean, even when the population distribution is unknown or non-normal.

Example (Monthly Household Incomes in Mexico): Monthly household incomes in Mexico are normally distributed with μ=13,239\mu = 13,239 pesos and σ=3,152\sigma = 3,152 pesos. To find the proportion of incomes between 10,000 and 15,000 pesos :

  • Calculate z-scores: z1=(10000−13239)/3152≈−1.03z_1 = (10000 - 13239) / 3152 \approx -1.03 and z2=(15000−13239)/3152≈0.56z_2 = (15000 - 13239) / 3152 \approx 0.56.
  • Find P(−1.03<Z<0.56)=P(0<Z<0.56)+P(−1.03<Z<0)≈0.2123+0.3485=0.5608P(-1.03 < Z < 0.56) = P(0 < Z < 0.56) + P(-1.03 < Z < 0) \approx 0.2123 + 0.3485 = 0.5608. Approximately 56.1% of incomes are between these values.

5.4 Confidence intervals for the population mean

A confidence interval provides a range of plausible values for an unknown population parameter, such as the population mean (μ\mu), based on sample data. It is constructed such that, if the sampling process were repeated many times, a certain percentage (the confidence level) of the intervals would contain the true population mean.

The general formula for a confidence interval for the population mean when the population standard deviation (σ\sigma) is known (or when the sample size is large, allowing the use of sample standard deviation ss as a good estimate) is:

Confidence Interval=xˉ±zα/2σn\text{Confidence Interval} = \bar{x} \pm z_{\alpha/2} \frac{\sigma}{\sqrt{n}}

Where:

  • xˉ\bar{x} is the sample mean.
  • zα/2z_{\alpha/2} is the critical z-value corresponding to the desired confidence level (e.g., for a 95% confidence interval, α=0.05\alpha = 0.05, and zα/2=z0.025=1.96z_{\alpha/2} = z_{0.025} = 1.96).
  • σn\frac{\sigma}{\sqrt{n}} is the standard error of the mean.

Example (Height of American Men): If the heights of American men are normally distributed with μ=177\mu = 177 cm and σ=4.5\sigma = 4.5 cm:

  • To find the height above which the tallest 8% of men fall: This means P(X>x0)=0.08P(X > x_0) = 0.08, so P(X<x0)=0.92P(X < x_0) = 0.92. The z-score corresponding to an area of 0.420.42 to the right of the mean is approximately 1.4051.405. Thus, x0=μ+zσ=177+1.405×4.5≈183.3x_0 = \mu + z \sigma = 177 + 1.405 \times 4.5 \approx 183.3 cm.
  • To find the heights between which the middle 34% of men fall: This implies 17%17\% below the mean and 17%17\% above the mean from the center. We look for a z-score where the area from 00 to zz is 0.170.17. This z-score is approximately 0.440.44. The heights are μ±zσ=177±0.44×4.5\mu \pm z\sigma = 177 \pm 0.44 \times 4.5, which gives approximately 175.02175.02 cm and 178.98178.98 cm 93 94.

6. Probability distributions and statistical inference (part 3)

This section of the study guide delves into advanced probability distributions, specifically the normal approximation to the binomial distribution, and lays the foundational concepts of inferential statistics, including sampling distributions and the Central Limit Theorem.

6.1 The normal approximation to the binomial distribution

When the conditions for the binomial distribution become computationally intensive due to a large number of trials, the normal distribution can serve as an effective approximation. This approximation is valid when the product of the number of trials (nn) and the probability of success (pp), and the product of the number of trials (nn) and the probability of failure (q=1−pq=1-p) are both sufficiently large.

  • Conditions for Approximation: The normal approximation to the binomial distribution is applicable if:

    • np≥5np \ge 5
    • nq≥5nq \ge 5
  • Approximating Distribution: If these conditions are met, the binomial distribution B(x;n,p)B(x; n, p) can be approximated by a normal distribution N(x;μ,σ)N(x; \mu, \sigma) with:

    • Mean: μ=np\mu = np
    • Standard Deviation: σ=np(1−p)\sigma = \sqrt{np(1-p)}
  • Continuity Correction: When approximating a discrete distribution (binomial) with a continuous distribution (normal), a continuity correction is applied to account for the transition between values. This involves adjusting the interval for a specific number x0x_0 to be from x0−12x_0 - \frac{1}{2} to x0+12x_0 + \frac{1}{2}.

    • P(Binomial x=x0)≈P(Normal x0−12<x<x0+12)P(\text{Binomial } x = x_0) \approx P(\text{Normal } x_0 - \frac{1}{2} < x < x_0 + \frac{1}{2})
    • P(Binomial x≥k)≈P(Normal x>k−12)P(\text{Binomial } x \ge k) \approx P(\text{Normal } x > k - \frac{1}{2})
    • P(Binomial x≤k)≈P(Normal x<k+12)P(\text{Binomial } x \le k) \approx P(\text{Normal } x < k + \frac{1}{2})

Example: A student guesses on 48 multiple-choice questions, each with 4 choices. The probability of getting exactly 10 questions correct using the binomial distribution is calculated. To approximate this probability using the normal distribution, we first check the conditions: np=48×14=12≥5np = 48 \times \frac{1}{4} = 12 \ge 5 and nq=48×34=36≥5nq = 48 \times \frac{3}{4} = 36 \ge 5. Thus, the approximation is valid. The mean is μ=12\mu = 12, and the standard deviation is σ=48×14×34=9=3\sigma = \sqrt{48 \times \frac{1}{4} \times \frac{3}{4}} = \sqrt{9} = 3. For P(x=10)P(x=10), the continuity correction adjusts the interval to 9.5<x<10.59.5 < x < 10.5. The z-scores are calculated as z1=9.5−123=−0.83z_1 = \frac{9.5-12}{3} = -0.83 and z2=10.5−123=−0.50z_2 = \frac{10.5-12}{3} = -0.50. The approximate probability is then found using the standard normal table. 99.

6.2 Sampling distributions

Statistical inference aims to draw conclusions about a population based on sample data. Key to this are the concepts of parameters (population characteristics) and statistics (sample characteristics).

  • Parameters vs. Statistics:

    • Parameters: Characteristics of a population (e.g., population mean μ\mu, population variance σ2\sigma^2, population proportion pp). These are typically unknown.
    • Statistics: Characteristics of a sample (e.g., sample mean xˉ\bar{x}, sample variance s2s^2, sample proportion p^\hat{p}). These are used to estimate population parameters.
  • Point Estimate: A single value used to estimate a population parameter. For example, the sample mean xˉ\bar{x} is a point estimate for the population mean μ\mu.

  • Sampling Error: The absolute difference between a sample statistic and its corresponding population parameter (e.g., ∣xˉ−μ∣|\bar{x} - \mu|). This error is generally unknown because the population parameter is unknown.

  • Sampling Distribution: The probability distribution of a sample statistic that arises when repeated samples of a fixed size (nn) are drawn from the same population.

Example: To estimate the average R-score of all Dawson students (μ\mu), we could take a random sample of 10 students and calculate their sample mean (xˉ\bar{x}). If we repeated this process many times, each time obtaining a different sample mean, the distribution of these sample means would be the sampling distribution of the mean. 103.

6.2.1 Properties of the sampling distribution of the sample mean

The sampling distribution of the sample mean (xˉ\bar{x}) possesses predictable properties related to the population parameters.

  • Mean of Sample Means (μxˉ\mu_{\bar{x}}): The mean of all possible sample means is equal to the population mean (μ\mu). μxˉ=μ\mu_{\bar{x}} = \mu

  • Standard Deviation of Sample Means (σxˉ\sigma_{\bar{x}}): The standard deviation of all possible sample means is the population standard deviation (σ\sigma) divided by the square root of the sample size (nn). This is also known as the standard error of the mean. σxˉ=σn\sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}}

  • Standard Error of the Mean: σxˉ\sigma_{\bar{x}} is referred to as the standard error of the mean.

6.2.2 Sampling distribution of xˉ\bar{x} for a normal population

If the population itself is normally distributed (x∼N(μ,σ)x \sim N(\mu, \sigma)), then the sampling distribution of the sample mean (xˉ\bar{x}) will also be normally distributed, regardless of the sample size (nn).

xˉ∼N(μ,σn)\bar{x} \sim N\left(\mu, \frac{\sigma}{\sqrt{n}}\right)

The standardized form of this distribution (z-score) is: z=xˉ−μxˉσxˉ=xˉ−μσnz = \frac{\bar{x} - \mu_{\bar{x}}}{\sigma_{\bar{x}}} = \frac{\bar{x} - \mu}{\frac{\sigma}{\sqrt{n}}}

Example: If the concentration of CO2 in the atmosphere is normally distributed with a mean of 395 ppm (μ=395\mu=395) and a standard deviation of 105 ppm (σ=105\sigma=105), and we take atmospheric samples from 16 regions (n=16n=16), the sampling distribution of the sample mean (xˉ\bar{x}) will be normal with a mean μxˉ=395\mu_{\bar{x}} = 395 and a standard deviation σxˉ=10516=26.25\sigma_{\bar{x}} = \frac{105}{\sqrt{16}} = 26.25. To find the probability that the sample mean concentration is above 410 ppm, we calculate the z-score: z=410−39526.25=0.57z = \frac{410 - 395}{26.25} = 0.57. The probability P(xˉ>410)P(\bar{x} > 410) is then P(z>0.57)P(z > 0.57), which can be found using the standard normal table. 105.

6.3 The Central Limit Theorem (CLT)

The Central Limit Theorem (CLT) is a cornerstone of statistical inference, stating that under certain conditions, the sampling distribution of the sample mean will be approximately normally distributed, even if the population distribution is not normal.

6.3.1 Statement of the Central Limit Theorem

  1. Non-Normal Population with Large Sample Size: If a sample is drawn with replacement from any population with a finite mean (μ\mu) and a finite standard deviation (σ\sigma), and the sample size (nn) is sufficiently large (typically n>30n > 30), then the sampling distribution of the sample means (xˉ\bar{x}) will be approximately normally distributed. The larger the sample size, the better the approximation. If xx is from a non-normal population and n>30n > 30, then xˉ≈N(μ,σn)\bar{x} \approx N\left(\mu, \frac{\sigma}{\sqrt{n}}\right).

  2. Normal Population: If the population itself is normally distributed (x∼N(μ,σ)x \sim N(\mu, \sigma)), then the sampling distribution of the sample means (xˉ\bar{x}) is normally distributed for any sample size nn. If x∼N(μ,σ)x \sim N(\mu, \sigma), then xˉ∼N(μ,σn)\bar{x} \sim N\left(\mu, \frac{\sigma}{\sqrt{n}}\right).

  3. Properties of the Sampling Distribution (Reiterated): The CLT confirms the properties of the sampling distribution of the mean:

    • Mean: μxˉ=μ\mu_{\bar{x}} = \mu
    • Variance: σxˉ2=σ2n\sigma_{\bar{x}}^2 = \frac{\sigma^2}{n}
    • Standard Deviation (Standard Error): σxˉ=σn\sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}}

6.3.2 Application of the CLT

The CLT is crucial when the population standard deviation (σ\sigma) is known, or when the sample size is large enough to assume approximate normality of the sampling distribution.

Example: Consider pine trees with a population mean diameter of 10.5 inches and a standard deviation of 1.45 inches. If we take samples of n=10n=10 and n=30n=30, the CLT suggests that even though the original population might be uniform, the sampling distributions of the means for n=10n=10 and n=30n=30 will start to resemble a normal distribution, becoming more bell-shaped as nn increases. For n=30n=30, the approximation is generally considered good. The standard deviation of the sample means for n=10n=10 would be 1.4510≈0.46\frac{1.45}{\sqrt{10}} \approx 0.46, and for n=30n=30 would be 1.4530≈0.26\frac{1.45}{\sqrt{30}} \approx 0.26. 110.

6.3.3 Non-normal population with unknown σ\sigma

When the population distribution is unknown or non-normal, and the population standard deviation (σ\sigma) is also unknown, the sample standard deviation (ss) can be used as an estimate for σ\sigma, provided the sample size is sufficiently large (n>30n > 30). In such cases, the distribution of xˉ\bar{x} is approximately normal:

xˉ∼N(μ,sn)\bar{x} \sim N\left(\mu, \frac{s}{\sqrt{n}}\right)

Conditions:

  • Population is unknown or non-normal.
  • σ\sigma is unknown.
  • Sample size is large (n>30n > 30).

Example: Suppose we don't know the distribution or standard deviation of IQ scores. A random sample of 50 students (n=50n=50) from Dawson College yields a mean IQ of 105 (xˉ=105\bar{x}=105) and a sample standard deviation of 11 IQ points (s=11s=11). If we assume the population mean IQ is 100 (μ=100\mu=100), we can use the CLT to find the probability that a sample mean IQ is above 110. The sampling distribution of the mean would be approximated as N(100,1150)N\left(100, \frac{11}{\sqrt{50}}\right). We would then calculate the z-score for xˉ=110\bar{x}=110: z=110−10011/50≈3.21z = \frac{110 - 100}{11/\sqrt{50}} \approx 3.21. The probability P(xˉ>110)P(\bar{x} > 110) would then be P(z>3.21)P(z > 3.21), which is very small. 113.

6.4 Confidence intervals for the population mean

While this section primarily focuses on sampling distributions and the CLT, these concepts are the bedrock for understanding confidence intervals, which are introduced in subsequent parts. A confidence interval provides a range of plausible values for a population parameter based on sample data. The width of this interval is directly influenced by the standard error of the mean (which depends on sample size and population variability) and the desired confidence level. A larger sample size leads to a smaller standard error and thus a narrower, more precise confidence interval.

7. Probability distributions and statistical inference (part 4)

This section delves into inferential statistics, focusing on how to estimate population parameters using sample data and construct confidence intervals.

7.1 Introduction to inferential statistics and estimation

Inferential statistics builds upon descriptive statistics and probability distributions to draw conclusions about population parameters. This involves two main types of inferences: estimation of parameters and testing of statistical hypotheses. When estimating a population parameter (e.g., population mean μ\mu), a sample statistic (e.g., sample mean xˉ\bar{x}) is used. Since a single statistic rarely equals the exact parameter value, intervals are often constructed to provide a more meaningful estimate of the parameter's accuracy. A confidence interval (C.I.) is an interval used to estimate a population parameter, with the level of confidence (cc) representing the probability that the interval contains the true parameter. Hypothesis testing, conversely, aims to determine if sample data supports or contradicts conjectures about population parameters.

Example (Cholesterol Content in Eggs): A random sample of 50 eggs yielded a sample mean cholesterol content of 188.6 mg and a sample standard deviation of 14.9 mg. The question arises: what is the true mean cholesterol content (μ\mu) of a medium-sized egg? While we can't state the exact value, 188.6 mg is a point estimate, and we need to assess its accuracy. Confidence intervals help us determine the probability that μ\mu lies within certain ranges.

7.2 Confidence intervals for the population mean μ\mu

A confidence interval for the population mean (μ\mu) is constructed using sample data. The process often relies on the Central Limit Theorem (CLT), which states that for a sample size n>30n > 30, the distribution of sample means (xˉ\bar{x}) is approximately normal with a mean μ\mu and a standard deviation σxˉ=σ/n\sigma_{\bar{x}} = \sigma / \sqrt{n}. This leads to the relationship xˉ∼N(μ,σ/n)\bar{x} \sim N(\mu, \sigma/\sqrt{n}) and z=(xˉ−μ)/(σ/n)∼N(0,1)z = (\bar{x} - \mu) / (\sigma/\sqrt{n}) \sim N(0,1).

The concept of a confidence interval is illustrated by considering an interval that contains 90% of all possible sample means. This interval is defined by μ±zα/2⋅(σ/n)\mu \pm z_{\alpha/2} \cdot (\sigma/\sqrt{n}), where zα/2z_{\alpha/2} is the critical value from the standard normal distribution corresponding to a tail probability of α/2\alpha/2 (for a 1−α1-\alpha confidence level). The term E=zα/2⋅(σ/n)E = z_{\alpha/2} \cdot (\sigma/\sqrt{n}) is known as the margin of error.

For a specific sample with mean xˉ∗\bar{x}^*, a (1−α)×100%(1-\alpha) \times 100\% confidence interval for μ\mu is given by xˉ∗±zα/2⋅(σ/n)\bar{x}^* \pm z_{\alpha/2} \cdot (\sigma/\sqrt{n}). This means there is a (1−α)×100%(1-\alpha) \times 100\% probability that the true population mean μ\mu lies within this calculated interval.

Example (Cholesterol Content in Eggs, continued): Using the sample mean xˉ=188.6\bar{x} = 188.6 mg and estimating σ\sigma with s=14.9s = 14.9 mg, a 90% confidence interval for μ\mu can be constructed. The margin of error is E≈z0.05⋅(s/n)=1.645⋅(14.9/50)≈3.47E \approx z_{0.05} \cdot (s/\sqrt{n}) = 1.645 \cdot (14.9/\sqrt{50}) \approx 3.47 mg. The 90% confidence interval is then (xˉ−E,xˉ+E)=(188.6−3.47,188.6+3.47)=(185.1,192.1)(\bar{x} - E, \bar{x} + E) = (188.6 - 3.47, 188.6 + 3.47) = (185.1, 192.1) mg. This suggests we are 90% confident that the true mean cholesterol content per egg is between 185.1 and 192.1 mg.

7.2.1 Cases for constructing confidence intervals for μ\mu

The construction of a confidence interval for μ\mu depends on whether the population is normally distributed, whether the population standard deviation σ\sigma is known, and the sample size nn.

Here are the common cases:

CasePopulation Distributionσ\sigma KnownSample Size (nn)Confidence Interval FormulaFormula Name
1NormalYesAnyxˉ±zα/2⋅σn\bar{x} \pm z_{\alpha/2} \cdot \frac{\sigma}{\sqrt{n}}Normal Population, σ\sigma Known, Any Sample Size
2Non-NormalYesn>30n > 30xˉ±zα/2⋅σn\bar{x} \pm z_{\alpha/2} \cdot \frac{\sigma}{\sqrt{n}}Non-Normal Population, σ\sigma Known, Large Sample Size
3Non-NormalNon>30n > 30xˉ±zα/2⋅sn\bar{x} \pm z_{\alpha/2} \cdot \frac{s}{\sqrt{n}}Non-Normal Population, σ\sigma Unknown, Large Sample Size
4NormalNon>30n > 30xˉ±zα/2⋅sn\bar{x} \pm z_{\alpha/2} \cdot \frac{s}{\sqrt{n}}Normal Population, σ\sigma Unknown, Large Sample Size
5NormalNon≤30n \le 30xˉ±tα/2,df=n−1⋅sn\bar{x} \pm t_{\alpha/2, df=n-1} \cdot \frac{s}{\sqrt{n}}Normal Population, σ\sigma Unknown, Small Sample Size

Note: For Case 4, while the exact distribution of (xˉ−μ)/(s/n)(\bar{x} - \mu) / (s/\sqrt{n}) is a t-distribution, as nn increases, it approaches the standard normal distribution, making the z-distribution approximation valid for large sample sizes.

Example (Calculus I Exam Scores): The Calculus I final exam scores are normally distributed with σ=12.3%\sigma = 12.3\%. For a sample of n=10n = 10 students with xˉ=72.4%\bar{x} = 72.4\%, construct a 95% confidence interval for μ\mu. Since the population is normal and σ\sigma is known (Case 1): Confidence Interval: 72.4±z0.025⋅12.31072.4 \pm z_{0.025} \cdot \frac{12.3}{\sqrt{10}} Using z0.025=1.96z_{0.025} = 1.96: 72.4±1.96⋅12.310=72.4±7.6272.4 \pm 1.96 \cdot \frac{12.3}{\sqrt{10}} = 72.4 \pm 7.62 The 95% confidence interval is (64.8,80.0)%(64.8, 80.0)\%. The margin of error is E=7.62%E = 7.62\%.

7.2.2 Determining required sample size

The required sample size (nn) can be determined to achieve a desired margin of error (EE) at a specific confidence level (1−α1-\alpha). The formulas vary slightly based on whether σ\sigma is known or unknown.

If σ\sigma is known: E=zα/2⋅σn  ⟹  n=(zα/2⋅σE)2E = z_{\alpha/2} \cdot \frac{\sigma}{\sqrt{n}} \implies n = \left(\frac{z_{\alpha/2} \cdot \sigma}{E}\right)^2

If σ\sigma is unknown, a preliminary estimate of σ\sigma (e.g., from prior studies or a pilot sample) is needed, or ss is used in the calculation.

Example (Sample Size for Calculus I): To estimate μ\mu within 2% with 95% confidence, given σ=12.3%\sigma = 12.3\%: E=2%E = 2\%, z0.025=1.96z_{0.025} = 1.96 n=(1.96⋅12.32)2≈(12.056)2≈145.34n = \left(\frac{1.96 \cdot 12.3}{2}\right)^2 \approx (12.056)^2 \approx 145.34 Thus, a sample size of n=146n = 146 students is required.

Example (Sample Size for Sea Water): To be 95% certain that the sample mean amount of salt is within 2 parts per thousand of the true mean, given σ=6.3\sigma = 6.3 parts per thousand: E=2E = 2, 1−α=0.95  ⟹  α/2=0.025  ⟹  z0.025=1.961-\alpha = 0.95 \implies \alpha/2 = 0.025 \implies z_{0.025} = 1.96 n=(zα/2⋅σE)2=(1.96⋅6.32)2≈(6.174)2≈38.12n = \left(\frac{z_{\alpha/2} \cdot \sigma}{E}\right)^2 = \left(\frac{1.96 \cdot 6.3}{2}\right)^2 \approx (6.174)^2 \approx 38.12 Therefore, a minimum of n=39n = 39 sea water samples are needed.

7.3 Factors affecting the confidence interval

Several factors influence the width of a confidence interval:

  • Level of Confidence: Increasing the level of confidence (e.g., from 90% to 95%) will increase the width of the interval, as a larger interval is needed to be more certain of capturing the true parameter. This is because a higher confidence level requires a larger zα/2z_{\alpha/2} or tα/2t_{\alpha/2} value.
  • Sample Size: Increasing the sample size (nn) decreases the width of the confidence interval. A larger sample provides more information about the population, leading to a more precise estimate. This is evident in the n\sqrt{n} in the denominator of the margin of error formula.
  • Standard Deviation: Increasing the standard deviation (σ\sigma or ss) increases the width of the confidence interval. A larger standard deviation indicates greater variability in the data, making it harder to pinpoint the true population parameter.

Tip: A wider confidence interval indicates less precision in the estimate, while a narrower interval suggests a more precise estimate. The trade-off is typically between the level of confidence and the precision of the estimate.

8. Hypothesis testing and chi-squared distribution (part 1)

This section introduces the fundamental principles of hypothesis testing for population means and proportions, including error types, significance levels, and the use of p-values, alongside the foundational concepts of the chi-squared distribution relevant to goodness-of-fit and contingency table analyses.

8.1 Introduction to hypothesis testing

Hypothesis testing is a statistical process used to determine whether a claim or conjecture about a population parameter is supported by evidence from a random sample. It involves formulating hypotheses, analyzing sample data, and making a decision about the claim.

  • Hypothesis: A statement that something is true.
  • Null Hypothesis (H0H_0): Represents the status quo or current belief and typically contains an equality (==, ≤\leq, or ≥\geq).
  • Alternative Hypothesis (HaH_a or H1H_1): The complement of the null hypothesis, usually representing the claim to be proven, and containing an inequality (<<, >>, or ≠\neq).

8.2 Errors in hypothesis testing

There are two types of errors that can occur during hypothesis testing:

  • Type I Error: Rejecting the null hypothesis (H0H_0) when it is actually true. The probability of a Type I error is denoted by α\alpha (alpha), also known as the level of significance.
  • Type II Error: Failing to reject the null hypothesis (H0H_0) when it is actually false. The probability of a Type II error is denoted by β\beta (beta).

The decision-making process can be summarized as follows:

DecisionH0H_0 is trueH0H_0 is false
Reject H0H_0Type I error (α\alpha)Correct decision
Fail to reject H0H_0Correct decisionType II error (β\beta)

Example (Criminal Trial): In a criminal trial, H0H_0 is "You are not guilty."

  • A Type I error occurs if an innocent person is found guilty.
  • A Type II error occurs if a guilty person is found not guilty.

Example (New Blood Pressure Drug): A pharmaceutical company tests a new drug. H0H_0: "New drug has no effect on blood pressure." HaH_a: "New drug lowers blood pressure."

  • A Type I error (false positive) occurs if the drug is concluded to be effective when it is not.
  • A Type II error (false negative) occurs if the drug is concluded to be not effective when it is.

8.3 Level of significance

The level of significance (α\alpha) is the probability of making a Type I error. Common values for α\alpha are 0.01, 0.05, or 0.10. A smaller α\alpha means it is harder to reject H0H_0, reducing the chance of a Type I error but potentially increasing the chance of a Type II error.

8.4 Hypothesis testing for the population mean (μ\mu) for large samples

When dealing with large sample sizes (n>30n > 30), the Central Limit Theorem ensures that the sampling distribution of the sample mean (xˉ\bar{x}) is approximately normally distributed. If the population standard deviation (σ\sigma) is unknown, the sample standard deviation (ss) is used as an approximation.

  • The sampling distribution of xˉ\bar{x} is approximately N(μ,σ/n)N(\mu, \sigma/\sqrt{n}).
  • If σ\sigma is unknown, it is approximated by ss, so xˉ∼N(μ,s/n)\bar{x} \sim N(\mu, s/\sqrt{n}).
  • The z-score for the sample mean is calculated as: z=xˉ−μs/nz = \frac{\bar{x} - \mu}{s/\sqrt{n}} This z-score approximately follows a standard normal distribution N(0,1)N(0,1).

8.5 The classical approach to hypothesis testing for μ\mu

To test the hypothesis that μ=μ0\mu = \mu_0 at a significance level α\alpha:

  • Null Hypothesis: H0:μ=μ0H_0: \mu = \mu_0
  • Alternative Hypothesis: Ha:μ≠μ0H_a: \mu \neq \mu_0 (for a 2-sided test) or Ha:μ>μ0H_a: \mu > \mu_0 or Ha:μ<μ0H_a: \mu < \mu_0 (for a 1-sided test).

Under H0H_0, we assume μ=μ0\mu = \mu_0. The test statistic is: z∗=xˉ−μ0s/nz^* = \frac{\bar{x} - \mu_0}{s/\sqrt{n}}

The rejection region (or critical region) is determined by α\alpha and the alternative hypothesis.

  • For a 2-sided test (Ha:μ≠μ0H_a: \mu \neq \mu_0), there are two rejection regions, each with an area of α/2\alpha/2. We reject H0H_0 if z∗z^* falls in either of these regions (i.e., z∗<−zα/2z^* < -z_{\alpha/2} or z∗>zα/2z^* > z_{\alpha/2}).
  • For a 1-sided test (Ha:μ>μ0H_a: \mu > \mu_0), the rejection region is in the upper tail with an area of α\alpha. We reject H0H_0 if z∗>zαz^* > z_{\alpha}.
  • For a 1-sided test (Ha:μ<μ0H_a: \mu < \mu_0), the rejection region is in the lower tail with an area of α\alpha. We reject H0H_0 if z∗<−zαz^* < -z_{\alpha}.

Decision Rule: If the calculated test statistic (z∗z^*) falls within the rejection region, we reject H0H_0. Otherwise, we fail to reject H0H_0.

Important: Failing to reject H0H_0 does not mean H0H_0 is true; it simply means there is insufficient evidence to reject it.

Example (Heights of Men): A report states the mean height of Canadian men is 180 cm. A sample of 36 men yields xˉ=183\bar{x} = 183 cm and s=9s = 9 cm. Test at α=0.05\alpha = 0.05. H0:μ=180H_0: \mu = 180 Ha:μ≠180H_a: \mu \neq 180 z∗=183−1809/36=31.5=2.00z^* = \frac{183 - 180}{9/\sqrt{36}} = \frac{3}{1.5} = 2.00 For α=0.05\alpha = 0.05 (2-sided), the critical values are ±1.96\pm 1.96. Since 2.00>1.962.00 > 1.96, z∗z^* is in the rejection region. Inference: Reject H0H_0. The hypothesis that the mean height is 180 cm is not supported.

Example (1-Sided Test - Study Hours): A plant claims students study more than 15 hours per week. A sample of 49 students has xˉ=15.9\bar{x} = 15.9 hours and s=3.5s = 3.5 hours. Test at α=0.05\alpha = 0.05. H0:μ=15H_0: \mu = 15 Ha:μ>15H_a: \mu > 15 z∗=15.9−153.5/49=0.90.5=1.80z^* = \frac{15.9 - 15}{3.5/\sqrt{49}} = \frac{0.9}{0.5} = 1.80 For α=0.05\alpha = 0.05 (1-sided, upper tail), the critical value is z0.05=1.645z_{0.05} = 1.645. Since 1.80>1.6451.80 > 1.645, z∗z^* is in the rejection region. Inference: Reject H0H_0. The claim that students study more than 15 hours is supported.

8.6 The p-value approach to hypothesis testing for μ\mu

The p-value is the probability of obtaining a sample statistic as extreme or more extreme than the one observed, assuming the null hypothesis is true.

Decision Rule based on p-value:

  1. If p-value<αp\text{-value} < \alpha, reject H0H_0.
  2. If p-value>αp\text{-value} > \alpha, fail to reject H0H_0.

Example (p-value): Test H0:μ=70H_0: \mu = 70 vs. Ha:μ<70H_a: \mu < 70 with α=0.05\alpha = 0.05. A sample of n=36n=36 gives xˉ=66\bar{x} = 66 and s=11s = 11. z∗=66−7011/36=−41.833≈−2.18z^* = \frac{66 - 70}{11/\sqrt{36}} = \frac{-4}{1.833} \approx -2.18 p-value=P(z<−2.18)=0.5−P(0≤z<2.18)=0.5−0.4854=0.0146p\text{-value} = P(z < -2.18) = 0.5 - P(0 \leq z < 2.18) = 0.5 - 0.4854 = 0.0146 Since 0.0146<0.050.0146 < 0.05, we reject H0H_0. The claim that the mean grade is less than 70 is supported.

Example (p-value - 2-sided): Test H0:μ=40H_0: \mu = 40 vs. Ha:μ≠40H_a: \mu \neq 40 with α=0.02\alpha = 0.02. A sample of n=100n=100 gives xˉ=43.1\bar{x} = 43.1 and s=15.5s = 15.5. z∗=43.1−4015.5/100=3.11.55=2.00z^* = \frac{43.1 - 40}{15.5/\sqrt{100}} = \frac{3.1}{1.55} = 2.00 For a 2-sided test, p-value=2×P(z>2.00)=2×(0.0228)=0.0456p\text{-value} = 2 \times P(z > 2.00) = 2 \times (0.0228) = 0.0456. Since 0.0456≮0.020.0456 \not< 0.02, we fail to reject H0H_0.

8.7 Introduction to the Chi-Squared Distribution (χ2\chi^2)

The chi-squared (χ2\chi^2) distribution is a continuous probability distribution that is skewed to the right. It is characterized by its degrees of freedom (df), which determine its shape. The χ2\chi^2 distribution arises in several types of statistical tests.

8.8 Chi-Squared Test for Goodness-of-Fit

This test is used to determine if a sample distribution matches a hypothesized population distribution. It compares observed frequencies in different categories to expected frequencies under the null hypothesis.

  • Null Hypothesis (H0H_0): The observed data fits the hypothesized distribution.
  • Alternative Hypothesis (HaH_a): The observed data does not fit the hypothesized distribution.

The test statistic is calculated as: χ2=∑(Oi−Ei)2Ei\chi^2 = \sum \frac{(O_i - E_i)^2}{E_i} where:

  • OiO_i is the observed frequency in category ii.
  • EiE_i is the expected frequency in category ii under H0H_0.

The degrees of freedom for this test are df=k−1df = k - 1, where kk is the number of categories. The test is typically performed using the upper tail of the χ2\chi^2 distribution.

8.9 Chi-Squared Test for Independence and Association (Contingency Tables)

This test is used to determine if there is a statistically significant relationship between two categorical variables. Data is presented in a contingency table where rows represent categories of one variable and columns represent categories of the other.

  • Null Hypothesis (H0H_0): The two variables are independent (no association).
  • Alternative Hypothesis (HaH_a): The two variables are not independent (there is an association).

The expected frequency (EijE_{ij}) for a cell in row ii and column jj is calculated as: Eij=(Row i Total)×(Column j Total)Grand TotalE_{ij} = \frac{(\text{Row } i \text{ Total}) \times (\text{Column } j \text{ Total})}{\text{Grand Total}}

The test statistic is: χ2=∑(Oij−Eij)2Eij\chi^2 = \sum \frac{(O_{ij} - E_{ij})^2}{E_{ij}} where OijO_{ij} is the observed frequency in cell (i,j)(i, j).

The degrees of freedom for a contingency table with rr rows and cc columns are df=(r−1)(c−1)df = (r-1)(c-1). Similar to the goodness-of-fit test, this is typically a right-tailed test.

Note: This section primarily focuses on hypothesis testing for means. The Chi-Squared distribution concepts are foundational for subsequent topics like goodness-of-fit and contingency table analysis, which will be elaborated upon in Part 2.

This section introduces fundamental concepts of hypothesis testing for population means, including the definition of hypotheses, types of errors, and the role of p-values, along with the foundational elements of the Chi-Squared distribution pertinent to goodness-of-fit tests and contingency tables.

8.10 Introduction to hypothesis testing

Hypothesis testing is a statistical method used to make decisions about a population based on sample data. It involves formulating a hypothesis about a population parameter and then using sample evidence to determine if this hypothesis is likely true or false.

8.11 Null and alternative hypotheses

  • Null Hypothesis (H0H_0): This is a statement of no effect or no difference. It represents the status quo or a commonly held belief that we aim to challenge. It is always stated with an equality sign (==).
  • Alternative Hypothesis (HaH_a or H1H_1): This is a statement that contradicts the null hypothesis. It represents what we are trying to find evidence for, suggesting an effect or difference. It can be directional (greater than or less than) or non-directional (not equal to).

Example: If a company claims its product has a certain average lifespan, the null hypothesis would be that the average lifespan is equal to the claimed value, while the alternative hypothesis could be that the average lifespan is greater than, less than, or simply different from the claimed value.

8.12 Types of errors in hypothesis testing

When conducting a hypothesis test, there are two possible types of errors:

  • Type I Error: This occurs when we reject the null hypothesis (H0H_0) when it is actually true. The probability of committing a Type I error is denoted by α\alpha (alpha), which is often referred to as the significance level of the test.
  • Type II Error: This occurs when we fail to reject the null hypothesis (H0H_0) when it is actually false. The probability of committing a Type II error is denoted by β\beta (beta).

Important: The goal of hypothesis testing is to minimize the risk of both types of errors, although there is often a trade-off between them.

8.13 The p-value

The p-value is a crucial concept in hypothesis testing. It quantifies the strength of evidence against the null hypothesis.

  • Definition: The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated from the sample data, assuming that the null hypothesis is true.
  • Decision Rule:
    • If the p-value is less than or equal to the significance level (α\alpha), we reject the null hypothesis. This indicates that the observed data is unlikely to have occurred by random chance if H0H_0 were true.
    • If the p-value is greater than the significance level (α\alpha), we fail to reject the null hypothesis. This suggests that the observed data is consistent with H0H_0.

Note: A small p-value provides strong evidence against the null hypothesis.

8.14 The t-distribution

The t-distribution, also known as Student's t-distribution, is a continuous probability distribution that is particularly useful for hypothesis testing and confidence intervals when dealing with small sample sizes, especially when the population standard deviation is unknown. It was developed by William Gosset.

  • Characteristics:

    • It is symmetric about 0 and has a bell shape, similar to the standard normal distribution.
    • It has heavier tails than the standard normal distribution, meaning it assigns more probability to extreme values. This accounts for the increased uncertainty associated with smaller sample sizes.
    • The shape of the t-distribution is determined by its degrees of freedom (ν\nu). As the degrees of freedom increase, the t-distribution approaches the standard normal distribution.
  • Probability Density Function (PDF): f(t)=Γ(ν+12)Γ(ν2)πν(1+t2ν)−ν+12f(t) = \frac{\Gamma\left(\frac{\nu+1}{2}\right)}{\Gamma\left(\frac{\nu}{2}\right)\sqrt{\pi\nu}} \left(1 + \frac{t^2}{\nu}\right)^{-\frac{\nu+1}{2}} where ν\nu is the degrees of freedom and Γ(α)\Gamma(\alpha) is the gamma function 142.

8.15 Degrees of freedom

The degrees of freedom (ν\nu) represent the number of independent pieces of information available to estimate a parameter. In essence, it's the number of values in the final calculation of a statistic that are free to vary.

Example: If we have a sample of nn observations and we calculate the sample mean, the first n−1n-1 observations can be chosen freely, but the nn-th observation is determined by the sample mean and the other n−1n-1 observations. Therefore, there are n−1n-1 degrees of freedom. For a sample mean xˉ\bar{x} and population mean μ\mu, when σ\sigma is unknown, the statistic xˉ−μs/n\frac{\bar{x}-\mu}{s/\sqrt{n}} follows a t-distribution with n−1n-1 degrees of freedom, where ss is the sample standard deviation.

8.16 Relationship between t-distribution and standard normal distribution

As the number of degrees of freedom (ν\nu) for a t-distribution increases, it closely approximates the standard normal distribution.

  • For large sample sizes (typically n>30n > 30), the t-distribution is very similar to the standard normal distribution, and the z-distribution can be used for convenience.
  • When the degrees of freedom approach infinity (ν→∞\nu \to \infty), the t-distribution becomes identical to the standard normal distribution 143.

Note: The use of the t-distribution is particularly important when sample sizes are small (n≤30n \le 30) and the population standard deviation (σ\sigma) is unknown, as it provides a more accurate estimation of probabilities and confidence intervals compared to the standard normal distribution in such cases.

9. Hypothesis testing and chi-squared distribution (part 2)

This section delves into hypothesis testing for population means using the t-distribution for small samples and the chi-squared distribution for goodness-of-fit tests and analyzing contingency tables.

9.1 Hypothesis testing for population means using the t-distribution

When the population standard deviation (σ\sigma) is unknown and the sample size is small (n<30n < 30), the t-distribution is employed for hypothesis testing about the population mean (μ\mu). This is particularly relevant when the population is assumed to be normally distributed or approximately normal.

The t-distribution

The t-distribution is characterized by its degrees of freedom (dfdf), which are typically n−1n-1 for a single sample mean. As the degrees of freedom increase, the t-distribution closely approximates the standard normal (Z) distribution. For df>30df > 30, the t-distribution is very similar to the Z-distribution, making the Z-test a reasonable approximation. However, for smaller sample sizes (n≤30n \le 30), using the t-distribution is essential for accurate inference.

Confidence intervals for the mean (μ\mu) using the t-distribution

A (1−α)×100%(1-\alpha) \times 100\% confidence interval for the population mean μ\mu when σ\sigma is unknown and the sample is small is given by:

xˉ±tα/2⋅sn\bar{x} \pm t_{\alpha/2} \cdot \frac{s}{\sqrt{n}}

where:

  • xˉ\bar{x} is the sample mean.
  • tα/2t_{\alpha/2} is the critical t-value from the t-distribution with df=n−1df = n-1, which leaves an area of α/2\alpha/2 in the right tail.
  • ss is the sample standard deviation.
  • nn is the sample size.
  • The term E=tα/2⋅snE = t_{\alpha/2} \cdot \frac{s}{\sqrt{n}} represents the margin of error.

Example: To estimate the protein content of nutrition bars, 9 bars were sampled, yielding a sample mean of 8.30 grams and a sample standard deviation of 0.40 grams. For a 90% confidence interval (α=0.10\alpha = 0.10, so α/2=0.05\alpha/2 = 0.05), with df=9−1=8df = 9-1 = 8, the critical t-value t0.05t_{0.05} is 1.860. The 90% confidence interval is 8.30±1.860⋅0.4098.30 \pm 1.860 \cdot \frac{0.40}{\sqrt{9}}, which calculates to 8.30±0.258.30 \pm 0.25 grams, resulting in an interval of 8.05 to 8.55 grams 144.

Hypothesis testing for the mean (μ\mu) using the t-test

The t-test is used to test hypotheses about the population mean μ\mu when σ\sigma is unknown and the sample is small, assuming the population is approximately normal.

The test statistic is calculated as:

t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s/\sqrt{n}}

where μ0\mu_0 is the hypothesized population mean. The degrees of freedom for this test are df=n−1df = n-1.

Example: Air Canada claims that the mean number of passengers on its Montreal to Toronto flights is more than 120. A sample of 16 flights yielded a sample mean of 123.3 passengers and a sample standard deviation of 7.7 passengers. To test this claim at α=0.05\alpha = 0.05, the null hypothesis is H0:μ=120H_0: \mu = 120 and the alternative hypothesis is Ha:μ>120H_a: \mu > 120. The calculated t-statistic is t=123.3−1207.7/16=1.71t = \frac{123.3 - 120}{7.7/\sqrt{16}} = 1.71. With df=16−1=15df = 16-1 = 15, the critical t-value for a one-sided test at α=0.05\alpha = 0.05 is approximately 1.753. Since 1.71≯1.7531.71 \ngtr 1.753, the claim is not supported by the data 145.

9.2 The Chi-Squared distribution

The Chi-Squared (χ2\chi^2) distribution is a continuous probability distribution that arises in statistical inference, particularly in goodness-of-fit tests and tests for independence in contingency tables. It is derived from the sum of squared standard normal random variables.

Multinomial experiment

A multinomial experiment is a generalization of the binomial experiment with more than two possible outcomes for each trial. It has the following characteristics:

  1. It consists of nn identical, independent trials.
  2. Each trial yields one of kk possible results (k≥3k \ge 3).
  3. The probability pip_i of each possible result is constant across trials, and the sum of these probabilities equals 1 (∑i=1kpi=1\sum_{i=1}^{k} p_i = 1).

The probability of observing OiO_i results of each type in nn trials is given by the multinomial probability formula:

P(O1,O2,…,Ok)=n!O1!O2!…Ok!p1O1p2O2…pkOkP(O_1, O_2, \dots, O_k) = \frac{n!}{O_1! O_2! \dots O_k!} p_1^{O_1} p_2^{O_2} \dots p_k^{O_k}

The expected number of results of type ii is Ei=npiE_i = np_i.

Example: A coach claims that probabilities of winning, losing, or drawing are 0.70, 0.20, and 0.10, respectively. For a 32-game schedule, the probability of 20 wins, 7 losses, and 5 draws is calculated using the multinomial formula: P(20,7,5)=32!20!7!5!(0.70)20(0.20)7(0.10)5≈0.01826P(20, 7, 5) = \frac{32!}{20! 7! 5!} (0.70)^{20} (0.20)^7 (0.10)^5 \approx 0.01826 150.

9.3 Chi-Squared goodness-of-fit test

The Chi-Squared Goodness-of-Fit test is used to determine whether an observed frequency distribution fits a particular theoretical distribution.

The Chi-Squared test statistic

For a multinomial experiment with nn trials and kk possible results, where the observed frequencies are OiO_i and the expected frequencies are Ei=npiE_i = np_i, the Chi-Squared goodness-of-fit test statistic is:

χo2=∑i=1k(Oi−Ei)2Ei\chi^2_o = \sum_{i=1}^{k} \frac{(O_i - E_i)^2}{E_i}

This statistic follows a Chi-Squared distribution with df=k−1df = k-1 degrees of freedom. A critical assumption for this test is that all expected frequencies EiE_i should be at least 5. The test is inherently two-tailed, but the entire rejection region is placed in the right tail because χo2\chi^2_o is always non-negative and large values indicate a poor fit.

Example: To assess if digits from a random number table are truly random, 150 digits were observed. If the table is random, each digit (0-9) should appear with a probability of 0.1. Thus, the expected frequency for each digit is Ei=150×0.1=15E_i = 150 \times 0.1 = 15. The observed frequencies are given. The Chi-Squared statistic is calculated by summing (Oi−15)215\frac{(O_i - 15)^2}{15} for all digits. If the calculated χo2\chi^2_o is less than the critical value from the Chi-Squared distribution with df=10−1=9df = 10-1 = 9 at α=0.05\alpha = 0.05 (which is approximately 16.919), we conclude that the table is indeed random 151.

9.4 Contingency tables and the Chi-Squared distribution

Contingency tables, also known as two-way frequency tables, are used to display the frequencies of categorical data across at least two rows and two columns. These tables are utilized in two primary hypothesis testing scenarios:

  1. Test of Independence: To determine if two categorical variables are independent of each other.
  2. Test of Homogeneity: To test if different populations have the same proportions for a specific characteristic.

The Chi-Squared test for independence (and homogeneity)

Consider an r×cr \times c contingency table with rr rows and cc columns. The observed frequency in the cell at the intersection of row ii and column jj is denoted as OijO_{ij}. The row totals are rir_i, column totals are cjc_j, and the overall total is nn.

The expected frequency EijE_{ij} for the cell (i,j)(i, j) is calculated under the assumption of independence (or homogeneity) as:

Eij=ri×cjnE_{ij} = \frac{r_i \times c_j}{n}

The Chi-Squared test statistic for independence is:

χo2=∑i=1r∑j=1c(Oij−Eij)2Eij\chi^2_o = \sum_{i=1}^{r} \sum_{j=1}^{c} \frac{(O_{ij} - E_{ij})^2}{E_{ij}}

This statistic follows a Chi-Squared distribution with df=(r−1)×(c−1)df = (r-1) \times (c-1) degrees of freedom. Similar to the goodness-of-fit test, all expected frequencies EijE_{ij} should be at least 5, and the rejection region is in the right tail.

Example: An opinion poll of 200 people about a new law was conducted, cross-tabulated by gender and opinion (For, Against, Undecided). To test if opinions are independent of gender, the null hypothesis is H0H_0: Opinions are independent of gender, and the alternative is HaH_a: Opinions are not independent of gender. The expected frequencies are calculated using Eij=ri×cjnE_{ij} = \frac{r_i \times c_j}{n}. For instance, the expected frequency for males who are "For" the law is E11=100×110200=55E_{11} = \frac{100 \times 110}{200} = 55. The Chi-Squared statistic is computed by summing (Oij−Eij)2Eij\frac{(O_{ij} - E_{ij})^2}{E_{ij}} over all cells. With df=(2−1)×(3−1)=2df = (2-1) \times (3-1) = 2, if the calculated χo2\chi^2_o is less than the critical value at α=0.05\alpha = 0.05 (approximately 5.991), we conclude that opinions are independent of gender 157.

10. Appendices and formula sheets

This section comprises supplementary materials designed to aid in statistical analysis, including various probability distribution tables and a comprehensive formula sheet, alongside practical Excel function mappings.

10.1 Statistical tables

The appendices provide essential tables for common probability distributions, facilitating the lookup of critical values and probabilities required for hypothesis testing and statistical inference.

  • Table A: Random Numbers: This table contains sequences of random digits, useful for methods such as random sampling or simulation 165.

  • Table B: Binomial Cumulative Distribution: This table lists cumulative probabilities for the binomial distribution. For given values of nn (number of trials) and pp (probability of success), it provides P(X≤x)P(X \le x), the probability of observing xx or fewer successes. It is structured to provide probabilities for various nn and pp values, with some portions requiring the use of symmetry (e.g., P(X≤x;p)=P(Y≥n−x;1−p)P(X \le x; p) = P(Y \ge n-x; 1-p) where YY is a binomial variable with nn trials and probability 1−p1-p).

    Note: The binomial cumulative distribution table can be used to find the probability of kk successes in nn trials for a given probability pp, where P(X=k)=P(X≤k)−P(X≤k−1)P(X=k) = P(X \le k) - P(X \le k-1). For probabilities with p>0.5p > 0.5, one can use the symmetry property: P(X≤x;n,p)=P(Y≥n−x;n,1−p)=1−P(Y≤n−x−1;n,1−p)P(X \le x; n, p) = P(Y \ge n-x; n, 1-p) = 1 - P(Y \le n-x-1; n, 1-p) 170 171.

  • Table C: Standard Normal Distribution: This table provides the cumulative probability P(Z≤z)P(Z \le z) for a standard normal distribution (mean μ=0\mu = 0, standard deviation σ=1\sigma = 1) for values of zz from 0.00.0 to 3.43.4. The values represent the area under the standard normal curve to the left of a given zz-score.

    Tip: For negative zz-scores, one can use the symmetry of the normal distribution: P(Z≤−z)=P(Z≥z)=1−P(Z≤z)P(Z \le -z) = P(Z \ge z) = 1 - P(Z \le z) 172.

  • Table D: Student t Distribution: This table provides critical values for the Student's tt-distribution. It is indexed by degrees of freedom (ν\nu or dfdf) and the area in one tail (α\alpha). These values are used for confidence intervals and hypothesis testing when the population standard deviation is unknown and the sample size is small.

    Important: The table can be used for both one-tailed and two-tailed tests. For a two-tailed test with significance level α\alpha, one looks up the value corresponding to α/2\alpha/2 in the appropriate tail area column 173.

  • Table F: Chi-Square Distribution: This table provides critical values for the chi-square (χ2\chi^2) distribution. It is indexed by degrees of freedom (dfdf) and the area in the right tail (α\alpha). These values are crucial for chi-square tests, such as goodness-of-fit and tests for independence 174.

10.2 Formula sheet

The formula sheet consolidates essential statistical formulas, categorized for ease of reference, covering descriptive statistics, linear regression, probability, confidence intervals, and test statistics.

10.2.1 Descriptive Statistics

  • Sample Mean (xˉ\bar{x}): xˉ=∑xn\bar{x} = \frac{\sum x}{n} For grouped data: xˉ=∑(x⋅f)n\bar{x} = \frac{\sum (x \cdot f)}{n}

  • Population Mean (μ\mu): μ=∑xN\mu = \frac{\sum x}{N}

  • Weighted Mean (xˉw\bar{x}_w): xˉw=∑(x⋅w)∑w\bar{x}_w = \frac{\sum (x \cdot w)}{\sum w}

  • Range: Range=Maximum−Minimum\text{Range} = \text{Maximum} - \text{Minimum}

  • Sample Variance (s2s^2): s2=∑(x−xˉ)2n−1s^2 = \frac{\sum(x - \bar{x})^2}{n-1} Computational formula: s2=∑x2−(∑x)2nn−1s^2 = \frac{\sum x^2 - \frac{(\sum x)^2}{n}}{n-1} For grouped data: s2=∑(x−xˉ)2⋅fn−1=∑(x2⋅f)−(∑x⋅f)2nn−1s^2 = \frac{\sum(x - \bar{x})^2 \cdot f}{n-1} = \frac{\sum (x^2 \cdot f) - \frac{(\sum x \cdot f)^2}{n}}{n-1}

  • Population Variance (σ2\sigma^2): σ2=∑(x−μ)2N\sigma^2 = \frac{\sum(x - \mu)^2}{N}

  • Empirical Rule: Approximately 68%, 95%, and 99.7% of data fall within 1, 2, and 3 standard deviations of the mean, respectively, for bell-shaped distributions 175.

10.2.2 Linear Regression and Correlation

  • Sum of Squares: SSx=∑(x−xˉ)2=∑x2−(∑x)2nSS_x = \sum(x - \bar{x})^2 = \sum x^2 - \frac{(\sum x)^2}{n} SSy=∑(y−yˉ)2=∑y2−(∑y)2nSS_y = \sum(y - \bar{y})^2 = \sum y^2 - \frac{(\sum y)^2}{n} SSxy=∑(x−xˉ)(y−yˉ)=∑(xy)−(∑x)(∑y)nSS_{xy} = \sum(x - \bar{x})(y - \bar{y}) = \sum(xy) - \frac{(\sum x)(\sum y)}{n}

  • Least Squares Line: y^=β^0+β^1x\hat{y} = \hat{\beta}_0 + \hat{\beta}_1 x Where: β^1=SSxySSx\hat{\beta}_1 = \frac{SS_{xy}}{SS_x} β^0=yˉ−β^1xˉ\hat{\beta}_0 = \bar{y} - \hat{\beta}_1 \bar{x}

  • Correlation Coefficient (rr): r=SSxySSxSSyr = \frac{SS_{xy}}{\sqrt{SS_x SS_y}}

10.2.3 Normal Distribution

  • Standard Score (z-score): z=x−μσorz=x−xˉsz = \frac{x - \mu}{\sigma} \quad \text{or} \quad z = \frac{x - \bar{x}}{s}

10.2.4 Confidence Intervals (One Population)

  • For the Mean (μ\mu): xˉ±E\bar{x} \pm E Where EE is the margin of error: E=zα/2σn(if σ is known)E = z_{\alpha/2} \frac{\sigma}{\sqrt{n}} \quad (\text{if } \sigma \text{ is known}) E=zα/2sn(for large samples, σ unknown)E = z_{\alpha/2} \frac{s}{\sqrt{n}} \quad (\text{for large samples, } \sigma \text{ unknown}) E=tα/2sn(for small samples, σ unknown, df=n−1)E = t_{\alpha/2} \frac{s}{\sqrt{n}} \quad (\text{for small samples, } \sigma \text{ unknown, } df = n-1)

  • For a Proportion (pp): p^±E\hat{p} \pm E Where EE is the margin of error: E=zα/2p^q^nE = z_{\alpha/2} \sqrt{\frac{\hat{p}\hat{q}}{n}}

10.2.5 Probability

  • Permutations (nPrnPr): nPr=n!(n−r)!_nP_r = \frac{n!}{(n-r)!}

  • Permutations with Repeated Objects: n!n1!n2!⋯nk!\frac{n!}{n_1! n_2! \cdots n_k!}

  • Combinations (nCrnCr): nCr=n!r!(n−r)!_nC_r = \frac{n!}{r!(n-r)!}

  • Empirical Probability: P(E)=Number of outcomes in event ETotal number of outcomesP(E) = \frac{\text{Number of outcomes in event } E}{\text{Total number of outcomes}}

  • Theoretical Probability: P(E)=Number of outcomes in event ENumber of outcomes in sample spaceP(E) = \frac{\text{Number of outcomes in event } E}{\text{Number of outcomes in sample space}}

  • Complement Rule: P(Ec)=1−P(E)P(E^c) = 1 - P(E)

  • Addition Rule: P(E∪F)=P(E)+P(F)−P(E∩F)P(E \cup F) = P(E) + P(F) - P(E \cap F) For mutually exclusive events: P(E∪F)=P(E)+P(F)P(E \cup F) = P(E) + P(F).

  • Multiplication Rule: For independent events: P(E∩F)=P(E)⋅P(F)P(E \cap F) = P(E) \cdot P(F). For dependent events: P(E∩F)=P(E)⋅P(F∣E)P(E \cap F) = P(E) \cdot P(F|E).

10.2.6 Discrete Probability Distributions

  • Mean (μ\mu): μ=E(x)=∑x⋅P(x)\mu = E(x) = \sum x \cdot P(x)

  • Variance (σ2\sigma^2): σ2=E[(x−μ)2=∑(x−μ)2P(x)\sigma^2 = E[(x - \mu)^2 = \sum (x - \mu)^2 P(x) σ2=E[x2−μ2\sigma^2 = E[x^2 - \mu^2

10.2.7 Binomial Distribution

  • Probability Mass Function P(x)P(x): P(x)=(nx)pxqn−xfor x=0,1,2,…,nP(x) = \binom{n}{x} p^x q^{n-x} \quad \text{for } x = 0, 1, 2, \ldots, n where q=1−pq = 1-p.

  • Mean (μ\mu) and Variance (σ2\sigma^2): μ=np\mu = np σ2=npq\sigma^2 = npq

10.2.8 Central Limit Theorem

  • Mean of Sample Means (μxˉ\mu_{\bar{x}}): μxˉ=μ\mu_{\bar{x}} = \mu

  • Standard Error (σxˉ\sigma_{\bar{x}}): σxˉ=σn\sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}}

10.2.9 Sample Size Determination

  • For Proportions (using 0.250.25 for p^q^\hat{p}\hat{q}): n=(zα/2E)2⋅0.25n = \left( \frac{z_{\alpha/2}}{E} \right)^2 \cdot 0.25

  • For Proportions (using known p^\hat{p} and q^\hat{q}): n=(zα/2E)2⋅p^q^n = \left( \frac{z_{\alpha/2}}{E} \right)^2 \cdot \hat{p}\hat{q}

  • For Means: n=(zα/2⋅σE)2n = \left( \frac{z_{\alpha/2} \cdot \sigma}{E} \right)^2

10.2.10 Test Statistics (One Population)

  • For the Mean (μ\mu): z=xˉ−μσ/n(σ known)z = \frac{\bar{x} - \mu}{\sigma/\sqrt{n}} \quad (\sigma \text{ known}) z=xˉ−μs/n(large sample, σ unknown)z = \frac{\bar{x} - \mu}{s/\sqrt{n}} \quad (\text{large sample, } \sigma \text{ unknown}) t=xˉ−μs/n(small sample, σ unknown, df=n−1)t = \frac{\bar{x} - \mu}{s/\sqrt{n}} \quad (\text{small sample, } \sigma \text{ unknown, } df = n-1)

  • For a Proportion (pp): z=p^−ppqnz = \frac{\hat{p} - p}{\sqrt{\frac{pq}{n}}}

10.2.11 Chi-Square Distribution

  • General Formula: χ2=∑(O−E)2E\chi^2 = \sum \frac{(O - E)^2}{E}

  • Goodness of Fit Test: Degrees of freedom d.f.=k−1d.f. = k-1, where kk is the number of categories. Expected frequency: E=n⋅pE = n \cdot p.

  • Test for Independence: Degrees of freedom: d.f.=(r−1)(c−1)d.f. = (r-1)(c-1), where rr is the number of rows and cc is the number of columns. Expected frequency: Ei,j=Ri⋅CjnE_{i,j} = \frac{R_i \cdot C_j}{n}, where RiR_i is the row total and CjC_j is the column total.

10.2.12 Bayes' Rule

  • General Form: P(A∣B)=P(B∣A)P(A)P(B)P(A|B) = \frac{P(B|A) P(A)}{P(B)} For multiple events A1,A2,…,AnA_1, A_2, \ldots, A_n: P(Ai∣B)=P(B∣Ai)P(Ai)∑j=1nP(B∣Aj)P(Aj)P(A_i|B) = \frac{P(B|A_i) P(A_i)}{\sum_{j=1}^{n} P(B|A_j) P(A_j)}

10.3 Basic Excel functions

This section provides a mapping of common statistical calculations to their corresponding Excel functions, facilitating practical data analysis.

  • Descriptive Statistics Functions:

    • Average: =AVERAGE(range)
    • Maximum: =MAX(range)
    • Minimum: =MIN(range)
    • Count: =COUNT(range)
    • Standard Deviation (Population): =STDEV.P(range)
    • Standard Deviation (Sample): =STDEV.S(range)
    • Quartiles: =QUARTILE.EXC(range, quartile_number) (where quartile_number is 1, 2, or 3)
  • Distribution Functions:

    DistributionExcel FunctionParametersComment
    BinomialBINOM.DIST(x, n, p, cumulative)xx: number of successes, nn: number of trials, pp: probability of success, cumulative: TRUE for cumulative probability, FALSE for probability mass function.Calculates binomial probabilities. cumulative=0 gives density, cumulative=1 gives cumulative value.
    Standard NormalNORM.S.DIST(z, cumulative)zz: z-score, cumulative: TRUE for cumulative, FALSE for density.For the standard normal distribution N(0,1)N(0,1). cumulative=1 gives P(Z<z)P(Z<z). NORM.S.INV(probability) returns the z-value.
    NormalNORM.DIST(x, mean, standard_dev, cumulative)xx: value, mean: distribution mean, standard_dev: distribution standard deviation, cumulative: TRUE for cumulative, FALSE for density.For a general normal distribution N(μ,σ)N(\mu, \sigma). cumulative=1 gives P(X<x)P(X<x). NORM.INV(probability, mean, standard_dev) returns the x-value.
    Student's tT.DIST(t, degrees_freedom, cumulative)tt: t-value, degrees_freedom: df, cumulative: TRUE for cumulative, FALSE for density.For the Student's t-distribution. cumulative=1 gives P(t<t-value)P(t < \text{t-value}). T.INV(probability, degrees_freedom) returns the t-value.

Remember: Excel functions provide a powerful tool for statistical calculations, often more efficient than manual lookups in tables 177 178.

Common mistakes to avoid

  • Review all topics thoroughly before exams
  • Pay attention to formulas and key definitions
  • Practice with examples provided in each section
  • Don't memorize without understanding the underlying concepts

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also