Hypothesis Testing, Model Assumptions, Errors, and Confidence Intervals

Hypothesis Testing and Point Estimation

  • Point Estimate: A sample statistic used to estimate an unknown population parameter. For example, the sample mean (yˉ\bar{y}) approximates the population mean (μ\mu). In the tipping dataset, the point estimate for rainy day tips is 18.46418.464.

  • Hypotheses Setup:

    • Null Hypothesis (H0H_0): A statement of equality setting the baseline comparison point (e.g., H0:A=18H_0: Α = 18).

    • Alternative Hypothesis (HaH_a): A statement of inequality or difference (e.g., Ha:A≠18H_a: Α \neq 18, Ha:μ>20H_a: \mu > 20, or Ha:μ<2H_a: \mu < 2).

  • Test Statistic (tt-value): Represents the number of standard errors the sample statistic (yˉ\bar{y}) lies away from the hypothesized parameter under H0H_0.

  • Decision Rule: If the pp-value is less than the significance level (α\alpha = 0.05),reject), rejectH_0.\n\n# Model Assumptions and Sample Size Rules\n\n* **Normality Assumption:** To apply the t-distribution appropriately, the underlying population should be approximately normal.\n * **Skewness Criterion:** Sample skewness should fall between -0.5andand0.5.\n* **Central Limit Theorem:** If sample data is skewed or bimodal (such as the building energy efficiency dataset with 768observations),testingundertheobservations), testing under thet−distributionremainsvalidprovidedthesamplesizeissufficientlylarge(-distribution remains valid provided the sample size is sufficiently large (N \ge 30).\n* **Sample Size Impact:** Increasing sample size (N)increasesthemagnitudeofthe) increases the magnitude of thet−statisticandreducesthe-statistic and reduces thep-value, making it easier to detect statistical differences.\n\n# Testing Errors and Types of Significance\n\n* **Type I Error (False Positive):** Rejecting H_0whenwhenH_0isactuallytrue.TheprobabilityofcommittingaTypeIerrorisboundedbythechosensignificancelevel(is actually true. The probability of committing a Type I error is bounded by the chosen significance level (\alpha).\n* **Type II Error (False Negative):** Failing to reject H_0whenwhenH_0 is actually false.\n* **Significance Thresholds (\alpha):∗∗Standardlevelsinclude):** Standard levels include0.05(typicalbalance),(typical balance),0.01(usedwhenTypeIerrorcarriesseverecosts),and(used when Type I error carries severe costs), and0.1.\n* **Statistical vs. Practical Significance:**\n * **Statistical Significance:** Indicated strictly by p\text{-value} < \alpha$.

    • Practical Significance: Evaluates whether the real-world magnitude of an effect is meaningful (e.g., a weight loss program yielding a statistically significant average loss of 0.25 pounds0.25\, \text{pounds} over 6 months lacks practical significance).

Confidence Intervals

  • Definition: A confidence interval provides an interval estimate containing a range of plausible values for a population parameter (μ\mu).

  • Structure:     Point Estimate±Margin of Error\text{Point Estimate} \pm \text{Margin of Error}     yˉ±t∗×SE(yˉ)\bar{y} \pm t^* \times SE(\bar{y})

  • Properties:

    • The center of a confidence interval is always the sample statistic (yˉ\bar{y}).

    • Interpretation: A 95%95\% confidence interval means that 95%95\% of all random samples taken from the population using the same procedure will produce an interval containing the true population parameter (μ\mu).