EN: Test for correlation and independence between variables: Pearson, Spearman, and chi-square tests.
VN: Kiểm định tương quan và độc lập: Pearson, Spearman, chi-square.
EN: Tests H₀: ρ = 0 (no linear relationship) for jointly normal data.
VN: Kiểm định H₀: ρ = 0 với dữ liệu phân phối chuẩn đa biến.
A sample of n = 30 has correlation r = 0.40. Test H₀: ρ = 0 at α = 5%.
EN: Non-parametric — based on ranks rather than raw values; robust to outliers and non-normality.
VN: Phi tham số — dựa trên thứ hạng, không nhạy cảm với outlier.
For \(n > 30\), test using same t-formula as Pearson with \(r_s\) replacing \(r\).
n = 8, sum of squared rank differences = 12. Compute Spearman correlation.
EN: Test whether two categorical variables are independent — uses an r × c contingency table.
VN: Kiểm định độc lập 2 biến phân loại bằng bảng tần số.
2×2 table: row totals 60 and 40, column totals 50 and 50, n = 100. Expected count for cell (1,1)?