2024-03-19

Introduction to Interval Estimation

  • Interval estimation is a statistical method used to estimate an unknown population parameter based on a sample from the population.

  • It provides a range of plausible values for the parameter instead of just a single point estimate.

  • Confidence intervals are commonly used for interval estimation.

Confidence Intervals

  • A confidence interval (CI) is a range of values, derived from sample data, that is likely to contain the value of an unknown population parameter.

  • The confidence level represents the probability that the interval will contain the true population parameter.

  • Common confidence levels include 90%, 95%, and 99%.

Example: Confidence Interval for Population Mean

Suppose we have a sample of 50 students and want to estimate the average height of all students in the school.

Sample Mean: 65 inches

Sample Standard Deviation: 3 inches

We want to construct a 95% confidence interval for the population mean height.

Calculation of Confidence Interval

The formula for a confidence interval for the population mean (\(\mu\)) is:

\[ CI = \bar{x} \pm z \left( \frac{s}{\sqrt{n}} \right) \]

where: \(\bar{x}\) is the sample mean, \(s\) is the sample standard deviation, \(n\) is the sample size, and \(z\) is the z-score corresponding to the desired confidence level.

Calculation Example

Given: Sample Mean (\(\bar{x}\)): 65 inches, Desired Confidence Level: 95%, Sample Standard Deviation (\(s\)): 3 inches, Sample Size (\(n\)): 50

We need to find the z-score corresponding to a 95% confidence level.

Now, let’s calculate the confidence interval:

\[ CI = \bar{x} \pm z \left( \frac{s}{\sqrt{n}} \right) \]

Substituting the values:

\[ CI = 65 \pm 1.96 \left( \frac{3}{\sqrt{50}} \right) \]

The 95% confidence interval for the population mean height is approximately [64.17, 65.83] inches.

Plotly 3D Plot R Code

x <- seq(60, 70, by = 0.1)
y <- seq(0, 0.5, by = 0.01)
z <- outer(x, y, function(x, y) dnorm(x, mean = 65, sd = 3/sqrt(50)))

Plotly 3D Plot

GG Plot 1

GG Plot 2