A small corner of the internet, kept by hand

Hello, I'm Kexin.
I like things that
take a long time to make.

I'm a student who studies mathematics, reads philosophy, carves wood, and builds small tools that try to make sense of the world. This site is where I keep the projects, the reading notes, and the objects I've made along the way — slowly, and mostly by hand.

StudyingMathematics & Philosophy
MakingWoodcarving & Small Tools
PlayingOboe & Small Games

Most of what I care about lives somewhere between thinking and making. On one side, I keep a thick notebook of mathematics — linear algebra, optimization, principal component analysis, the models that turn messy data into decisions. On the other side, I keep a workbench: a plane, a knife, and pieces of wood slowly becoming useful things.

I read philosophy for the questions it refuses to let me put down, and I write code for the opposite reason — because it lets me put questions down, carefully, one step at a time, and check whether the answer actually holds.

Currently

  • Building an interactive LLM token ROI calculator
  • Backtesting an LSTM options-signal model
  • Filling the reading shelf with real notes
  • Planning the next thing to carve
01 — Projects

Things I've built

Three projects — each now live as an interactive tool you can open and try.

AI Token — an LLM Token ROI Calculator

Independent Developer  ·  2025 – Present  ·  live interactive tool

  • Modeled how LLM vendors price tokens, tracing the chain from compute cost to per-token price to product value.
  • Collected and normalised the published rates of 30 models across 8 vendors — USD to CNY, with off-peak, peak and introductory tiers kept separate — to calibrate the model's parameters.
  • Built a working calculator for both sides of the market (buying an API or owning inference), with prompt caching, a price/volume sensitivity grid and a break-even chart.
  • Encapsulated the ROI computation as a reusable skill invoked by the agent, returning the usage volume and price at which an LLM-based product breaks even.
Open the live calculator ↗ Move the sliders yourself · opens in a new tab

Inside the tool · four views of the same model

Deep-Learning Prediction of Options Trading Signals

Independent Researcher  ·  2025 – 2026  ·  live interactive tool

  • Built an LSTM time-series model generating buy/sell signals for JPMorgan Chase (JPM) stock and options.
  • Incorporated market (S&P 500), sector (XLF), and volatility (VIX) indices as features capturing systematic risk.
  • Assembled daily data 2018–2026 via Python pipelines (pandas, yfinance); designed backtesting and risk-evaluation procedures to validate predicted signals out of sample.
Open the live prediction tool ↗ Current signal, options play & model accuracy · opens in a new tab

Inside the live tool & the data behind it

Sizing the Printer Market — a TAM Estimation Tool Built on AI Agents

Independent Developer  ·  2025 – 2026  ·  live interactive tool

  • Built an AI agent estimating the total addressable market for printers from first-hand industry measurement data.
  • Abstracted the estimation procedure into a reusable skill — fixed market segments, data inputs, and calculation steps — so every run of the agent follows the same auditable logic.
  • Shipped the method as a five-step tool: data entry, TAM estimation, two-path reconciliation, hold-out backtesting and next-month production forecasting.

The method. The tool estimates the printer market along two independent paths that must reconcile before any number is trusted: a bottom-up sum over customer segments (segment size × device penetration × replacement rate × device price, plus installed-base consumables spend) and a top-down annualisation of the last twelve months of brand shipments; their relative gap has to stay within 10%. From the same data it forecasts next month's output by blending three models — trend × seasonality, a de-seasonalised three-month average, and year-on-year extrapolation — weighting each by the inverse of its own backtest MAPE rather than averaging them, and reporting a 90% interval from rolling hold-out errors. Every method is first scored on a hold-out backtest, so a forecast is used only once its error is acceptable. All calculations are deterministic formulas with no LLM in the loop; messy spreadsheets are handled by fuzzy header matching and automatic date and unit cleaning, while human judgement enters through one explicit, auditable adjustment coefficient.

Open the live TAM tool ↗ Upload your own Excel · opens in a new tab

Inside the tool · three steps of the same audit trail

02 — Reading

Books, underlined

Notes on the philosophy books I've been reading.

On the shelf

pick a note →

Cover of Hannah Arendt's Eichmann in Jerusalem

the first book on this shelf

Reading note · philosophy

Eichmann in Jerusalem

