Skip to content
Qenot

Confidence Intervals

45 cards · 27 questions · a map

Confidence Intervals and Population Means

Confidence intervals and the error bound

  • Confidence Interval (CI): A range of values estimated for an unknown population mean (mu\\mu) based on sample data.
  • Error Bound for a Population Mean (EBM): The margin of error used to construct a CI; it represents the distance from the point estimate to the interval's endpoints.
  • The CI formula is (barx−EBM,barx+EBM)(\\bar{x} - EBM, \\bar{x} + EBM), where barx\\bar{x} is the sample mean (the point estimate).
  • Confidence Level (CL): The percentage of confidence intervals that contain the true population parameter when repeated samples are taken.
    • Misconception: CL is not the probability that one specific interval contains the true parameter.
  • Alpha (\alpha): The probability that a constructed CI does not contain the true population parameter, calculated as alpha=1−CL\\alpha = 1 - CL.

[!NOTE] A CL of 90% or higher is typically chosen to ensure reasonable certainty in conclusions.

<details> <summary>Worked example: calculating a CI</summary>

Given barx=7\\bar{x} = 7 and EBM=2.5EBM = 2.5:

  1. Lower bound: 7−2.5=4.57 - 2.5 = 4.5
  2. Upper bound: 7+2.5=9.57 + 2.5 = 9.5
  3. CI: (4.5,9.5)(4.5, 9.5)
</details>
Drawing diagram

Check yourself

  • What is the relationship between alpha and the confidence level?
  • Why is it inaccurate to say a 95% confidence interval has a 95% probability of containing the true mean?

Calculating the margin of error

  • Critical Value (zalpha/2z_{\\alpha/2}): A z-score in the standard normal distribution that leaves an area of alpha/2\\alpha/2 in each tail.
  • Standard Error of the Mean: The standard deviation for sample means, calculated as fracsigmasqrtn\\frac{\\sigma}{\\sqrt{n}}.
  • Margin of Error Calculation Formula: EBM=zalpha/2cdot(fracsigmasqrtn)EBM = z_{\\alpha/2} \\cdot (\\frac{\\sigma}{\\sqrt{n}}).
  • Finding zalpha/2z_{\\alpha/2}:
    • The area to the left of the critical value is 1−alpha/21 - \\alpha/2.
    • Example: For CL=0.95CL = 0.95, alpha=0.05\\alpha = 0.05, so alpha/2=0.025\\alpha/2 = 0.025. The area to the left is 1−0.025=0.9751 - 0.025 = 0.975.
    • Calculator command (TI-83/84): invNorm(0.975, 0, 1) yields zapprox1.96z \\approx 1.96.

[!TIP] Always ensure you use the area to the LEFT of the critical value when using the invNorm function.

Check yourself

  • How is the standard error of the mean different from the population standard deviation?
  • What are the variables required to calculate the EBM?

Interpreting the confidence interval

  • Confidence Interval Interpretation Template: "We estimate with [CL] percent confidence that the true [population parameter] is between [lower bound] and [upper bound] [units]."
  • Steps for construction:
    1. Calculate barx\\bar{x} from sample data.
    2. Determine the critical z-score based on CL.
    3. Calculate EBM=zalpha/2cdot(fracsigmasqrtn)EBM = z_{\\alpha/2} \\cdot (\\frac{\\sigma}{\\sqrt{n}}).
    4. Compute bounds barxpmEBM\\bar{x} \\pm EBM.
    5. State the interpretation in context.
<details> <summary>Worked example: exam scores</summary>

Given: n=36n = 36, sigma=3\\sigma = 3, barx=68\\bar{x} = 68, CL=0.90CL = 0.90.

  1. alpha=0.10\\alpha = 0.10, alpha/2=0.05\\alpha/2 = 0.05, z0.05=1.645z_{0.05} = 1.645.
  2. EBM=1.645cdot(3/sqrt36)=1.645cdot(3/6)=1.645cdot0.5=0.8225EBM = 1.645 \\cdot (3 / \\sqrt{36}) = 1.645 \\cdot (3 / 6) = 1.645 \\cdot 0.5 = 0.8225.
  3. CI: (68−0.8225,68+0.8225)=(67.1775,68.8225)(68 - 0.8225, 68 + 0.8225) = (67.1775, 68.8225).
</details>

Check yourself

  • What three components must be present in a proper confidence interval interpretation?
  • If the sample size increases, does the EBM increase or decrease assuming the same CL?

