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 () approximates the population mean (). In the tipping dataset, the point estimate for rainy day tips is .
Hypotheses Setup:
Null Hypothesis (): A statement of equality setting the baseline comparison point (e.g., ).
Alternative Hypothesis (): A statement of inequality or difference (e.g., , , or ).
Test Statistic (-value): Represents the number of standard errors the sample statistic () lies away from the hypothesized parameter under .
Decision Rule: If the -value is less than the significance level ( = 0.05H_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.50.5.\n* **Central Limit Theorem:** If sample data is skewed or bimodal (such as the building energy efficiency dataset with 768tN \ge 30).\n* **Sample Size Impact:** Increasing sample size (Ntp-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_0H_0\alpha).\n* **Type II Error (False Negative):** Failing to reject H_0H_0 is actually false.\n* **Significance Thresholds (\alpha0.050.010.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 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 ().
Structure:
Properties:
The center of a confidence interval is always the sample statistic ().
Interpretation: A confidence interval means that of all random samples taken from the population using the same procedure will produce an interval containing the true population parameter ().