Richard Golian

1995-born. Charles University alum. Head of Performance at Mixit. 10+ years in marketing and data.

Castellano Français Slovenčina

Manage subscription Choose a plan

RSS
Newsletter
New articles to your inbox

Article

What Determines a Stock Price?

Six components of an asset price, in plain language
Richard Golian
Richard Golian · 355 reads
Hi, I am Richard. On this blog I share my thoughts, not investment advice. This is not a recommendation to buy or sell securities.

In April, in the first part of this series I wrote about an AI prediction system I had started building on my own machine. At the time the software was a few hours old and the prediction record was empty. The record since then has shown one thing that was, on reflection, predictable: the system does not yet understand the market it is being asked to forecast. It sees the price, a number. It can pull macro context, the book value of the companies in the index, the earnings. But it cannot put those things together into something that helps it understand the price.

I needed to simplify it for the system. I started by showing it what a price is made of.

Illustrative chart showing how an asset price decomposes into six coloured bands

I started building a new baseboard for the system. For any historical day on the S&P 500 or a sector fund, it decomposes the price into six numbers. The book value of the companies in the index. The premium the market pays above it for the companies' earnings. The contribution of the broader macroeconomic situation. The contribution of events. Media attention. And an arithmetic remainder I cannot yet fully name.

The thing I used to keep in spreadsheets and called the mood thermometer, which I wrote about in the past, worked from the same instinct. But that record, unlike the system I am building, worked more interpretively, more contextually, than this simplifying quantitative way. I now need to simplify first and add context gradually. Because I know that too much information, without a good explanation of how the pieces relate, can break the logic entirely.

Below I describe the six components of the price, one at a time. Then I share what surprised me on the chart when I looked back at my own best entries. And finally, what this step means for the predictive side of the system.

Six components of an asset price, in plain language

Six components sum to the price of the index to within a cent. Each has its own coloured band on the chart.

Book value, the bottom band. The price divided by the price-to-book ratio of the companies in the index. It represents the price the index would carry if all earnings premium, macro effect, media coverage and any other unidentified influence fell to zero: only the book value of the companies, scaled to today's share price. This is the first foundational layer of the chart, on which everything else sits.

Earnings premium. What investors pay above book value for the companies' ability to earn. Computed from long-run price-to-earnings and cyclically adjusted ratios, the same CAPE percentile against history from 1871 that I used in the first version of the prediction tool to classify market regimes. When this band grows on its own, the market is paying a higher premium for the same companies sitting behind it.

Macro contribution. Depends on a broad set of indicators: credit spreads, volatility indices, currency moves, real yields, inflation expectations.

Event contribution. Discrete impulses, not a continuous band. War, political shifts, an unexpected piece of news.

Media attention. A local language model scores the tone of the week's headlines on the asset.

Unidentified residual, the top band. The arithmetic remainder after the four observable parts of the price. I originally called this part of the chart sentiment. That was a quiet lie: the system did not measure sentiment, it computed a residual and labelled it with a word that suggested more than there was. The renaming itself was an honest step. The system will at least be aware that it does not know everything, and can reflect that in the future when assigning probabilities.

When the system started, this unidentified residual was more than half of every increment of the chart and was called sentiment. Two weeks of work on accounting for macro impact reduced it to a small part of the price.

The sum of these parts equals the price of the index or fund to within a cent.

What I saw, what I did not expect

When I had the chart ready for the first time, I looked back at the periods in which I had made the most money on shares. The entries were in phases the chart now shows as almost pure green. Book value and earnings premium were what I had paid for, not media hype or a temporary macro situation.

Continue

Join the Library

Full access to my thoughts, personal stories, findings, and what I learn from the people I meet.

Join the Library · €29.99 per year

Disclaimer

This series and any predictions it produces are not financial advice. They are a personal experiment in calibrated forecasting and decision discipline. Do not act on any prediction described here. Consult a licensed financial professional before making investment decisions.

Sources