Changing Confidence Levels and Sample Sizes

Calculating Confidence Intervals with Varying Levels

  • Confidence Level (CL): A percentage, like 90% or 98%, representing the proportion of all intervals constructed in this manner that will contain the true population mean.
    • Example: If 100 intervals are created, we expect 90 of them to contain the true population mean.
  • Error Bound for the Mean (EBM): The distance from the sample mean to the boundaries of the interval, influenced by the chosen confidence level.
    • Calculated using the formula: EBM=zα/2⋅σnEBM = z_{\alpha/2} \cdot \frac{\sigma}{\sqrt{n}}
    • Higher confidence levels require a larger zz-score (zα/2z_{\alpha/2}), resulting in a wider interval.
  • Calculator Method (TI-83, 83+, 84, 84+):
    • Navigate to STAT > TESTS > 7:ZInterval.
    • Select Stats and input the population standard deviation (σ\sigma), sample mean (xˉ\bar{x}), sample size (nn), and confidence level (C-levelC\text{-level}).
    • Select Calculate to output the interval bounds.

[!TIP] Changing the confidence level alters the zz-score used in the calculation; a higher confidence level increases the width of the confidence interval to ensure the true population mean is captured more frequently.

Drawing diagram

Check yourself

  • How does increasing the confidence level from 90% to 98% affect the width of the confidence interval?
  • What does a 90% confidence level actually represent regarding the true population mean?
  • What parameters must be known or calculated before using the ZInterval function on the calculator?

Determining Sample Size and Working Backwards

Confidence interval changes and reliability

  • Confidence interval comparison: Variations in sample data, sample sizes, or confidence levels result in different intervals, but these results do not represent conflicting information.
  • Effect of increasing confidence level: Higher confidence requires a larger error bound (EBM, the margin of error added/subtracted from the sample mean), leading to a wider interval.
  • Effect of decreasing confidence level: Lower confidence allows a smaller EBM, resulting in a narrower interval.
  • Effect of increasing sample size: A larger sample size (nn) reduces the EBM, producing a narrower interval.
  • Effect of decreasing sample size: A smaller nn increases the EBM, producing a wider interval.

Check yourself

  • Why does increasing the confidence level make an interval wider?
  • Does a larger sample size increase or decrease the error bound?

Working backward from confidence intervals

  • Error Bound for Mean (EBM): The distance between the sample mean and the interval endpoints.
    • Method 1: EBM=Upper−xˉEBM = \text{Upper} - \bar{x}
    • Method 2: EBM=Upper−Lower2EBM = \frac{\text{Upper} - \text{Lower}}{2}
  • Sample Mean (xˉ\bar{x}): The center value of a confidence interval.
    • Method 1: xˉ=Upper−EBM\bar{x} = \text{Upper} - EBM
    • Method 2: xˉ=Upper+Lower2\bar{x} = \frac{\text{Upper} + \text{Lower}}{2}
  • Comparison of intervals: Different samples, sizes, or confidence levels create varying intervals that do not provide conflicting data.

Check yourself

  • How is the EBM calculated if the sample mean is unknown?
  • How do you determine the sample mean from an interval of (67.18, 68.82)?

Determining required sample size

  • Sample Size Formula: Used to find nn when a specific EBMEBM is required.
    • Formula: n=(z⋅σEBM)2n = (\frac{z \cdot \sigma}{EBM})^2
  • Rounding Rule: Always round the resulting nn up to the nearest integer to guarantee the required error bound is met.
  • Confidence Level Effects:
    • Increasing confidence level increases EBMEBM, resulting in a wider interval.
    • Decreasing confidence level decreases EBMEBM, resulting in a narrower interval.
  • Sample Size Effects:
    • Increasing nn decreases EBMEBM, making the interval narrower.
    • Decreasing nn increases EBMEBM, making the interval wider.

Check yourself

  • Why must you always round up the calculated sample size?
  • What happens to the confidence interval if the sample size is increased?

Summary

  • A confidence interval provides a range of values estimate for an unknown population mean, calculated from sample data.
  • The EBM is the margin of error used to construct a confidence interval for an unknown population mean.
  • The critical z-score (zα/2) is the value in the standard normal distribution that leaves an area equal to α/2 in each tail.
  • The margin of error (EBM) is calculated by multiplying the critical z-score by the standard error of the mean.
  • Increasing the confidence level increases the error bound, resulting in a wider confidence interval.

