Quiz 2

Transformations

80 words
1 min read
Python Week 1: the first filter for runtime behavior
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λ1λλ0ln(y)λ=0y^{(\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

IssueTransformation
Skewed rightln(y)\ln(y) , y\sqrt{y}
Skewed lefty2y^2 , y3y^3
HeteroscedasticityWeighted least squares
Non-linearityPolynomial terms, ln(x)\ln(x)

6.3 Weighted Least Squares

Minimise wi(yixiTβ)2\sum w_i (y_i - \mathbf{x}_i^T \beta)^2 where wi=1/σi2w_i = 1/\sigma_i^2.
β^WLS=(XTWX)1XTWy\hat{\boldsymbol{\beta}}_{WLS} = (\mathbf{X}^T\mathbf{W}\mathbf{X})^{-1}\mathbf{X}^T\mathbf{W}\mathbf{y}
Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.