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) is between 0 and 1.
- The sum of all probabilities ∑P(x) equals 1.
📝 Example: A bakery sells cakes. X is the number of cakes sold daily. Possible values for X are 0, 1, 2, 3, 4.
The expected value (mean) of a discrete random variable X is calculated as μX=∑[x⋅P(x)]. This represents the average outcome over many trials.
The variance, σX2, measures the spread of the distribution. It is calculated as σX2=∑[(x−μX)2⋅P(x)] or more simply as σX2=∑[x2⋅P(x)]−μX2.
The standard deviation, σX, is the square root of the variance (σX=σX2).
1.2 Calculating probabilities and statistics
For a discrete random variable X, probabilities for ranges of values are found by summing the individual probabilities. For example, P(X≥k) is the sum of probabilities for all values of X equal to or greater than k.
Similarly, P(X<k) is the sum of probabilities for all values of X less than k.
🔑 Important: When calculating probabilities for continuous ranges like P(a≤X≤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, X. The distribution is:
| x (cakes sold) | P(x) |
|---|---|
| 0 | 0.05 |
| 1 | 0.20 |
| 2 | 0.35 |
| 3 | 0.25 |
| 4 | 0.15 |
- Verify validity:
- All P(x) are between 0 and 1.
- Sum of probabilities: 0.05+0.20+0.35+0.25+0.15=1.00. This is a valid distribution.
- Find P(X≥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.75.
- Compute mean μX: μX=(0×0.05)+(1×0.20)+(2×0.35)+(3×0.25)+(4×0.15) μX=0+0.20+0.70+0.75+0.60=2.25 cakes.
- Compute standard deviation σX: First, calculate the variance σX2: σX2=∑[x2⋅P(x)]−μX2 σX2=[(02×0.05)+(12×0.20)+(22×0.35)+(32×0.25)+(42×0.15)]−(2.25)2 σX2=[0+0.20+1.40+2.25+2.40−5.0625 σX2=6.25−5.0625=1.1875 σX=1.1875≈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.5, the bakery is not breaking even.
1.2.2 Manuscript typos example
The number of typos per page, X, in a manuscript follows this distribution:
| x (typos) | P(x) |
|---|---|
| 0 | 0.40 |
| 1 | 0.30 |
| 2 | 0.15 |
| 3 | 0.08 |
| 4 | 0.05 |
| 5 | 0.02 |
- Probability of no typos: P(X=0)=0.40.
- Find 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.85 .
- Compute mean μX: μX=(0×0.40)+(1×0.30)+(2×0.15)+(3×0.08)+(4×0.05)+(5×0.02) μX=0+0.30+0.30+0.24+0.20+0.10=1.14 typos per page.
- Compute variance σX2 and standard deviation σX: σX2=∑[x2⋅P(x)]−μX2 σX2=[(02×0.40)+(12×0.30)+(22×0.15)+(32×0.08)+(42×0.05)+(52×0.02)]−(1.14)2 σX2=[0+0.30+0.60+0.72+0.80+0.50−1.2996 σX2=2.92−1.2996=1.6204 σX=1.6204≈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.5, the manuscript meets the standard.
1.2.3 SUV example
A parking lot counts SUVs, X, among the next 5 cars. The distribution is:
| x (SUVs) | P(x) |
|---|---|
| 0 | 0.10 |
| 1 | 0.25 |
| 2 | 0.30 |
| 3 | 0.20 |
| 4 | 0.10 |
| 5 | 0.05 |
- Find P(1≤X≤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.75 13.
- Compute μX and σX: μX=(0×0.10)+(1×0.25)+(2×0.30)+(3×0.20)+(4×0.10)+(5×0.05) μ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 σX2=[0+0.25+1.20+1.80+1.60+1.25−4.41 σX2=6.10−4.41=1.69 σX=1.69=1.30 SUVs.
- Find P(X>μX): This is P(X>2.10), which means P(X=3)+P(X=4)+P(X=5). P(X>2.10)=0.20+0.10+0.05=0.35.
1.2.4 Household pets example
The number of pets, X, owned by a household follows this distribution:
| x (pets) | P(x) |
|---|---|
| 0 | 0.45 |
| 1 | 0.30 |
| 2 | 0.18 |
| 3 | 0.07 |
- Probability of at least one pet: P(X≥1)=1−P(X=0)=1−0.45=0.55.
- Compute μX and σX: μX=(0×0.45)+(1×0.30)+(2×0.18)+(3×0.07) μ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 σX2=[0+0.30+0.72+0.63−0.7569 σX2=1.65−0.7569=0.8931 σX=0.8931≈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<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 n.
- Each trial is independent of others.
- Two possible outcomes per trial: success or failure.
- The probability of success, p, is constant for each trial.
The probability mass function (PMF) for a binomial distribution is: P(X=x)=(xn)px(1−p)n−x where:
- X is the random variable representing the number of successes.
- x is the specific number of successes.
- (xn)=x!(n−x)!n! is the binomial coefficient.
The mean (expected value) and standard deviation of a binomial distribution are:
- Mean: E(X)=μ=np
- Standard Deviation: σ=np(1−p)
| Scenario | n (Trials) | p (Success Prob.) | P(X=x) Formula | E(X) | σ |
|---|---|---|---|---|---|
| Voter support | 15 | 0.60 | (x15)(0.6)x(0.4)15−x | 15×0.6=9 | 15×0.6×0.4 |
| Defective items | 20 | 0.05 | (x20)(0.05)x(0.95)20−x | 20×0.05=1 | 20×0.05×0.95 |
| Multiple-choice guesses | 10 | 0.25 | (x10)(0.25)x(0.75)10−x | 10×0.25=2.5 | 10×0.25×0.75 |
| Free-throw success | 10 | 0.80 | (x10)(0.8)x(0.2)10−x | 10×0.8=8 | 10×0.8×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 (λ) 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)=x!e−λλx where:
- X is the random variable representing the number of events.
- x is the specific number of events.
- λ is the average rate of events in the given interval.
- e is the base of the natural logarithm (approximately 2.71828).
For a Poisson distribution, the mean and variance are equal:
- Mean: E(X)=μ=λ
- Variance: Var(X)=σ2=λ
- Standard Deviation: σ=λ
When the interval changes, λ must be adjusted proportionally. For example, if the average rate is λ per hour, the average rate for a 2-minute interval would be calculated based on the number of minutes.
| Scenario | Interval | Average Rate (λ) Calculation | Example λ for Interval | P(X=x) Formula | E(X) | σ |
|---|---|---|---|---|---|---|
| Emergency room arrivals | 1 hour | Given | 6 | x!e−66x | 6 | 6 |
| Call center | 1 minute | Given | 3.5 | x!e−3.53.5x | 3.5 | 3.5 |
| Server errors | 1 day | Given | 2 | x!e−22x | 2 | 2 |
| Intersection accidents | 1 month | Given | 1.2 | x!e−1.21.2x | 1.2 | 1.2 |
| Bestseller sales | 1 week | Given | 4 | x!e−44x | 4 | 4 |
| Help requests | 1 hour | Given | 2.5 | x!e−2.52.5x | 2.5 | 2.5 |
| Lost packages (shipping) | 1 week | Given | 1.8 | x!e−1.81.8x | 1.8 | 1.8 |
| Lost packages (shipping) | 4 weeks | λweek×4 | 1.8×4=7.2 | x!e−7.27.2x | 7.2 | 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 and x=4.
🔑 Important: For probabilities involving ranges or "more than" in Poisson distributions, use the complement rule: P(X>k)=1−P(X≤k). The value of λ 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 (μ). This process assumes the population standard deviation (σ) 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 (H0) represents the status quo or a statement of no effect.
The alternative hypothesis (Ha) represents what we are trying to find evidence for.
The process requires specifying a significance level, denoted by α. This α 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 H0 in favor of Ha, or fail to reject H0. This decision is based on comparing the test statistic to a critical value or evaluating the p-value against α.
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 (σ) is known, the appropriate test statistic for a hypothesis test about the population mean (μ) is the z-statistic. This statistic follows a standard normal distribution.
The formula for the z-test statistic is: z=σ/nxˉ−μ0
- xˉ: The sample mean.
- μ0: The hypothesized population mean under the null hypothesis.
- σ: The known population standard deviation.
- n: 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, suggesting stronger evidence against H0.
3.3 Types of hypothesis tests
Hypothesis tests can be one-tailed or two-tailed, depending on the alternative hypothesis.
| Test Type | Alternative Hypothesis (Ha) | Rejection Region Direction |
|---|---|---|
| Left-tailed | μ<μ0 | Left tail |
| Right-tailed | μ>μ0 | Right tail |
| Two-tailed | μ=μ0 | Both tails |
The direction of the rejection region is determined by the alternative hypothesis. For a left-tailed test, we reject H0 if the test statistic is very small.
For a right-tailed test, we reject H0 if the test statistic is very large. For a two-tailed test, we reject H0 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 (α) and the type of test (one-tailed or two-tailed).
- If the test statistic falls within the rejection region, reject H0. Otherwise, fail to reject H0.
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 H0 is true.
- If the p-value ≤α, reject H0.
- If the p-value >α, fail to reject H0.
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 H0 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 (n) needed to achieve a desired margin of error (E) at a given confidence level. The formula for sample size calculation when σ is known is derived from the margin of error formula for confidence intervals.
The formula is: n≥(Ezα/2⋅σ)2
- zα/2: The critical z-value for the desired confidence level.
- σ: The known population standard deviation.
- E: The maximum desired margin of error.
The result for n 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 σ and zα/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% confidence interval for μ is constructed:
- For a two-tailed test with hypothesized mean μ0, if μ0 falls outside the interval, reject H0:μ=μ0.
- If μ0 falls inside the interval, fail to reject H0:μ=μ0.
- For a one-tailed test (e.g., Ha:μ>μ0), if the lower bound of the confidence interval is greater than μ0, reject H0.
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 will reject H0.
🔑 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.