Principles of the Student's t-Distribution

  • Student's t-distribution: A probability distribution used when the population standard deviation σ\sigma is unknown and the sample standard deviation ss must be used as an estimate.
    • Developed by William S. Gosset (pen name "Student") to address inaccurate confidence intervals in small sample sizes.
    • Used regardless of sample size whenever ss is used to estimate σ\sigma.
  • Assumptions:
    • Underlying population is normally distributed.
    • Sample must be a random sample.
  • Properties:
    • Distribution is symmetric about zero.
    • Mean is zero.
    • More probability located in the tails compared to the standard normal distribution.
    • Shape is defined by degrees of freedom (df), calculated as df=n−1df = n - 1.
Drawing diagram

Check yourself

  • Why was the Student's t-distribution developed by Gosset?
  • What are the two primary assumptions for using the Student's t-distribution?
  • How does the shape of the t-distribution change as degrees of freedom increase?

Calculating Confidence Intervals with Unknown Sigma

  • T-score formula: t=xˉ−μs/nt = \frac{\bar{x} - \mu}{s / \sqrt{n}}.
  • Error bound for a population mean (EBM): EBM=tα/2∗(sn)EBM = t_{\alpha/2} * (\frac{s}{\sqrt{n}}).
    • tα/2t_{\alpha/2} is the critical t-value with area α/2\alpha/2 to the right.
  • Confidence interval formula: (xˉ−EBM,xˉ+EBM)(\bar{x} - EBM, \bar{x} + EBM).
  • Usage notes:
    • Be aware of t-table variations; some show confidence levels in columns, others show area in one or both tails.
    • Calculators like the TI-84+ include the invT(area to the left, df) function.
    • The TInterval function under the TESTS menu provides direct calculation for data lists.

Check yourself

  • What is the formula for the error bound of a mean when sigma is unknown?
  • How is the confidence interval constructed using the EBM?
  • What common mistake do students make when reading t-tables?

Worked Application of t-Intervals

  • Application: Constructing a 90% confidence interval for infant chemical exposure data (n=20n=20).
    • df=20−1=19df = 20 - 1 = 19.
    • Confidence Level (CLCL) = 0.90, so α=0.10\alpha = 0.10 and α/2=0.05\alpha/2 = 0.05.
    • Critical value t0.05=1.729t_{0.05} = 1.729.

Check yourself

  • Given n=20n=20 and a 90% confidence level, what is the degrees of freedom?
  • If using a calculator, what inputs are required for the invT command?

Summary

  • The Student's t-distribution should be used whenever the sample standard deviation (s) is used as an estimate for the population standard deviation (sigma).
  • A t-score is calculated for a sample size n from a normal population as t = (x-bar - mu) / (s / sqrt(n)).
  • The degrees of freedom (df) for the Student's t-distribution is defined as the sample size minus one (n - 1).
  • The error bound for a population mean (EBM) is EBM = t_{alpha/2} * (s / sqrt(n)).
  • The confidence interval for a population mean (unknown sigma) is (x-bar - EBM, x-bar + EBM).

Confidence Intervals for Population Proportions

