Transformations
80 words
1 min read
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
# Transformations ## 6.1 Box-Cox Transformation $$ y^{(\lambda)} = \begin{cases} \frac{y^\lambda - 1}{\lambda} & \lambda \neq 0 \\ \ln(y) & \lambda = 0 \end{cases} $$ Find $\lambda$ by maximum likelihood to satisfy normality and homoscedasticity. ## 6.2 Common Transformations Issue Transformation Skewed right $\ln(y...

Transformations
6.1 Box-Cox Transformation
y(λ)={λyλ−1ln(y)λ=0λ=0Find λ by maximum likelihood to satisfy normality and homoscedasticity.
6.2 Common Transformations
| Issue | Transformation |
|---|---|
| Skewed right | ln(y) , y |
| Skewed left | y2 , y3 |
| Heteroscedasticity | Weighted least squares |
| Non-linearity | Polynomial terms, ln(x) |
6.3 Weighted Least Squares
Minimise ∑wi(yi−xiTβ)2 where wi=1/σi2.