A Report on the Banality of Evil  ·  Hannah Arendt, 1963  ·  a reading note by Kexin

If I had been in Eichmann’s position, I think I might have carried out orders too. I would hesitate for a long time if I were asked to kill someone — but if I were truly placed in his situation, simply as an executor, I think I might really have done it. I would feel less guilty than if I had killed someone myself, because it would not be me who was killing: I would be nothing more than a knife. I would not be the killer. The deaths would not be directly caused by me, only indirectly, so I might have stood by as a third party, watching something happen without stopping it. Perhaps later I would realize what I had done, but in the moment I might have just done it.

I think this because of how I feel in group work. When I do a group assignment, I am noticeably more relaxed than when I work on a project alone. In competitions I was often the person who looked up the data, and I clearly felt reassured, because whether we did well or poorly, someone else would share the burden with me. That feeling — of responsibility being divided until almost none of it seems mine — is very much like Eichmann’s position.

Another point is Arendt’s choice of subject matter. This is a very sensitive topic, but I strongly support writing about it in order to provoke people’s thinking. I tend to avoid such topics myself, and I think most people do too; my usual reaction is to skip over words like “Holocaust.” That is a form of avoidance, and I do not think avoidance is a good thing. People still need to verify history, because the more it is ignored, the more it will be forgotten. This book has made me a little less eager to look away, and perhaps in the future I will take the initiative to learn more about this history.

I also read some online discussions about whether Eichmann was right or wrong. I think it is hard to give a definitive answer, but thinking about it can still serve as a warning to me: not all orders should be obeyed, and responsibility is not truly erased just because one’s share of it is not the largest. One still needs to think independently. One should not unconditionally obey superiors or people in authority — there is always the option to refuse.

Cover of Michael J. Sandel's Justice: What's the Right Thing to Do?

the second one — on fairness

Reading note · philosophy

Justice: What’s the Right Thing to Do?

Michael J. Sandel, 2009  ·  a reading note by Kexin

First, the three open-ended cases at the beginning of the book, and my initial reactions. As for the trolley problem: I think I would pull the lever, but I would not push someone off the bridge. Pushing someone off the bridge is directly equivalent to killing them, whereas in the trolley scenario, in my mind, it is a question of whether people will die and how many will die, rather than a question of whether I am killing anyone. The question of how many people die is something I approach from a third-person perspective.

As for price gouging after a hurricane, I think it is reasonable. Bottled water would be a scarce resource at such a time, so raising the price is reasonable and might actually allow more people to buy water, rather than letting one person buy up all of it.

As for surrogacy, my first reaction was that the court should enforce the contract, because regretting the act would amount to breaching it, which would undermine the credibility of the law and lead to more serious consequences.

There is also the scenario in which Nozick says that owning oneself and selling a kidney is not a problem, because it is a matter of free choice. But since no one wants to sell a kidney and only does so when they are backed into a corner, they are in fact being coerced. I oppose surrogacy because some things should not be bought or sold, no matter how voluntary the transaction is. The bigger reason is that I am afraid. I am afraid that one day, if surrogacy becomes commodified, I might be pushed to extremes or kidnapped and forced to do something that harms myself, simply for the sake of profit. Therefore, I believe that something that harms human life should not enter the market.

As for Rawls’s theory that natural talents are all a matter of luck, and that the grades I received were also a matter of luck — my first reaction was to object, because my grades also came from my own effort, and to summarize them as luck denies that effort. But thinking about it from another angle, there are grades I worked hard for but did not receive. I once entered a modeling competition, spent a great deal of energy learning it from scratch, studied very hard and very seriously, and in the end did not win an award. In that case, I would actually attribute it to luck. So I am conflicted, and therefore I think there is some truth to what Rawls says. What this makes me think is that both effort and talent are part of luck, and that luck is like the yin and yang of the Taiji diagram, intertwined. When luck is especially bad, it is when it is about to turn for the better — so one should remain hopeful about the future.

As for Aristotle’s theory that the flute should be given to the best flutist, I think it is correct, but who defines the purpose of a thing is uncertain. Everyone’s view is different, and fairness is also relative. So after reading this book, my answers to the first three questions have not changed, because in all of them I was doing what I believed to be fair. Since the definition of fairness cannot even be pinned down, all I can do is follow my heart.

more notes will live here →