Confidence Intervals for Population Proportions

  • Categorical Data: Proportion problems involve data sorted into two distinct categories: Success or Failure (or Yes or No).
  • Sample Proportion (P′P'): The point estimate of the true population proportion pp, calculated as p′=x/np' = x/n, where xx is the number of successes and nn is the sample size.
  • Central Limit Theorem for Proportions: The distribution of sample proportions P′P' follows a normal distribution with:
    • Mean: pp
    • Standard deviation: pq/n\sqrt{pq/n}, where q=1−pq = 1 - p
  • Confidence Interval Formula: Defined as (p′−EBP,p′+EBP)(p' - EBP, p' + EBP), where EBP is the Error Bound for the Proportion.
  • Comparison of Standard Deviations:
    • For population means, the standard deviation is σ/n\sigma/\sqrt{n}.
    • For proportions, we estimate the standard deviation as p′q′/n\sqrt{p'q'/n} because pp and qq are typically unknown.

[!IMPORTANT] Use p′p' and q′q' (where q′=1−p′q' = 1 - p') as estimates for the unknown population parameters pp and qq when calculating the EBP.

Drawing diagram

Check yourself

  • What two characteristics define a dataset as categorical for a proportion problem?
  • How does the estimation of standard deviation differ between population means and population proportions?
  • What do p′p' and q′q' represent in the formula for EBP?

Applying Proportion Confidence Intervals

Conditions for Valid Proportion Confidence Intervals

  • Success-Failure Condition: To ensure a confidence interval for a proportion is valid, the sample must satisfy two requirements:
    • np′>5np' > 5 (expected successes)
    • nq′>5nq' > 5 (expected failures)
  • These conditions relate to the binomial distribution of the sample count XX, where p′p' is the sample proportion (the point estimate of the population proportion) and q′=1−p′q' = 1 - p'.
  • Failure to meet these criteria makes the application of the formula for proportions unreliable.

[!IMPORTANT] Before calculating any interval, always verify that both the number of successes (np′np') and the number of failures (nq′nq') in your sample are strictly greater than 5.

Drawing diagram

Check yourself

  • Why must both np' and nq' be greater than five to calculate a confidence interval?
  • If n = 20 and p' = 0.1, can you compute a confidence interval for the proportion?

Confidence Interval Calculation and Interpretation

Plus-Four Confidence Interval

  • Plus-four method: A statistical adjustment to improve accuracy by pretending the sample contains four additional observations: two successes and two failures.
  • Methodology:
    • New sample size nnew=n+4n_{new} = n + 4.
    • New number of successes xnew=x+2x_{new} = x + 2.
  • Applicability:
    • Use when the desired confidence level is at least 90%90\%.
    • Use when the original sample size is at least ten.
  • Execution:
    • Perform the standard confidence interval calculation using the updated xnewx_{new} and nnewn_{new} values.

[!TIP] Do not change the standard calculation process; simply update the xx and nn values to incorporate the four additional observations before running your test.

<details> <summary>Worked example: 6 of 25 students use a product</summary>
  • Original: x=6x = 6, n=25n = 25.
  • Updated: x=6+2=8x = 6 + 2 = 8, n=25+4=29n = 25 + 4 = 29.
  • Use the updated values in a standard 1-PropZInt test for a 95% confidence interval.
</details>
Drawing diagram

Check yourself

  • Why is the plus-four method considered more accurate than the standard method?
  • What are the two conditions required to use the plus-four interval?

Calculating Required Sample Size

  • Required sample size (nn): The number of observations needed to achieve a specific margin of error, known as the EBP (Error Bound for a Proportion).
  • Formula for nn:
    • n=zα/22⋅p′⋅q′EBP2n = \frac{z_{\alpha/2}^2 \cdot p' \cdot q'}{EBP^2}
    • p′p' is the sample proportion (point estimate).
    • q′=1−p′q' = 1 - p'.
    • zα/2z_{\alpha/2} is the critical value for the chosen confidence level.
  • Implementation:
    • Always round the resulting nn up to the next higher integer.
<details> <summary>Worked example: 90% confidence with 3% margin of error</summary>
  • Given: EBP=0.03EBP = 0.03, p′=0.5p' = 0.5, confidence level 90%  ⟹  z0.05=1.64590\% \implies z_{0.05} = 1.645.
  • Calculate: n=1.6452⋅0.5⋅0.50.032n = \frac{1.645^2 \cdot 0.5 \cdot 0.5}{0.03^2}.
  • Result: n≈751.68n \approx 751.68, so round up to 752752.
</details>

Check yourself

  • How is the value of q' determined?
  • What must you do to the final value of n after performing the calculation?

Summary

  • The sample proportion, denoted as P', is the point estimate of the true population proportion p.
  • The distribution of sample proportions P' follows a normal distribution with mean p and standard deviation sqrt(pq/n).
  • The confidence interval for a proportion is defined as (p' - EBP, p' + EBP), where EBP is the error bound for the proportion.
  • Proportion problems involve categorical data consisting of two distinct categories: Success or Failure (or Yes or No).
  • A confidence interval for a proportion is only valid if both np' > 5 and nq' > 5.

Calculating and Interpreting Confidence Intervals

  • Confidence Interval (CI): A range of values used to estimate the population mean with a specific degree of certainty.
    • The study objective is to compute and interpret a 90% CI for the mean price of homes in a local county.
  • Assumptions: The data must be a random sample of n=35n = 35 home sale prices, ensuring the set is representative of available listings.
  • Misconception regarding CI coverage:
    • A 90% confidence level does not mean that 90% of the individual data points in the sample fall inside the interval.
    • The CI estimates the location of the population mean, not the distribution of individual observations.
  • Confidence Level and Error Bound:
    • The Error Bound for the Mean (EBM) represents the margin of error added to and subtracted from the sample mean to create the CI limits.
    • As the confidence level increases (e.g., from 50% to 99%), the EBM increases.
    • A higher confidence level necessitates a wider confidence interval to ensure the interval captures the true population mean with higher probability.

Check yourself

  • Why does increasing the confidence level make the confidence interval wider?
  • If 90% of your data points are not inside your 90% confidence interval, does this mean your calculation is wrong?
  • What is the required sample size for the home price study mentioned in the source?

Summary

  • The objective of the study is to calculate and interpret a 90 percent confidence interval for the mean cost of a home in a specific area.
  • As the confidence level of an interval increases, the Error Bound for the Mean (EBM) and the width of the confidence interval also increase.
  • A 90 percent confidence interval does not necessarily contain 90 percent of the individual data points in the sample.
  • The study assumes that the 35 collected home sale prices represent a random sample of homes available for sale in the county.

Principles of Confidence Intervals for Proportions

  • Confidence Interval (CI): A range of values used to estimate a population parameter, such as the proportion of students born in a state.
    • Objective: Estimate the proportion of students born in the state using a 90% confidence level.
  • Error Bound for Proportions (EBP): The margin of error calculated alongside the interval to define its precision.
  • Confidence Level Alpha (α): The total area in both tails of the distribution curve combined, representing the probability that the parameter lies outside the CI.
    • Relationship: As the Confidence Level increases, the EBP also increases to account for greater certainty.
    • Effect on Width: The width of the confidence interval expands as the confidence level increases.

[!IMPORTANT] Increasing the confidence level requires a wider interval to ensure the true population proportion is captured with higher certainty.

Drawing diagram

Check yourself

  • What is the relationship between the confidence level and the width of the confidence interval?
  • How is the value of alpha (α) used in defining the distribution tails?
  • Why does the EBP increase as the confidence level increases?

Summary

  • The objective is to calculate the 90 percent confidence interval for the proportion of students born in the state.
  • As the confidence level increases, the Error Bound for Proportions (EBP) also increases.
  • The width of the confidence interval increases as the confidence level increases.
  • The Error Bound for Proportions (EBP) is a value calculated alongside the confidence interval.
  • Alpha (α) represents the total area in both tails of the distribution curve combined, used to determine confidence levels.

Constructing and Interpreting a 90 Percent Confidence Interval

  • Confidence Interval (CI) is a range calculated from sample data, typically utilizing the sample mean and sample standard deviation, intended to estimate a population parameter.
    • Calculations for this study assume a known population standard deviation of 3.33.3 inches.
  • Confidence Level represents the long-term success rate, describing the percentage of intervals expected to capture the true population mean (μ\mu) if sampling is repeated many times.
  • Interpretation of "90 percent confident":
    • It does not mean the specific interval has a 90 percent probability of containing μ\mu.
    • Instead, it means that if many researchers were to construct intervals using the same method, approximately 90 percent of those constructed intervals would contain the true value of μ\mu.
  • Misconception: Confidence Intervals and Data Distribution:
    • It is incorrect to think a 90 percent CI is meant to capture 90 percent of individual data points in the population.
    • The interval is designed to estimate the population mean, not the proportion of individual observations.
  • Uncertainty of Individual Confidence Intervals:
    • An individual researcher cannot verify if their specific CI contains the true population mean without knowing μ\mu beforehand.

[!WARNING] Do not mistake a 90 percent confidence interval for a range that contains 90 percent of the individual population values; it is an estimate of the mean, not a range for raw data points.

Check yourself

  • Why is it incorrect to assume a 90 percent confidence interval contains 90 percent of the individual data points?
  • If you construct a single confidence interval, can you be certain it contains the true population mean? Why or why not?
  • What does the '90 percent confidence level' tell us about the long-term behavior of these intervals?

Summary

  • A 90 percent confidence interval is calculated using sample data, typically including the sample mean and sample standard deviation.
  • Being 90 percent confident means that if we were to construct many intervals from repeated sampling, approximately 90 percent of those intervals would capture the true population mean.
  • It is incorrect to assume that a 90 percent confidence interval is intended to contain 90 percent of the individual data points in the population.
  • The confidence level represents the expected long-term percentage of constructed intervals that will contain the true population mean.
  • An individual researcher cannot know for certain whether their specific confidence interval contains the population mean without knowing the value of the population mean itself.