FRED, Federal Reserve Economic Data (https://fred.stlouisfed.org/); Multpl, Shiller historical S&P data (https://www.multpl.com/); Damodaran NYU industry valuation datasets (http://pages.stern.nyu.edu/~adamodar/)

Summary

I decompose the price of an index or sector fund into six components: book value, earnings premium, macro contribution, event contribution, media attention, and the arithmetic remainder. I teach it to my AI prediction system: first it has to build, by working on the past, a view on which a forecast can rest. Looking back at my own best entries, the chart showed they sat in a phase that today reads as almost pure green.

Common questions on this article's topic

What does it mean to decompose a stock price into components?
The price of an index or sector fund is broken into six observable parts: the book value of the companies, the earnings premium investors pay above it, the macro contribution, the event contribution, media attention, and an arithmetic remainder. The sum of these parts equals the closing price to within a cent.
What is the CAPE percentile?
The cyclically adjusted price-to-earnings ratio (Shiller CAPE) converted to a percentile against history from 1871. It shows whether the market today is paying a higher or lower premium for the same companies than it has historically.
Why does the system not compute fair value when data is missing?
Without years of price-to-earnings history, the fair value would simply equal today's price, always exactly fair. That is not an answer. It is better for the system to say it does not know than to say it knows something it in fact does not.
Can an LLM forecast individual price components on its own?
Not reliably. When you ask the system to separately forecast book value, earnings, and the macro situation, the computation grows an order of magnitude more complex, and the model starts to hallucinate or overshoots without sense.
What is vibecoding and why is tuning a project so hard?
Vibecoding is development where you reach 80 per cent of the functionality in a few days, but the last 10 per cent requires going back a step and trying different paths, because some changes do not improve the system but degrade it.
Is this tool investment advice?
No. The tool does not compute with certainty how something will turn out. It computes probabilities. It works on indices, sector funds, and broad groups of assets, not on the selection of individual shares.
Richard Golian

If you have any thoughts, questions, or feedback, feel free to drop me a message at mail@richardgolian.com.

NEWSLETTER
What I write about, what I am working on, what I learned.
Sent the first Sunday of the month. Unsubscribe anytime.

Related articles

Can AI Predict the Stock Market? Building a Calibrated System

I am building an AI system to predict the S&P 500. It runs on my own machine, uses free public data (yfinance, FRED, the Shiller dataset), and grades every forecast against reality. This series documents the build itself: the decisions, the methodology, the mistakes. What I will eventually share from the running system is a separate question, and an honest one.

26 April 2026·872 reads
Can AI Replace Human Judgement?

AI produces the graphic, the newsletter and the product page faster than a person. What is left for the one who used to do it is the judgement, knowing whether the output is good. But most people have worse judgement than AI. And whoever cannot judge quality cannot delegate either. How do you tell whether yours is the judgement a company relies on, or the kind it can replace?

30 May 2026·320 reads
Where the Money Goes When AI Takes the Work

Prague, 13 May 2026. On my way to work I started thinking about something that stayed with me for days. If most routine work on a computer disappears in the next ten years, and a large share of repetitive manual work disappears with it, what happens to the flow of money? Who pays whom for what? Which economic layers will exist, how large will they be, and what relationships will run between them? This is the six-layer map I sketched as an answer.

15 May 2026·870 reads

More articles

Which Work Will AI Not Replace?

Seventy per cent. That is where the first AI output begins, even when you give it the full company context and the best examples from the past. We are talking about the kind of output that cannot be defined programmatically. It is more complex. Often it is creative work. On one repeated type of output I reached eighty per cent within a week. Every further percentage point is harder than the one before.

10 June 2026·184 reads
Dead internet: will we return offline?

For a long time we treated the internet as the main road. The place where work and relationships happen. Yet most of what we see on it today is, or soon will be, AI-generated: text, images, profiles and comments. The internet is turning into an online game full of bots, where you cannot be sure that a human is on the other side of anything. So I ask: was the online world the main road, or only a temporary detour that part of us will return from, back offline?

7 June 2026·255 reads
The Gap Between Professionals in the AI Era

A few days ago I interviewed a senior marketer. An experienced man, years of practice. I asked him about AI. He said he barely uses it. He had one bad experience with the output and decided he was too senior for it to add value when it is not perfect. I know the other side too: professionals who automate everything that can be automated.

6 June 2026·348 reads
Europe Is Not Ready for Drone Warfare

Europe does not have the capacity to face a full-scale, mass drone war of the kind we see in Ukraine. Three dependencies weaken it: China supplies the physical material for defence systems, the United States supplies capabilities Europe does not have, and twenty-seven states cannot agree how fast, or who pays. Rearmament plans exist, but they are being carried out slowly.

31 May 2026·321 reads
AI sales forecast: 9 traps so far

Yesterday I could not tear myself away from the computer. When I lifted my head, it was half past eight in the evening. I had been sitting alone upstairs for about three hours.

25 April 2026·815 reads
Will AI take my job?

Will AI take my job? A certified Google trainer told me in June 2024 that my profession would cease to exist. Twenty-two months later, my job title has not changed, but ninety percent of what I do during the day is different. I have delegated more of my thinking to AI agents than I thought possible. I am not afraid. This is why, and what it means for anyone asking the same question.

23 April 2026·524 reads
€50,000 Quote vs. Two Hours with Claude Code

One hour. Fifty-five minutes. That is how long it took to build what a Czech software firm had quoted at over €50,000. I built it with Claude Code. Not a prototype. Not a proof of concept. A working tool, the one the company actually needed. By the evening of the same day, it was running on staging. This is not about Claude Code. It is about what Claude Code exposes.

18 April 2026·952 reads
Full AI agents or fully offline.

Four days in Catalonia. No computer, no AI, almost no social media. I bought this notebook so that I could write down what I would think about, and what I would come across and learn on the trip.

10.5.2026·583 reads
NEWSLETTER
What I write about, what I am working on, what I learned.
Sent the first Sunday of the month. Unsubscribe anytime.