Cover of Bertrand Russell's The Problems of Philosophy

the third one — on knowing

Reading note · philosophy

The Problems of Philosophy

Bertrand Russell, 1912  ·  a reading note by Kexin

I want to start with the definitions I took away from the book. The first is sense-data: look at a table from different angles, perspectives, and distances, and it appears differently every time, with no way to tell which one is the real table. So all we ever see are sense-data. That does not mean things stop existing when no one is perceiving them — a cat can eat the food in a corner where you cannot see it, and the existence of things is the most reasonable explanation for that. Russell also refutes Berkeley’s idealism, the claim that “to be is to be perceived”: we do not necessarily have to be aware of everything we perceive, and the Earth existed long before any human was born, which idealism cannot explain coherently.

Knowledge by acquaintance and knowledge by description are a pair of concepts the book puts side by side: one is the ideas we get by perceiving things directly ourselves, the other is what we understand through descriptions of them. The next chapter shook me much more, because it made me question something I had always treated as an objective law — that the sun will rise in the east tomorrow. Russell uses the example of a chicken that had inferred a pattern and was then killed to make the point. I had already met this example in the science-fiction novel The Three-Body Problem, and the idea finally explained the unease I felt the first time I read it there: it is possible that tomorrow aliens descend on the world and kill us all. So what we are really doing is describing probabilities. There is no absolute certainty that something will happen, or that it never will.

He also introduces a priori knowledge, knowledge obtained without relying on experience. It is abstract — mathematics, for instance — and it is a rational grasp of the relationships in the world. Then there is self-evidence: coming to know something is a matter of logical deduction.

After reading this book, I feel that studying philosophy is a deeply meaningful thing. It is a discipline that can give direction to every other field. As Russell says, the value of philosophy lies in the depth of its questions; mathematics needs philosophy to decide which problems are worth solving. It can make me stronger and give me a greater sense of purpose — and knowing uncertainty can, oddly, make one more certain. Uncertainty lies in knowing that everything is changing and that nothing is absolute. Certainty lies in having a stronger self, a self with a clear purpose.

In fact, when I first read the book I could not quite follow Russell’s view, because he seemed to say that things are only perceived. If the chair I am sitting on is only perceived, I thought, I should fall straight through onto the floor. What he actually means is not that things do not exist, but that we cannot know what they are truly like — they may simply be illusions. That made me think of color. I may see the world completely differently from everyone else, but because I was told as a child that the color of an apple is red, I take it to be red. The color I see might actually be what someone else calls true blue.

I also have my own experience of the inductive method in the book. Every time I do well on an exam, I try to recreate the state I was in beforehand. But once I thought I had recreated it exactly, and the result was very poor. I feel this is the same thing the book is talking about. What I learned was not to stop inducting, but to accept that I cannot completely recreate the past: the things we induct from are never exactly the same, and there are always new factors we cannot grasp. So there is no point spending too much time on inductive reasoning, elusive as it is.

still uncertain, still reading →

03 — Interests

Things made, played, and loved

Off the laptop: wood, music, and games.

the instrument that taught me patience —

The oboe gives the orchestra its tuning note. What that actually takes is a lot of quiet evenings at home with a music stand, a reed, and one more run-through. Two short practice recordings — press play to listen.

Recording 01 · 1:28

An Evening at the Stand

A home practice take with the sheet music open on the stand. The unglamorous part of the instrument: steady breath, even tone, and repeating the same phrase until it sits right.

Recording 02 · 2:00

A Full Run-Through

A longer solo practice recording played straight through. Same instrument, a different evening — and a reminder that progress on the oboe is measured in very small increments.

Primary school · Where it started

Early Days in the Orchestra

An old photograph from my primary-school orchestra. The oboe tunes the whole ensemble, so you learn to be precise, and to be listened to, very early. The recordings above are what it looks like years later.

played, and sometimes made —

Level 1 briefing — two players, one bubble, one flag.

01 / 04
Game 01 · Two-player co-op

Bubble Duo · Co-op

One of the small games I built: two players share a single bubble and have to cooperate to bring it to the flag. Only your head can bounce it, so you have to move together, plan the path, and use each other to reach platforms neither could reach alone. It is a cooperative game — new levels will keep being added over time.

Play the live game ↗ Two players, one keyboard · opens in a new tab

