Skip to main content
Statistics LibreTexts

7.5: Formulas for Chapter 7

  • Page ID
    58288
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Formulas for Chapter 7

    Confidence Interval for the Mean When \(\sigma\) is Known

    A confidence interval of the mean using z-values is a range of values, based on sample data, that is likely to contain the true population mean with a certain level of confidence, such as 95%. This approach is used when the population standard deviation is known and the sample size is sufficiently large (typically n ≥ 30). The confidence interval is constructed using the sample mean, the z-score corresponding to the desired confidence level, and the standard error of the mean.

    \(\bar{x} - z_{\alpha/2} \cdot \dfrac{\sigma}{\sqrt{n}} < \mu < \bar{x} + z_{\alpha/2} \cdot \dfrac{\sigma}{\sqrt{n}}\)

    Where:

    • \( \bar{x} \) is the sample mean
    • \( z_{\alpha/2} \) is the z-score corresponding to the desired confidence level
    • \( \sigma \) is the population standard deviation
    • \( n \) is the sample size
    • \( \mu \) is the population mean
    • \( \frac{\sigma}{\sqrt{n}} \) is the standard error of the mean

    Confidence Interval for the Mean When \(\sigma\) is Not Known

    A confidence interval for the mean using t-values is used when the population standard deviation is unknown and the sample size is relatively small, typically less than 30. In this case, the sample standard deviation is used instead of the population standard deviation, and the t-distribution is used instead of the normal distribution. This method provides a range of values that is likely to contain the true population mean with a specified level of confidence.

    \(\bar{x} - t_{\alpha/2} \cdot \dfrac{s}{\sqrt{n}} < \mu < \bar{x} + t_{\alpha/2} \cdot \dfrac{s}{\sqrt{n}}\)

    Where:

    • \( \bar{x} \) is the sample mean
    • \( t_{\alpha/2} \) is the t-score for the desired confidence level and degrees of freedom
    • \( s \) is the sample standard deviation
    • \( n \) is the sample size
    • \( \mu \) is the population mean
    • \( \frac{s}{\sqrt{n}} \) is the standard error of the mean

    Sample Proportion and Complement

    The sample proportion of success, denoted as \(\hat{p}\), is the ratio of the number of successes in the sample to the total number of observations. It is calculated using the formula \(\hat{p} = \dfrac{X}{n}\), where \(X\) is the number of observed successes and \(n\) is the sample size. The complement of the sample proportion, denoted as \(\hat{q}\), represents the proportion of failures and is given by \(\hat{q} = 1 - \hat{p}\).

    Confidence Interval for Proportion

    A confidence interval for proportions is used to estimate the true population proportion based on a sample proportion. It provides a range of values within which the population proportion is likely to fall, with a certain level of confidence. This method is appropriate when the sample size is large enough such that both \(n\hat{p}\)​ and \(n\hat{q}\) are at least 5, where \(\hat{q} = 1 - \hat{p}\). The normal approximation to the binomial distribution is used to construct the interval.

    \(\hat{p} - z_{\alpha/2} \cdot \sqrt{\dfrac{\hat{p}\hat{q}}{n}} < p < \hat{p} + z_{\alpha/2} \cdot \sqrt{\dfrac{\hat{p}\hat{q}}{n}}\)

    Where:

    • \( \hat{p} \)is the sample proportion
    • \( \hat{q} = 1 - \hat{p} \) is the complement of the sample proportion
    • \( z_{\alpha/2} \) is the z-score corresponding to the desired confidence level
    • \( n \) is the sample size
    • \( p \) is the population proportion
    • \( \sqrt{\dfrac{\hat{p}\hat{q}}{n}} \) is the standard error of the proportion

    Minimum Sample Size for a Confidence Interval for the Mean

    The formula for minimum sample size is used to determine how many observations are needed to estimate a population mean within a specified margin of error at a certain confidence level. This ensures that the resulting confidence interval is both accurate and reliable. The formula takes into account the desired precision, the variability in the population, and the confidence level.

    \(n = \left( \dfrac{z_{\alpha/2} \cdot \sigma}{E} \right)^2\)

    Where:

    • \( n \) is the minimum required sample size
    • \( z_{\alpha/2} \) is the z-score corresponding to the desired confidence level
    • \( \sigma \) is the population standard deviation
    • \( E \) is the desired margin of error

    Minimum Sample Size for a Confidence Interval for a Proportion

    The formula for the minimum sample size needed to estimate a population proportion is used to calculate how many observations are required to achieve a desired margin of error at a specific confidence level. It helps ensure the estimate of the population proportion is precise and reliable.

    \(n = \hat{p} \cdot \hat{q} \cdot \left( \dfrac{z_{\alpha/2}}{E} \right)^2\)

    Where:

    • \( n \) is the minimum required sample size
    • \( \hat{p} \) is the sample proportion (estimated proportion of success)
    • \( \hat{q} = 1 - \hat{p} \) is the complement of the sample proportion (estimated proportion of failure)
    • \( z_{\alpha/2} \) is the z-score corresponding to the desired confidence level
    • \( E \) is the desired margin of error

    This page titled 7.5: Formulas for Chapter 7 is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Toros Berberyan, Tracy Nguyen, and Alfie Swan.