# Confidence Intervals

Confidence intervals are a statistical concept used to estimate the range of values within which we expect a population parameter, such as the mean or proportion, to lie. They provide a measure of uncertainty around an estimated statistic based on sample data.

1. **Purpose**:
   * **Estimate Precision**: Confidence intervals help quantify the uncertainty in our estimates of population parameters derived from sample data.
   * **Inferential Tool**: They provide a range of plausible values for the parameter, allowing us to make inferences about the population.
2. **Construction**:
   * **Sample Data**: Start with a sample from the population and compute a sample statistic (e.g., mean, proportion).
   * **Distribution Assumptions**: Underlying assumptions about the population distribution (e.g., normality for means, binomial for proportions) guide the calculation.
   * **Formula**: Typically constructed as $$Estimate±Margin \ of \ Error$$, where the margin of error accounts for variability and is based on the standard error of the statistic.
3. **Interpretation**:
   * **Confidence Level**: Often expressed as a percentage (e.g., 95%, 99%). It represents the probability that the confidence interval includes the true population parameter if the sampling and estimation process were repeated many times.
   * **Example**: A 95% confidence interval suggests that if we were to take 100 different samples and compute confidence intervals for each, approximately 95 of those intervals would contain the true population parameter.
4. **Factors Influencing Width**:
   * **Sample Size**: Larger samples generally result in narrower confidence intervals because they provide more precise estimates of the population parameter.
   * **Variability**: Higher variability in the data results in wider intervals, as it increases the uncertainty in estimating the parameter.

#### Practical Use:

* **Decision Making**: Confidence intervals aid in making informed decisions by providing a range of plausible values for a population parameter.
* **Comparisons**: They allow comparisons between groups or over time, assessing whether differences are statistically significant.

{% embed url="<https://www.youtube.com/watch?v=TqOeMYtOc1w>" %}
