hypotesetest
Hypothesis testing is a formal procedure in statistics used to assess evidence about a population parameter based on sample data. It begins with two competing statements: the null hypothesis H0, which asserts no effect or no difference, and the alternative hypothesis Ha, which posits that an effect or difference exists. A significance level alpha, commonly set at 0.05, defines the threshold for deeming the observed data unlikely under H0.
After data collection, a test statistic is calculated according to the chosen method (for example a t-statistic
Concepts of error are central: a Type I error occurs if H0 is true but rejected, while
Tests can be one-sided or two-sided. Common tests include t-tests for means, chi-square tests for independence,