XlsxEdit Library First User
I got my first active user on Xlsx Edit who opened issues :) another mini milestone achieved.
I will implement his feature requests.
I got my first active user on Xlsx Edit who opened issues :) another mini milestone achieved.
I will implement his feature requests.
Finished my C++ Exam and I got an average >90% yay!
A new Baruch certificate with distinction!
Expectation
Variance: $\mathrm{Var}(X)=\mathbb{E}[(X-m)^2],\qquad m=\mathbb{E}[X].$
Uniform distribution: $X\sim\mathcal{U}([a,b])$
Exponential distribution: $f(x)=\lambda e^{-\lambda x}$
Normal distribuiton: $f_{m,\sigma}(x)=\frac{1}{\sqrt{2\pi\sigma^2}}\exp\!\left(-\frac{(x-m)^2}{2\sigma^2}\right).$
Joint density: X,Y random variables and double integral for probability
Marginal density: We integrate over one variable so only the other is left
Independence: Joint heights factor into product of marginal heights
MLE
Hypothesis testing
Confidence intervals
17.08 finished recap and went through exam
You're saying this because you're insecure.
You keep saying that I'm different, but those words are looking down on me more than anyone. Are you saying those words because you know how much effort I've put in and how I've lived?
All you're doing is disregarding your own effort. Doing it to yourself. By categorizing it all under the word talent.
If you're weak, family can become a burden and a weakness. For truly strong people family becomes their true strength.
The older you get the less confidence you have. You rely on experience instead. What looks like confidence is just familiarity.
Started recapping probability theory and statistics which I had in 4th semester of ETH.
Laplace means probability have same chance so problem turns into occurences / total set
Conditional Probability: $\mathbb{P}[A\mid B]=\frac{\mathbb{P}[A\cap B]}{\mathbb{P}[B]}.$
Law of total probability: $\mathbb{P}[A]=\sum_{i=1}^n \mathbb{P}[A\mid B_i]\,\mathbb{P}[B_i]$ when B are partition of $\Omega$.
Bayes: $\mathbb{P}[B_i\mid A]=\frac{\mathbb{P}[A\mid B_i]\,\mathbb{P}[B_i]}{\sum_{j=1}^n \mathbb{P}[A\mid B_j]\,\mathbb{P}[B_j]}.$ Given the outcome what is probability of hypothesis.
$A$ and $B$ are independent when $\mathbb{P}[A\cap B]=\mathbb{P}[A]\,\mathbb{P}[B].$
Multiple events: Every subcollection needs to be independent
Random Variables: independent and identically distributed
Measurable map, grouping of events with different payoff (function).
Continous:
Discrete:
Bernouille: one yes/no trial
Binomial: n independent Bernouille trails
Geometric: Bernoille untill first success
Poisson: Approximation of Binomial for rare events, large n small p, $\lambda=np$, $\mathbb{P}[N=k]=e^{-\lambda}\frac{\lambda^k}{k!},\qquad k=0,1,2,\ldots.$
Level 9 — exact BS, perpetual American, Monte Carlo, SD/SE, Excel COM, and explicit FDM puts.
Implementation of European Option Pricing with Black-Scholes Model
Put Call Parity relationships
Matrix Pricer to price multiple options
Option Sensitivities aka Greeks
(so $P = C + K e^{-rT} - S$, and $C = P + S - K e^{-rT}$)
Perpetual American Option Pricing
GBM paths via Euler–Maruyama; European call/put by averaging discounted payoffs; sweep NT / NSim on Batches 1, 2, 4.
NSim).($k = T/N$, $N$ = time steps)
NSim cuts statistical noise; NT cuts Euler time-discretization bias — both needed.N=10) leaves a bias floor even with millions of paths.NSim often matters more than N; long $T=30$ needs much larger NT and NSim.Added generic SD / SE on the vector of discounted path payoffs (Statistics.hpp), wired into TestMC / RunMC; reported SD/SE vs NT / NSim on Batches 1–2.
($M$ = NSim)
N or NSim change.NT barely affects SE.N is large enough, absolute error vs exact is often on the order of SE (MC noise, not Euler bias).NSim → harder to match exact.Ran Duffy Excel demos (TestSingleCurve, TestTwoCurve, TestMultiCurve) on Windows via Parallels + Office 365 (path / #import / Boost / IntDir fixes for Mac→VM). Then TestExactMeshExcel: mesh of $S$, exact BS prices from Group A into a vector, charted in Excel.
Explicit Euler on the Black–Scholes PDE (European put); TestBSPDE1 + Excel. Batches 1–4 with mesh $S_{\max}=2K$, $J=2K$, $N=9999$.
ParabolicPDE.hpp — IBVP callbacks ($\sigma$, $\mu$, $b$, $f$, BCL, BCR, IC)Mesher.hpp — uniform grids in $S$ and $t$FDM.hpp — one explicit Euler time stepFDMDirector.hpp — meshes + IC + time loop to $T$Level 9:
get it working:
Monte Carlo Simulations
FDA (Finite Difference Approximation)
Finite Difference Methods
Lattice methods
Research on Python Library
Same day I was also able to publish the library to PyPI and create a website for it.
The growth website is live now.
Now future monthly learnings should be more complete.
I fixed cloudflare proxy that caused login issues (now wired locally), went live with the new website with new ansible scripts.
Did more lectures the past 2 weeks on C++. Finished Level 2 till 8. Planning on finishing 9 and 10 and take the exam this month.
Started growth.jonasruilong.com as the personal growth hub so I remember what I have done and learned so I dont make the same mistakes again :(
Achievements:
Professor showed that random dart throwing can be used to estimate pi. $ \sqrt{x^2 + y^2} < 1 $ to count if in the circle or out of circle.
$ 4 * \frac{\text{number of darts in the circle}}{\text{number of darts}} = \pi $
makes sense because if r = 1, then area of square will be 2x2 = 4 and area of circle will be $\pi$.
Started working on a library to edit xlsx files that does not break formatting (unlike openpyxl). I was surprised that there aren't any better libraries out there for python. Learnt the structure from python-docx and ppt from scanny, parts factory and using lxml to do surgical edits.
Excel is simlar to word document, all the contents are saved in xml and zipped. It also usese relationships to link all the files together.
I added support to pandas as well.
I will try to make it into a public library.
Started the Baruch C++ Programming for Financial Engineering Certificate
Lecture 1:
Exam for the ODE PDE Baruch course
Planned a trip for Jen in Switzerland, could also recommend it to Aristeo / Pau when they visit me
I could generate html and then turn it into a really nice pdf for the planning
Continued working on my education website
Achievements:
Feeling sad about Coco passing away.
Settled on Ubuntu as the production host for the Jonas sites — one server running the apps behind a reverse proxy.
Infra is described as Ansible playbooks so base setup, deploys, and rebuilds stay repeatable when migrating or standing up a new box.
Started a shared login service for the Jonas sites — one place to sign in, so edu, homepage, and later apps don’t each keep their own accounts.
Apps stay public where they should; private materials stay behind roles decided per app. No passwords stored on the client sites.
Started edu.jonasruilong.com as a personal lecture-notes library — Kanti Wettingen → ETH Zürich → Baruch
Achievements:
Started jonasruilong.com as the personal hub — story and navigation into other apps.
Explored layout ideas and chose a scroll-driven 2.5D “scroll opera”:
Welcome first, themed worlds as portals, Dock later.
Achievements:

hue 245, chroma 0.002. Tiny cool tint to counter the warm bias most monitors have at low brightness. Apple-HIG trick — looks like pure gray on your screen.
Interview:
Sanity check at the end is useful, you can tell the interviewer that you will do a sanity check
Did more but not going to put it here for now, as I already have it on my edu site
CAPM: combination of risk free asset and tangent portfolio
Sharpe Ratio: Slope of riskfree + risky of efficient frontier = sharpe ratio
Tangent Portfolio has the highest sharpe ratio among risky assets
2 Weeks of IMC Prosperity 4 Challenge
Analyse the Problem & Data clearly first
Generate clear logic first, then a plan on how to implement it and only then generate the program
Pay attention to small details
Clearly visualise and analyse the data first, think of a few ways that could solve it
Think what might affect valuation
Sharpe ratio -> volatility could be an important factor -> non linear parameters of it
Build a baseline model
Could use test data in training as well
Should we use ML?
Decision Trees
Lec 06:
Random vectors and their distributions
Continued module work — fields, views, security ACLs, record rules.
Eye selection -> new adjustment layer -> Hue -> red channel reduce saturation -> add new adjustment layer -> Alt + Drag to have selection -> Hue -> colorize
Portfolio Management:
Options:
Arbitrage opportunity
Pice bounds for options
Put-call parity
Binomial model
Blackscholes
Pricing by arbitrage
We have multiple linear independent assets (think of polymarket contracts)
Arbitrage portfolio
Economic analysis of asset markets
Uncertain environments:
Preference relation
Complete $for any L and L′∈L(Z ) we have L ⪰L′or L′⪰L$
Transitive $(L1 ⪰L2 and L2 ⪰L3) ⇒L1 ⪰L3$
VNM (Von Neumann and Morgenstern) Expected Utility Theory
Independence
Continuity
Risk Averse
Risk increase
SOSD: Second-order stochastic dominance: if dominant then less risky than other
$EL[x] ≥EL′[x]$
$\int_{-\infty}^{y} F_L(x)dx \leq \int_{-\infty}^{y} F_{L'}(x)dx$ less weight on smaller returns
Mean preserving spread -> more risk
Quantifying Risk Aversion
Lecture on Financial Engineering
Lecture 1-6, not sure which ones I did this month
Exercise notes for Financial Engineering.
Continued taking Large Scale AI lectures.
Supercomputer lecture by CSCS
Communication overhead
Model & Data Parallelism
Mixture of Expert Models
Exercise notes for Large Scale AI.
Started Odoo custom module — SAT/CFDI compliance, manifest, menus, actions.
Did Computer Vision Lectures
Lecture on Financial Economics.
Lecture 1-3:
Introduction to financial markets, asset pricing, and portfolio management.
Engineering and optimizing large-scale AI systems on HPC/GPU clusters — model optimization, distributed workloads, profiling, and team projects.
From logic and limits through multivariable integration, vector calculus, complex analysis, and Fourier series. Definitions, method maps, worked examples, and exercises for ITET. See Notes
Usually made of Leather Edge Paint
See notes or
Halbtax: 190Fr +
Zurich - Baden 14.2Fr a day pass
Halbtax plus for 800Fr get 1000Fr (travel for 20% off)
Halbtax plus for 1500Fr get 2000Fr (travel for 25% off)
Monats Abo: 242 * 12 = 2904
Jahres Abo (Baden Zürich): 2226
GA nr 1 3995Fr, nr 2 2860
Generally 30% withholding tax on dividends for foreigners
Swiss-USA tax treaty
Tax Free / not subject to 15% for Swiss:
Estate Tax:
Based on Racket like python but with contracts (controlling types and tests etc)
Did more lectures on Management of Digital Transformation