Mathematics for Modelling (Log, Exp, Calculus)
Context: FIT2086_MOC · the algebra + calculus toolkit every derivation leans on · used to differentiate log-likelihoods when fitting models (MLE, coming weeks)
Quick Revision
- 🎯 Objective: the log/exp identities that turn products into sums, plus the derivative rules (product, chain, partial) needed to maximise a function ➔ the mechanics behind every parameter estimate.
- ⚡ Key Constraint: turns a product into a sum () — this is why we maximise the log-likelihood: the i.i.d. product becomes a differentiable sum .
📝 Logarithm identities
- Convention ➔ in this unit means the natural log (, base ), the inverse of .
- The key move ➔ — collapses a likelihood product into a sum.
📝 Exponential identities
- Inverse pair ➔ and (for ).
📝 Derivative rules
📝 Partial derivatives
- Definition ➔ differentiates w.r.t. while treating as a constant.
- Worked example ➔
- Why it appears ➔ models have several parameters; maximising a log-likelihood means setting each partial derivative to zero.
⚠️ Common Mistakes
- 💡 of a sum does not split ➔ ; only products/quotients/powers simplify. This is why the likelihood product is what becomes a sum, not the density itself.
- 💡 Chain rule is the usual omission ➔ differentiating gives , not — the inner derivative is essential.
- 💡 Partial ⇒ freeze the others ➔ every variable except the one you differentiate is a constant; forgetting this drops terms.
- 💡 Maximise the log, not the raw likelihood ➔ is monotincreasing, so the maximiser is unchanged, but the sum is far easier to differentiate than the product.
🧠 Active Recall
Why do we maximise the log-likelihood instead of the likelihood itself?
Answer
- Short answer: the likelihood of an i.i.d. sample is a product , which is awkward to differentiate. Taking turns it into a sum via , and because is strictly increasing the maximiser is identical.
- Why: Monotone transform + sum rule for derivatives ➔ maximising a monotone function of maximises ; and by linearity, so a sum differentiates term-by-term where a product would need the product rule repeatedly.
Compute and name the rules used.
Answer
- Short answer: .
- Why: Linearity → chain rule ➔ treat as constant and pull it out (linearity); differentiate as times with (chain rule), giving ; combine: .