Title screen — Pie War.

01 / 05
Game 02 · A theorem, then reflexes

Pie War

An odd number of players stand on a checkerboard, and each one may only throw a pie at whoever is nearest to them — with an odd number of players, the nearest-neighbour theorem guarantees that someone is never aimed at. Before a match I can set the board size, the odd number of bots, the round time, the number of rounds and how fast the bots throw. Then I fly around, pick an empty tile to land on, and wait for the countdown. Once the battle starts it is half maths and half reflexes: choose a position where few players can target you, throw as many pies as you can, and finish the round with the fewest pies on you. Right now the opponents are bots; online multiplayer is planned next.

Play the live game ↗ Bots live now · online multiplayer planned · opens in a new tab
🐱 Warrior Cats A longer-term plan: rebuild the lake territories from the books in Godot's Terrain3D, so players can actually walk around the map as a cat — hunting, picking fruit, and interacting with the world. Most fans have their own original character with a distinct pelt, so I want a "make your cat" creator where you colour your own OC and drop it into the world. Players could then shape the story, build the Clans' territories and set the rules together, so everyone is really playing a part in it. Planned · concept stage
🎮 More Levels, Coming The co-op game keeps growing — new stages and mechanics are still being designed and added. In progress
04 — Mathematics

The notebook & the club

Handwritten pages from my notes, and what we did in the math club I led.

eight pages from my handwritten notebook —

Handwritten · Page 01

Matrix Algebra

Transpose, products, inverses and the adjugate — the grammar of linear algebra.

my math notebook — 01
Handwritten notes: Matrix Algebra click the page to enlarge
Handwritten · Page 02

Functions & Lagrange Multipliers

Four properties of a function, and optimizing under constraints with the Lagrangian.

my math notebook — 02
Handwritten notes: Functions & Lagrange Multipliers click the page to enlarge
Handwritten · Page 03

Distributions, AHP & TOPSIS

The 3σ rule, weighting by hierarchy, ranking by TOPSIS — then testing it all for sensitivity.

my math notebook — 03
Handwritten notes: Distributions, AHP & TOPSIS click the page to enlarge
Handwritten · Page 04

Principal Component Analysis I

Eigenvalues, eigenvectors and the covariance matrix — fewer dimensions, same story.

my math notebook — 04
Handwritten notes: Principal Component Analysis I click the page to enlarge
Handwritten · Page 05

Principal Component Analysis II

A complete worked example — five indicators, ten firms, variance contribution rates.

my math notebook — 05
Handwritten notes: Principal Component Analysis II click the page to enlarge
Handwritten · Page 06

Differential Equations & Optimisation

Advertising modeled as an ODE, fitted by least squares, solved under bounds.

my math notebook — 06
Handwritten notes: Differential Equations & Optimisation click the page to enlarge
Handwritten · Page 07

Mathematical Programming

Linear, integer, nonlinear, goal programming — a map of the whole optimization family.

my math notebook — 07
Handwritten notes: Mathematical Programming click the page to enlarge
Handwritten · Page 08

Interpolation & Curve Fitting

Interpolation vs. fitting, least squares, and the error metrics that judge them.

my math notebook — 08
Handwritten notes: Interpolation & Curve Fitting click the page to enlarge
01 / 08

turn the pages of the notebook · click a page to enlarge —

President · 1.5 hrs/week · 10 weeks/year

Math Club — Beijing No.2 Middle School

Founded around a simple idea: the syllabus is where math starts, not where it ends.

  • Designed and led weekly lectures on mathematics beyond the school syllabus — for example linear algebra and mathematical modelling.
  • Ran review sessions for younger members: Grade 10 precalculus and Grade 11 calculus, pre-learning each week’s topic and revising before every quiz.
  • Prepared for and competed in JHMT (the Johns Hopkins Math Tournament) together as a team.
Math club session in a classroom, teacher at the whiteboard
Linear Algebra & Mathematical Modelling, LiveA lecture on linear algebra and mathematical modelling — with two visiting teachers joining in and turning it into a Q&A.
Students working through precalculus problems in the classroom
Precalculus, One Week AheadHelping the younger members pre-learn the coming week's material and review before quizzes.

also: JHMT competition prep · a Coursera linear algebra course (Johns Hopkins) we studied together · more sessions to come —