Solution: Penalty Values by Hand
Exercise: Penalty Values by Hand
Solution
The L1 penalty is . The squared L2 penalty is .
Takeaways
- State the assumption that makes the method valid before trusting the result.
- Connect the computation back to the finance workflow, not only to the code.
- Check whether the result depends on average-case behaviour, validation design, or numerical safeguards.