MATH 130 Introduction to Statistics

📚 MATH_130___Introduction_to_Statistics (3) (1).pdf

Brief overview

This document introduces fundamental statistical concepts essential for data analysis. It covers discrete and continuous probability distributions, confidence intervals, and hypothesis testing, providing the tools to interpret and make inferences from data.

Key points

  • Overview of discrete probability distributions, including means and standard deviations.
  • Application of binomial and Poisson distributions for specific event scenarios.
  • Using the normal distribution for continuous data probabilities and values.
  • Constructing confidence intervals for population means with known standard deviation.
  • Performing hypothesis testing for population means when variance is known.

1. Discrete probability distributions

1.1 Understanding discrete distributions

Discrete probability distributions describe the probabilities of outcomes for a random variable that can only take on a finite number of values or a countably infinite number of values. These values are typically counts, such as the number of items sold or the number of typos.

A distribution is valid if:

  • Each probability P(x)P(x) is between 0 and 1.
  • The sum of all probabilities ∑P(x)\sum P(x) equals 1.

📝 Example: A bakery sells cakes. XX is the number of cakes sold daily. Possible values for XX are 0, 1, 2, 3, 4.

The expected value (mean) of a discrete random variable XX is calculated as μX=∑[x⋅P(x)]\mu_X = \sum [x \cdot P(x)]. This represents the average outcome over many trials.

The variance, σX2\sigma_X^2, measures the spread of the distribution. It is calculated as σX2=∑[(x−μX)2⋅P(x)]\sigma_X^2 = \sum [(x - \mu_X)^2 \cdot P(x)] or more simply as σX2=∑[x2⋅P(x)]−μX2\sigma_X^2 = \sum [x^2 \cdot P(x)] - \mu_X^2.

The standard deviation, σX\sigma_X, is the square root of the variance (σX=σX2\sigma_X = \sqrt{\sigma_X^2}).

1.2 Calculating probabilities and statistics

For a discrete random variable XX, probabilities for ranges of values are found by summing the individual probabilities. For example, P(X≥k)P(X \ge k) is the sum of probabilities for all values of XX equal to or greater than kk.

Similarly, P(X<k)P(X < k) is the sum of probabilities for all values of XX less than kk.

🔑 Important: When calculating probabilities for continuous ranges like P(a≤X≤b)P(a \le X \le b), remember to include probabilities for both endpoints if the inequality is non-strict.

Let's look at calculating these values for common examples.

1.2.1 Bakery sales example

A bakery tracks daily cake sales, XX. The distribution is:

