Data analysis#
London house prices, 1995 to 2020#
One of the first notebooks I published took a public dataset of monthly average house prices for every London borough and asked a simple question: how much have prices really moved?

| January 1995 | January 2020 | Rise | |
|---|---|---|---|
| London average | £74,000 | £477,000 | 6.4 times |
| England average | £53,000 | £247,000 | 4.6 times |
| Fastest-rising borough | Hackney | 9.3 times | |
| Slowest-rising borough | Bexley | 5.1 times |
By 2020 there was a huge gap between boroughs, from about £1.18 million in Kensington and Chelsea to about £301,000 in Barking and Dagenham. The notebook also broke the price series into its long-term trend and seasonal pattern, and the dip after the 2008 financial crisis stands out clearly in both lines.
Predicting supermarket spend#
Next came a practice dataset from DataCamp: a fictional supermarket’s loyalty programme, with each customer’s region, years in the scheme, joining month and promotions. The task was to predict how much each customer would spend in a year.
I trained twelve different models, from simple linear regression to XGBoost, and compared them on data they hadn’t seen. XGBoost and gradient boosting did best, but I learned more from one of the weaker models. A single decision tree scored a perfect zero error on its training data and then made errors about twice as large as XGBoost’s on new customers, because it had memorised the training set instead of learning general patterns from it. This is called overfitting.
Tracking digital asset news#
I was following tokenisation closely, so I tried to automate the reading.
- Two scrapers. The first version had separate scripts for two news sites, Ledger Insights and Blockworks, saving each article’s headline, link and date to a spreadsheet. Each site needed its own workarounds, such as clicking a button repeatedly to load older articles.
- One scraper with settings. Version 2 combined them, moved the sites and keywords into a settings file, and appended new articles to a single file each week. By the end it held about 290 articles.
- Finding the themes. I then ran simple text analysis on the headlines: word counts, a word cloud, and a topic model, which groups words that tend to appear together. It found five themes: bond issuance and security tokens (with Hong Kong and central bank digital currencies prominent), fund tokenisation, regulatory sandboxes including the UK’s, exchanges and custody, and partnerships around tokenised deposits.
A third version never got past its first commit, and the idea later grew into the automated weekly digital asset briefing that now runs on this site every week.
Building things#
A smart contract set-up#
A “hello world” Solidity contract that stores a message and lets you change it, deployed on a test blockchain on my laptop. I’d been writing simple smart contracts since 2019, and this one was mainly a way to get Truffle and Ganache working locally, the same tools I used a week later to log model updates on a blockchain in FraudBusters.
A first game#
A simple arcade shooter in Python with Pygame, modelled on Space Invaders: move left and right, shoot the rows of aliens before they reach you, press R to play again. It was my first time handling a game loop, collisions and keyboard input.
A childcare calculator#
A small desktop app for a question many families face: would both parents going back to work actually pay, once childcare is counted? You enter both take-home incomes, the childcare bill and other costs, and it shows what’s left, with a pie chart and saved scenarios.
Looking back, the maths was too simple, since it only took costs away from income. The real answer depends on free childcare hours, Tax-Free Childcare, the tax on the second income and the long-term value of staying in work, and a proper version would need all of those built in.
The start of FraudBusters#
I also explored a dataset of 6.4 million simulated online payments, of which only a tiny fraction were fraud. My first attempt to train a federated model on it ran out of memory, which pushed me to a smaller dataset and a simpler model. That became FraudBusters.
Key takeaways#
- Several small projects led to bigger ones. The scrapers turned into a weekly briefing, the smart contract became part of FraudBusters, and the payments dataset started the fraud work.
- Test on data the model hasn’t seen. A perfect score on training data should make you suspicious of the model.
- The projects that went furthest started from real questions. They came from things I actually wanted to know, rather than from a tutorial.
- A simple version is useful for getting started. The childcare calculator worked, but answering the real question would take much more than subtraction.
Most of the larger projects elsewhere on this site grew out of one of these.

