Theta mathematical notation
The theta symbol θ is a lowercase Greek letter. In geometry, trigonometry and physics it usually names an angle. In statistics and machine learning it names parameters: the numbers a model learns from data, or that a probability distribution depends on. Capital Θ, as in Θ(n log n), is asymptotic notation for how fast a function grows.
Read it as: theta, THAY-tuh.
Type it: Unicode U+03B8 (capital Θ is U+0398) · HTML θ · LaTeX \theta
Mac: switch to the Greek keyboard layout and press U, or press Globe-E and search for theta.
Windows: in Word, type 03B8 and press Alt+X. Alt+233 on the numeric keypad types capital Θ.
Angle: An angle, in degrees or radians. Polar coordinates write a point as (r, θ), and cos θ between two vectors is the cosine similarity used to compare embeddings.
$$\cos\theta=\frac{\mathbf a\cdot\mathbf b}{\lVert\mathbf a\rVert\,\lVert\mathbf b\rVert}$$
For a = (1, 0) and b = (1, 1): a · b = 1, ‖a‖ = 1 and ‖b‖ = √2, so cos θ = 1/√2 ≈ 0.707 and θ = 45°, or π/4 ≈ 0.785 radians.
Code expects radians. Python's math.cos(45) returns about 0.525, the cosine of 45 radians; math.cos(math.radians(45)) gives the cosine of 45°.
Model parameters: All of a model's learnable weights and biases, collected into one vector. f(x; θ) or p(y | x; θ) marks a function that depends on them, and training searches for the θ that makes the loss smallest.
$$\theta_{t+1}=\theta_t-\eta\,\nabla_\theta\mathcal L(\theta_t)$$
Take the loss L(θ) = (θ − 3)², start at θ = 0 and set the learning rate η = 0.1. The gradient is 2(0 − 3) = −6, so one step gives θ = 0 − 0.1 × (−6) = 0.6. The next step gives 1.08, and θ keeps moving toward 3.
θ usually stands for every parameter at once. In a model with 7 billion parameters, θ is a vector with 7 billion entries, and θ* marks the values that minimize the loss.
Parameter of a distribution: In statistics, θ is the unknown number a probability distribution depends on, such as a coin's probability of heads. An estimate of θ computed from data is written θ̂, read theta hat.
$$\hat\theta=\frac{\text{number of heads}}{n}=\frac{7}{10}=0.7$$
Flip a coin 10 times and get 7 heads. The maximum-likelihood estimate of θ = P(heads) is θ̂ = 7/10 = 0.7.
θ is the true value, which no sample reveals exactly; θ̂ is the number you compute. Another 10 flips can give a different θ̂ while θ stays the same.