xx (cakes sold)P(x)P(x)
00.05
10.20
20.35
30.25
40.15
  • Verify validity:
  • All P(x)P(x) are between 0 and 1.
  • Sum of probabilities: 0.05+0.20+0.35+0.25+0.15=1.000.05 + 0.20 + 0.35 + 0.25 + 0.15 = 1.00. This is a valid distribution.
  • Find P(X≥2)P(X \ge 2): This is the probability of selling 2, 3, or 4 cakes. P(X≥2)=P+P+P=0.35+0.25+0.15=0.75P(X \ge 2) = P + P + P = 0.35 + 0.25 + 0.15 = 0.75.
  • Compute mean μX\mu_X: μX=(0×0.05)+(1×0.20)+(2×0.35)+(3×0.25)+(4×0.15)\mu_X = (0 \times 0.05) + (1 \times 0.20) + (2 \times 0.35) + (3 \times 0.25) + (4 \times 0.15) μX=0+0.20+0.70+0.75+0.60=2.25\mu_X = 0 + 0.20 + 0.70 + 0.75 + 0.60 = 2.25 cakes.
  • Compute standard deviation σX\sigma_X: First, calculate the variance σX2\sigma_X^2: σX2=∑[x2⋅P(x)]−μX2\sigma_X^2 = \sum [x^2 \cdot P(x)] - \mu_X^2 σX2=[(02×0.05)+(12×0.20)+(22×0.35)+(32×0.25)+(42×0.15)]−(2.25)2\sigma_X^2 = [(0^2 \times 0.05) + (1^2 \times 0.20) + (2^2 \times 0.35) + (3^2 \times 0.25) + (4^2 \times 0.15)] - (2.25)^2 σX2=[0+0.20+1.40+2.25+2.40−5.0625\sigma_X^2 = [0 + 0.20 + 1.40 + 2.25 + 2.40 - 5.0625 σX2=6.25−5.0625=1.1875\sigma_X^2 = 6.25 - 5.0625 = 1.1875 σX=1.1875≈1.09\sigma_X = \sqrt{1.1875} \approx 1.09 cakes.
  • Break-even analysis: The bakery needs to sell at least 2.5 cakes per day on average. The mean is 2.25 cakes. Since 2.25<2.52.25 < 2.5, the bakery is not breaking even.

1.2.2 Manuscript typos example

The number of typos per page, XX, in a manuscript follows this distribution:

xx (typos)P(x)P(x)
00.40
10.30
20.15
30.08
40.05
50.02
  • Probability of no typos: P(X=0)=0.40P(X=0) = 0.40.
  • Find P(X<3)P(X < 3): This is the probability of 0, 1, or 2 typos. P(X<3)=P+P+P=0.40+0.30+0.15=0.85P(X < 3) = P + P + P = 0.40 + 0.30 + 0.15 = 0.85 .
  • Compute mean μX\mu_X: μX=(0×0.40)+(1×0.30)+(2×0.15)+(3×0.08)+(4×0.05)+(5×0.02)\mu_X = (0 \times 0.40) + (1 \times 0.30) + (2 \times 0.15) + (3 \times 0.08) + (4 \times 0.05) + (5 \times 0.02) μX=0+0.30+0.30+0.24+0.20+0.10=1.14\mu_X = 0 + 0.30 + 0.30 + 0.24 + 0.20 + 0.10 = 1.14 typos per page.
  • Compute variance σX2\sigma_X^2 and standard deviation σX\sigma_X: σX2=∑[x2⋅P(x)]−μX2\sigma_X^2 = \sum [x^2 \cdot P(x)] - \mu_X^2 σX2=[(02×0.40)+(12×0.30)+(22×0.15)+(32×0.08)+(42×0.05)+(52×0.02)]−(1.14)2\sigma_X^2 = [(0^2 \times 0.40) + (1^2 \times 0.30) + (2^2 \times 0.15) + (3^2 \times 0.08) + (4^2 \times 0.05) + (5^2 \times 0.02)] - (1.14)^2 σX2=[0+0.30+0.60+0.72+0.80+0.50−1.2996\sigma_X^2 = [0 + 0.30 + 0.60 + 0.72 + 0.80 + 0.50 - 1.2996 σX2=2.92−1.2996=1.6204\sigma_X^2 = 2.92 - 1.2996 = 1.6204 σX=1.6204≈1.27\sigma_X = \sqrt{1.6204} \approx 1.27 typos per page.
  • Publisher standard: The publisher requires fewer than 1.5 typos per page on average. The manuscript has an average of 1.14 typos per page. Since 1.14<1.51.14 < 1.5, the manuscript meets the standard.

1.2.3 SUV example

A parking lot counts SUVs, XX, among the next 5 cars. The distribution is:

xx (SUVs)P(x)P(x)
00.10
10.25
20.30
30.20
40.10
50.05
  • Find P(1≤X≤3)P(1 \le X \le 3): This is the probability of 1, 2, or 3 SUVs. P(1≤X≤3)=P+P+P=0.25+0.30+0.20=0.75P(1 \le X \le 3) = P + P + P = 0.25 + 0.30 + 0.20 = 0.75 13.
  • Compute μX\mu_X and σX\sigma_X: μX=(0×0.10)+(1×0.25)+(2×0.30)+(3×0.20)+(4×0.10)+(5×0.05)\mu_X = (0 \times 0.10) + (1 \times 0.25) + (2 \times 0.30) + (3 \times 0.20) + (4 \times 0.10) + (5 \times 0.05) μX=0+0.25+0.60+0.60+0.40+0.25=2.10\mu_X = 0 + 0.25 + 0.60 + 0.60 + 0.40 + 0.25 = 2.10 SUVs. σX2=[(02×0.10)+(12×0.25)+(22×0.30)+(32×0.20)+(42×0.10)+(52×0.05)]−(2.10)2\sigma_X^2 = [(0^2 \times 0.10) + (1^2 \times 0.25) + (2^2 \times 0.30) + (3^2 \times 0.20) + (4^2 \times 0.10) + (5^2 \times 0.05)] - (2.10)^2 σX2=[0+0.25+1.20+1.80+1.60+1.25−4.41\sigma_X^2 = [0 + 0.25 + 1.20 + 1.80 + 1.60 + 1.25 - 4.41 σX2=6.10−4.41=1.69\sigma_X^2 = 6.10 - 4.41 = 1.69 σX=1.69=1.30\sigma_X = \sqrt{1.69} = 1.30 SUVs.
  • Find P(X>μX)P(X > \mu_X): This is P(X>2.10)P(X > 2.10), which means P(X=3)+P(X=4)+P(X=5)P(X=3) + P(X=4) + P(X=5). P(X>2.10)=0.20+0.10+0.05=0.35P(X > 2.10) = 0.20 + 0.10 + 0.05 = 0.35.

1.2.4 Household pets example

The number of pets, XX, owned by a household follows this distribution:

xx (pets)P(x)P(x)
00.45
10.30
20.18
30.07
  • Probability of at least one pet: P(X≥1)=1−P(X=0)=1−0.45=0.55P(X \ge 1) = 1 - P(X=0) = 1 - 0.45 = 0.55.
  • Compute μX\mu_X and σX\sigma_X: μX=(0×0.45)+(1×0.30)+(2×0.18)+(3×0.07)\mu_X = (0 \times 0.45) + (1 \times 0.30) + (2 \times 0.18) + (3 \times 0.07) μX=0+0.30+0.36+0.21=0.87\mu_X = 0 + 0.30 + 0.36 + 0.21 = 0.87 pets. σX2=[(02×0.45)+(12×0.30)+(22×0.18)+(32×0.07)]−(0.87)2\sigma_X^2 = [(0^2 \times 0.45) + (1^2 \times 0.30) + (2^2 \times 0.18) + (3^2 \times 0.07)] - (0.87)^2 σX2=[0+0.30+0.72+0.63−0.7569\sigma_X^2 = [0 + 0.30 + 0.72 + 0.63 - 0.7569 σX2=1.65−0.7569=0.8931\sigma_X^2 = 1.65 - 0.7569 = 0.8931 σX=0.8931≈0.94\sigma_X = \sqrt{0.8931} \approx 0.94 pets.
  • Goal met? The city program aims for an average of at least 1 pet per household. The current average is 0.87 pets. Since 0.87<10.87 < 1, the goal has not been met 2.

🔑 Important: Discrete distributions are ideal for modeling counts of events or items. Always verify validity and then calculate mean and standard deviation to understand the central tendency and spread.

🔑 Important: The sum of probabilities for a valid discrete distribution must always be 1. This is a fundamental check.

2. Binomial and Poisson distributions

2.1 Binomial distribution

The binomial distribution models a fixed number of independent trials, each with two possible outcomes (success or failure). The probability of success remains constant for each trial.

The binomial distribution is like flipping a coin multiple times. You know how many flips you'll do (n) and the chance of heads (p).

Key characteristics of a binomial experiment:

  • Fixed number of trials, denoted by nn.
  • Each trial is independent of others.
  • Two possible outcomes per trial: success or failure.
  • The probability of success, pp, is constant for each trial.

The probability mass function (PMF) for a binomial distribution is: P(X=x)=(nx)px(1−p)n−xP(X = x) = \binom{n}{x} p^x (1-p)^{n-x} where:

  • XX is the random variable representing the number of successes.
  • xx is the specific number of successes.
  • (nx)=n!x!(n−x)!\binom{n}{x} = \frac{n!}{x!(n-x)!} is the binomial coefficient.

The mean (expected value) and standard deviation of a binomial distribution are:

  • Mean: E(X)=μ=npE(X) = \mu = np
  • Standard Deviation: σ=np(1−p)\sigma = \sqrt{np(1-p)}
Scenarionn (Trials)pp (Success Prob.)P(X=x)P(X=x) FormulaE(X)E(X)σ\sigma
Voter support150.60(15x)(0.6)x(0.4)15−x\binom{15}{x} (0.6)^x (0.4)^{15-x}15×0.6=915 \times 0.6 = 915×0.6×0.4\sqrt{15 \times 0.6 \times 0.4}
Defective items200.05(20x)(0.05)x(0.95)20−x\binom{20}{x} (0.05)^x (0.95)^{20-x}20×0.05=120 \times 0.05 = 120×0.05×0.95\sqrt{20 \times 0.05 \times 0.95}
Multiple-choice guesses100.25(10x)(0.25)x(0.75)10−x\binom{10}{x} (0.25)^x (0.75)^{10-x}10×0.25=2.510 \times 0.25 = 2.510×0.25×0.75\sqrt{10 \times 0.25 \times 0.75}
Free-throw success100.80(10x)(0.8)x(0.2)10−x\binom{10}{x} (0.8)^x (0.2)^{10-x}10×0.8=810 \times 0.8 = 810×0.8×0.2\sqrt{10 \times 0.8 \times 0.2}

2.2 Poisson distribution

The Poisson distribution models the number of events occurring within a fixed interval of time or space. It's used when events happen independently at a constant average rate.

Think of the Poisson distribution like counting cars passing a specific point on a highway in one hour. You know the average rate, but the exact number varies.

Key characteristics of a Poisson process:

  • Events occur randomly and independently.
  • The average rate of events (λ\lambda) is constant over the interval.
  • The probability of an event occurring is proportional to the length of the interval.

The probability mass function (PMF) for a Poisson distribution is: P(X=x)=e−λλxx!P(X = x) = \frac{e^{-\lambda} \lambda^x}{x!} where:

  • XX is the random variable representing the number of events.
  • xx is the specific number of events.
  • λ\lambda is the average rate of events in the given interval.
  • ee is the base of the natural logarithm (approximately 2.71828).

For a Poisson distribution, the mean and variance are equal:

  • Mean: E(X)=μ=λE(X) = \mu = \lambda
  • Variance: Var(X)=σ2=λVar(X) = \sigma^2 = \lambda
  • Standard Deviation: σ=λ\sigma = \sqrt{\lambda}

When the interval changes, λ\lambda must be adjusted proportionally. For example, if the average rate is λ\lambda per hour, the average rate for a 2-minute interval would be calculated based on the number of minutes.

ScenarioIntervalAverage Rate (λ\lambda) CalculationExample λ\lambda for IntervalP(X=x)P(X=x) FormulaE(X)E(X)σ\sigma
Emergency room arrivals1 hourGiven6e−66xx!\frac{e^{-6} 6^x}{x!}66\sqrt{6}
Call center1 minuteGiven3.5e−3.53.5xx!\frac{e^{-3.5} 3.5^x}{x!}3.53.5\sqrt{3.5}
Server errors1 dayGiven2e−22xx!\frac{e^{-2} 2^x}{x!}22\sqrt{2}
Intersection accidents1 monthGiven1.2e−1.21.2xx!\frac{e^{-1.2} 1.2^x}{x!}1.21.2\sqrt{1.2}
Bestseller sales1 weekGiven4e−44xx!\frac{e^{-4} 4^x}{x!}44\sqrt{4}
Help requests1 hourGiven2.5e−2.52.5xx!\frac{e^{-2.5} 2.5^x}{x!}2.52.5\sqrt{2.5}
Lost packages (shipping)1 weekGiven1.8e−1.81.8xx!\frac{e^{-1.8} 1.8^x}{x!}1.81.8\sqrt{1.8}
Lost packages (shipping)4 weeksλweek×4\lambda_{week} \times 41.8×4=7.21.8 \times 4 = 7.2e−7.27.2xx!\frac{e^{-7.2} 7.2^x}{x!}7.27.2\sqrt{7.2}
3 4 5 6 7.

📝 Example: If a hospital averages 6 patients per hour, the probability of exactly 4 patients arriving in an hour is calculated using the Poisson PMF with λ=6\lambda = 6 and x=4x = 4.

🔑 Important: For probabilities involving ranges or "more than" in Poisson distributions, use the complement rule: P(X>k)=1−P(X≤k)P(X > k) = 1 - P(X \le k). The value of λ\lambda must always correspond to the specific interval being considered.

🔑 Important: The binomial distribution is for a fixed number of trials with a success/failure outcome. The Poisson distribution is for counting events over a continuous interval at a constant average rate.

3. Hypothesis testing with known variance

Hypothesis testing with known variance is a statistical method used to make decisions about a population mean (μ\mu). This process assumes the population standard deviation (σ\sigma) is known.

It involves setting up competing hypotheses, calculating a test statistic, and comparing it to a critical value or using a p-value to reach a conclusion.

3.1 The hypothesis testing framework

Hypothesis testing begins with formulating two competing statements about a population parameter. The null hypothesis (H0H_0) represents the status quo or a statement of no effect.

The alternative hypothesis (HaH_a) represents what we are trying to find evidence for.

The process requires specifying a significance level, denoted by α\alpha. This α\alpha represents the probability of rejecting the null hypothesis when it is actually true (Type I error).

A test statistic is calculated from sample data. This statistic measures how far the sample result deviates from the value stated in the null hypothesis.

Finally, a decision is made: either reject H0H_0 in favor of HaH_a, or fail to reject H0H_0. This decision is based on comparing the test statistic to a critical value or evaluating the p-value against α\alpha.

Key takeaway: The goal is to determine if sample data provides enough evidence to reject a claim about the population mean.

3.2 Test statistic for known variance

When the population standard deviation (σ\sigma) is known, the appropriate test statistic for a hypothesis test about the population mean (μ\mu) is the z-statistic. This statistic follows a standard normal distribution.

The formula for the z-test statistic is: z=xˉ−μ0σ/nz = \frac{\bar{x} - \mu_0}{\sigma/\sqrt{n}}

  • xˉ\bar{x}: The sample mean.
  • μ0\mu_0: The hypothesized population mean under the null hypothesis.
  • σ\sigma: The known population standard deviation.
  • nn: The sample size.

This formula essentially measures how many standard errors the sample mean is away from the hypothesized population mean.

Intuition: A larger absolute z-value means the sample mean is further from μ0\mu_0, suggesting stronger evidence against H0H_0.

3.3 Types of hypothesis tests

Hypothesis tests can be one-tailed or two-tailed, depending on the alternative hypothesis.

Test TypeAlternative Hypothesis (HaH_a)Rejection Region Direction
Left-tailedμ<μ0\mu < \mu_0Left tail
Right-tailedμ>μ0\mu > \mu_0Right tail
Two-tailedμ≠μ0\mu \neq \mu_0Both tails

The direction of the rejection region is determined by the alternative hypothesis. For a left-tailed test, we reject H0H_0 if the test statistic is very small.

For a right-tailed test, we reject H0H_0 if the test statistic is very large. For a two-tailed test, we reject H0H_0 if the test statistic is either very small or very large.

3.4 Decision rules and conclusions

A decision is made by comparing the calculated test statistic to critical values or by examining the p-value.

Critical Value Approach:

  • Identify the critical value(s) based on the significance level (α\alpha) and the type of test (one-tailed or two-tailed).
  • If the test statistic falls within the rejection region, reject H0H_0. Otherwise, fail to reject H0H_0.

P-value Approach:

  • The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one computed from the sample, assuming H0H_0 is true.
  • If the p-value ≤α\leq \alpha, reject H0H_0.
  • If the p-value >α>\alpha, fail to reject H0H_0.

The conclusion should be stated in the context of the problem. It should indicate whether there is sufficient evidence to support the alternative hypothesis.

Example: If we fail to reject H0H_0 when testing a cereal box claim, we conclude there is not enough evidence to say the mean weight is different from the claimed amount.

3.5 Sample size determination

When planning a study, it's crucial to determine the sample size (nn) needed to achieve a desired margin of error (EE) at a given confidence level. The formula for sample size calculation when σ\sigma is known is derived from the margin of error formula for confidence intervals.

The formula is: n≥(zα/2⋅σE)2n \geq \left( \frac{z_{\alpha/2} \cdot \sigma}{E} \right)^2

  • zα/2z_{\alpha/2}: The critical z-value for the desired confidence level.
  • σ\sigma: The known population standard deviation.
  • EE: The maximum desired margin of error.

The result for nn is rounded up to the nearest whole number, as sample size must be an integer 5.

Key Principle: Larger sample sizes lead to smaller margins of error, assuming σ\sigma and zα/2z_{\alpha/2} remain constant.

3.6 Consistency between confidence intervals and hypothesis tests

Confidence intervals and hypothesis tests with known variance are complementary. A hypothesis test can be performed using a confidence interval.

If a (1−α)×100%(1-\alpha) \times 100\% confidence interval for μ\mu is constructed:

  • For a two-tailed test with hypothesized mean μ0\mu_0, if μ0\mu_0 falls outside the interval, reject H0:μ=μ0H_0: \mu = \mu_0.
  • If μ0\mu_0 falls inside the interval, fail to reject H0:μ=μ0H_0: \mu = \mu_0.
  • For a one-tailed test (e.g., Ha:μ>μ0H_a: \mu > \mu_0), if the lower bound of the confidence interval is greater than μ0\mu_0, reject H0H_0.

This relationship holds because the confidence interval covers the range of plausible values for the population mean 6 7.

Consistency Check: If a 95% confidence interval does not contain the hypothesized mean, the corresponding two-tailed hypothesis test at α=0.05\alpha = 0.05 will reject H0H_0.

🔑 Important: Hypothesis testing with known variance provides a structured way to make decisions about population means when the population's spread is a known quantity. Always state hypotheses clearly, compute the correct test statistic, and interpret results in the problem's context.

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

See also