Documentation / How To

Formulas

Measures of Central Tendency

Median Location
\[ median location = (n+1) / 2 \]
Median when the location falls between two scores
\[ a + b / 2 \]
Mean
\[ \bar{X} = \frac{\sum x} {n} \]
Range
\[ Range = X_{Max} - X_{Min} \]
Interquartile Range
\[ IQR = X_{Q3} - X_{Q1} \]
Average deviation (Module 4)
\[ \bar{D} = \frac{\sum(x - \bar{X})}{n} \]
Variance
\[ \bar{D} = \frac{\sum(x - \bar{X})^2}{n-1} \] \[ s^2 = \frac{\sum(x-\bar{X})^2}{n-1} \]
Standard deviation
\[ s = \sqrt{\frac{\sum(x-\bar{X})^2}{n-1}} \]

Module 5: Probability and Hypothesis Testing

Probability (Module 5)
\[ P = \frac{\text{Number of times x occurs}}{\text{Total number of events}} \]
Bounding rule (Module 5)
\[ 0 < P < 1 \]
Odds (Module 5)
\[ Odds(A) = \frac{ProbA}{Prob(NotA)} \] \[ Odds = \frac{Prob}{(1-Prob)} \]
Hypotheses (Module 5)
\[ H_0: \mu_1 = \mu_2 \] \[ H_1: \mu_1 < \mu_2 \]
z-score (Module 5)
\[ z = \frac{(x-\bar X)}{s} \]

Module 6: Testing for Significance

Confidence interval for a mean / estimating a population mean from a sample (Module 6)
\[ CI = \bar{X} \pm t_a(\frac{S}{\sqrt{n-1}}) \]
Degrees of freedom
Confidence interval for a proportion (Module 6)
\[ CI = p\pm t_a\sqrt\frac{p(1-p)}{n} \]
Confidence level (Module 6)
Confidence level \( = 1 - \alpha \), so \( \alpha = .05 = 95\% \) and \( \alpha = .01 = 99\% \)
One-sample t-test (Module 6)
\[ t = \dfrac{\bar{x} - \mu}{s / \sqrt{n}} \]

\( H_0 \) = the two means are equal, or \( \bar{X} = \mu \)

\( H_1 \) = the two means are not equal, or \( \bar{X} \ne \mu \)

Critical values

95%: one-tailed 1.65, two-tailed 1.96

99%: one-tailed 2.33, two-tailed 2.58

Module 7: Chi-Square and Measures of Association

Chi-square (Module 7)
\[ \chi ^{2} = \sum \dfrac{( f _{o} - f _{e} ) ^{2}}{f _{e}} \]
Frequency expected (Module 7)
\[ f _{e} = \dfrac{R M \times C M}{n} \]
Degrees of freedom for a crosstab (Module 7)
\[ df=(R-1)\times(C-1) \]
Cell percentage (Module 7)
\[ cell \; \% = \dfrac {cell \; count}{column \; total} \times 100 \]
Phi, 2x2 tables (Module 7)
\[ \phi = \sqrt{\frac{\chi^2}{n}} \]
Cramer's V, larger than 2x2 (Module 7)
\[ V = \sqrt{\frac{\chi^2}{n(k-1)}} \]
Gamma, ordinal by ordinal (Module 7)
\[ \gamma = \frac{CP-DP}{CP+DP} \]

Module 8: Indices and Factor Analysis

Index (Module 8)
\[ Index = (\sum x_1, x_2, ... , x_k) - X_{\sum min} \]
Scale (Module 8)
\[ Scale = [\sum (x_1 \times x_{1w}), (x_2 \times x_{2w}), ..., x_k] - x_{\sum min} \]