Projections, Hyperplanes and Half-Planes
Core Titles
Key headlines and terms for quick recall- Projection of onto :
- Orthogonal projection onto a subspace
- Projection matrix
- Hyperplane — codimension-1 affine subspace
- Half-plane / Half-space
- Distance from point to hyperplane
Basic Idea
What it is, why it matters, how it worksProjection of one vector onto another
The component of in the direction of is the scalar projection . The vector projection is:
Property. is orthogonal to (this is the "drop the perpendicular" interpretation).
Orthogonal projection onto a subspace
Given subspace , the projection of onto is: where is the projection matrix. Properties: (idempotent), (symmetric).
The residual is orthogonal to . This is exactly what least squares does.
Hyperplane
In , a hyperplane is the set with . It has dimension .
- In : hyperplane = line.
- In : hyperplane = plane.
- In : -dim flat.
The vector is normal (perpendicular) to the hyperplane.
Half-space
Two half-spaces meeting at the hyperplane.
Distance from point to hyperplane
For and hyperplane :
Why this matters in Data Science
- Linear regression = orthogonal projection onto the column space of the design matrix.
- SVM finds the maximum-margin hyperplane .
- Logistic regression separates classes via a hyperplane decision boundary.
- PCA projects high-dim data onto low-dim subspaces.
Mind Map
Visual structure of the conceptPROJECTIONS & HYPERPLANES
├── projᵥ u = ⟨u,v⟩/⟨v,v⟩ · v
├── u − projᵥ u ⊥ v
├── Orthogonal projection onto col(A)
│ ├── P = A(AᵀA)⁻¹Aᵀ
│ ├── P² = P, Pᵀ = P
│ └── Least squares solution
└── Hyperplanes
├── wᵀx + b = 0
├── Normal vector w
├── Half-space wᵀx + b ≥ 0
└── Distance |wᵀx₀ + b| / ‖w‖
Exam Q&A
Part A (2 marks) and Part B (20 marks) style questionsPart A (2 marks each)
Q1. Give the formula for projection of onto . .
Q2. Define a hyperplane in . The set for some and scalar .
Q3. Give the distance formula from a point to a hyperplane. .
Q4. What is the projection matrix onto the column space of ? . It is symmetric and idempotent.
Part B (20 marks)
Q. Derive the projection of one vector onto another. Define hyperplane and half-plane. Derive the distance from a point to a hyperplane and discuss its use in Support Vector Machines.
Projection of onto . Write where . Take inner product with : (since ). Solving:
Hyperplane. In , a hyperplane is the set where . It is -dimensional, with as a normal vector.
Half-spaces. and .
Distance from to . Take any point (so ). The shortest distance from to is the length of the projection of onto (since ):
Application — Support Vector Machines (SVM). Given labelled data with , an SVM seeks a hyperplane that separates the classes with maximum margin.
For correct classification: for every .
The geometric margin between the two parallel hyperplanes is . Maximising the margin is equivalent to:
The optimisation finds the maximum-margin hyperplane. The points satisfying equality are the support vectors — they sit exactly on the margin boundary and entirely determine the classifier.
Once trained, a new point is classified by the sign of , with confidence proportional to the distance from the hyperplane.