The live scripts (with file extension .mlx) are specially prepared MATLAB files that contain text explanations, images as well as executable MATLAB code. Just load them from your MATLAB installation. You can also look at a webpage online (well, not from within github, but otherwise it looks fine. It is the html that MATLAB generated) or download a pdf. Both are automatically generated from the running live script and contain everything, input as well as output, including plots.
My book Physics and Finance was published by Springer in March 2021 as part in the Series of Undegraduate Lecture Notes in Physics. The German translation was published in October 2023.
- Markowitz portfolio optimization for portfolios with risky assets only and with a risk-free asset included: live script and pdf.
- Log-normal distribution function explorer: live script and pdf.
- Call option explorer: live script and pdf.
- Delta hedging simulation: live script and pdf.
- Fitting a straight line to data points with error bars: live script and pdf.
- Education pays off as shown by data from the US bureau of labor statistics: live script and pdf.
- Chi-squared distribution explorer: live script and pdf.
- Student t-distribution and hypothesis testing: live script and pdf.
- F-test explorer: live script and pdf.
- Box-Jenkins analysis of CO2 data from Mauna Loa: live script and pdf.
- Cantor set generator: live script and pdf.
- Koch's snowflake generator: live script and pdf.
- Multi-fractal walk simulation of multi-fractal stock charts: live script and pdf.
- Central-limit theorem visualization: live script and pdf.
- Monte-Carlo pricing kernel from path integrals: live script and pdf.
- Equilibrium of the Robinson-Crusoe economy: live script and pdf.
- Donkey's solution of an optimal-control problem: live script and pdf.
- Controlling the Robinson-Crusoe economy with an LQR regulator: live script and pdf.
- RSA public-key cryptography, a very basic illustration: live script and pdf.
- Elliptic-curve arithmetic, an illustration: live script and pdf.
- Elliptic-curve signature with ECDSA illustrated: live script and pdf.