advanced12 min read17 of 24

    Machine Learning vs LLMs — Where Prediction Genuinely Fits

    They are different tools solving different problems. Conflating them is why most retail “AI trading” fails before it starts.

    Rohit Singh

    Mr. Chartist · SEBI RA INH000015297

    Module

    Ask a room of traders what AI means and you will get two answers that do not overlap. Some are talking about a chat model — a language model that reads your question and writes an answer back. Others mean a predictive model — a piece of statistics fitted to past market data. These are different technologies, built for different jobs, and they fail in different ways. Treating them as versions of the same thing is the most expensive confusion in retail quant work, and it usually happens long before a single line of code is written.

    The confusion has a practical cost. You end up asking a chat model where NIFTY closes on Friday, which is a little like asking a librarian to weigh a book by reading its index. Or you go the other way, build a predictive model, and expect it to behave like the chat window did — fluent, general, able to explain itself. It will not. It answers exactly one question, it knows nothing outside the columns you fed it, and it is confident in the same flat way a thermometer is confident.

    This article separates the two properly. What a language model is actually holding when you paste a price series into it. What supervised machine learning genuinely is, in plain words, with a worked Indian-market example. Why market data is one of the hardest places on earth to apply it. And the part almost nobody writes down: the narrow set of jobs where machine learning genuinely earns its keep in a trading process, none of which involve predicting tomorrow’s close.

    The one thing to remember

    A language model completes text and a supervised model fits a mapping from the inputs you chose to an outcome you labelled — neither one predicts price, and knowing which machine you are holding decides what it is safe to ask of it.

    One Word, Two Entirely Different Machines

    Start with the thing that usually gets skipped: these two systems do not share a design. A large language model — an LLM — is trained to continue text. You give it a sequence of words and it produces the next likely word, then the next, until the answer looks finished. A supervised machine-learning model is trained to map a fixed set of numeric inputs to one specific outcome that you labelled in advance. One machine writes. The other scores. The overlap between them is the word AI and very little else.

    The reason this matters is that most retail "AI trading" projects die at exactly this seam. Someone reads that a language model passed a difficult professional exam, concludes it must therefore be able to read a chart, and asks it for a level on Bank Nifty. The answer arrives instantly, in full sentences, with reasoning attached. It looks like analysis. It is a paragraph shaped like analysis, assembled from the enormous number of similar paragraphs the model has read, and its connection to the actual series you pasted is far weaker than the fluency suggests.

    The opposite mistake is quieter and just as common. A trader learns some supervised learning, builds a model, and then expects it to behave like the chat window — general, explanatory, willing to tell you why. It cannot. It answers the single question you defined when you chose the label, and it answers with a number. Ask it anything else and it has no view at all, because it has no representation of anything you did not put into the columns.

    Hold both pictures at once and most of the confusion drains away. The language model is a reader and a writer that happens to be very good at prose. The predictive model is a narrow measuring instrument that you have to build, calibrate and re-check yourself. Neither of them is "the AI that trades", and no combination of the two becomes that.

    One machine writes sentences that sound like analysis. The other produces a single number about a single question you defined. They are not upgrades of each other.

    Two machines, split by the problem they solve

    One writes. The other scores. They share the word AI and very little else — and neither of them is built to forecast a price.

    Language modelProblem it solves: read and write languageIntext — your question, plus whatever you pastedDoescontinues the text, one likely token at a timeOutmore text — prose, a summary, a draft, a counter-argumentFails fluently: invented detail delivered in a confident tone.Supervised ML modelProblem it solves: map chosen columns to a labelled outcomeInrows of numeric columns — the features you choseDoesapplies a mapping fitted to labels you suppliedOutone number or one class, per row — and nothing elseFails silently: accuracy decays and no error is ever raised.Neither machine answers “what will this price do next?” — that is a category error, not a missing feature.
    Two systems, one label. The language model consumes text and emits text; the supervised model consumes the columns you chose and emits one labelled outcome per row.

    What a Language Model Does When You Paste a Price Series

    When you paste two hundred closing prices into a chat box, the model does not load them into a spreadsheet. It converts them into tokens — the small chunks of text, roughly word-fragments and digit-groups, that the model actually operates on. From that moment the numbers are text. There is no column, no enforced ordering, no arithmetic engine underneath. The model then continues the text, and continuing text after a list of prices is a fundamentally different operation from measuring the series.

    This is why arithmetic on pasted data fails in a specific, non-obvious way. Short sums often come out right, because the model has absorbed enormous quantities of arithmetic and the pattern is strong. Longer chains drift. And when they drift, nothing signals it — the wrong total is rendered in exactly the tone of a right one. If your tool has a code interpreter attached, meaning a real sandbox that executes Python over your file, that is a genuinely different situation, because then actual arithmetic happens. Know which of the two you are using before you trust a number.

    There is a second limit, and it is more fundamental. The model has a training cutoff — a date after which it has read nothing. It has no live feed unless a separate tool is fetching one on its behalf. So a sentence like "the model thinks this stock is extended" has no referent. The model is producing the words that most plausibly follow your question given the vast amount of market commentary it absorbed, not an assessment of the last twenty candles you supplied.

    None of this makes the language model useless for market work. It makes it a reader rather than a calculator. It compresses a three-hundred-page annual report into claims you can go and check. It restates your strategy logic in a form where the gaps become visible. It argues against your thesis when you instruct it to. Those are real, valuable jobs. Price prediction is simply not on the list, and asking for it is a category error rather than a missing feature.

    Capability boundary check
    I am going to paste a price series below. Before you analyse anything, answer these four questions in one line each:
    
    1. What can you actually compute from this data, and what would you only be pattern-matching from text you have read?
    2. Do you have any market data for this instrument other than what I paste here?
    3. If I asked you for a target price, what operation would you genuinely be performing to produce that number?
    4. Name three questions about this series that you should refuse to answer.
    
    Then stop. Do not analyse the series yet.
    
    <paste your series here>

    When to use — Run this once against any model you are new to, before you build a research habit on top of it.

    A good answer — It admits it has no live data, describes a target price as language-shaped guessing rather than calculation, and names its own refusals without being argued into them.

    Supervised Learning, In Plain Words

    Supervised learning has three moving parts and each has a plain-English name. A feature is an input the model sees — one column of numbers for every row of data. A label is the thing you are asking it to predict, and you must be able to compute that label for past data, otherwise there is nothing to learn from. Training is the fitting process: the algorithm adjusts its internal numbers until its output on the training rows sits as close as it can to the labels you supplied.

    Make that concrete on Indian equities. Take the NIFTY 500 constituents, one row per stock per week. Your features might be the distance of price from the prior swing high, whether the last five candles closed inside the range of the sixth, this week’s traded volume divided by its own recent average, and a flag for whether a results date fell inside the window. Your label might be: in the following four weeks, did this stock close above the high of the signal candle before it closed below its low? That is a yes or a no. You can compute it for every past row. That makes it a usable label.

    Notice what that example did and did not do. It did not ask for a price. It asked a question with a checkable answer that already exists in history, which is the only sort of question supervised learning can be trained on at all. The model is not forecasting in any mystical sense. It is handed thousands of past situations with their outcomes attached, and asked to find whatever regularity connects the one to the other.

    Everything else in this part of the module is downstream of that sentence. If the regularity is real and persists, you have something worth testing properly. If the regularity was an accident of the particular sample you happened to use, you have a very convincing chart of nothing at all. Telling those two apart is genuinely hard, and it is the entire subject of the next article.

    QuestionLanguage model (LLM)Supervised ML model
    What it consumesText — your question plus whatever you pastedRows of numeric columns that you chose
    What it outputsMore text, one likely token at a timeOne number or one class label, per row
    What training gave itPatterns of language, up to a cutoff dateA fitted mapping from your features to your labels
    How it failsFluently — invented detail in a confident toneSilently — accuracy decays, nothing errors
    What it knows about marketsWhat was written about them before its cutoffOnly what is inside the columns you supplied
    Honest useReading, compressing, drafting, arguing with youRanking, classifying, flagging anomalies in your data
    The two technologies compared on the questions that actually decide which one you should reach for.

    Non-Stationarity — The Target Moves While You Are Aiming

    Supervised learning rests on an assumption that is normally invisible, because in most fields it is simply true: the relationship you fit on past data still holds on future data. Markets violate it routinely. The technical word is non-stationarity — the statistical behaviour of the series changes over time. Volatility clusters and then subsides. A relationship that held across one long stretch inverts. A structural change, such as a shift in the settlement cycle or in who is providing the liquidity, quietly rewrites the thing your model spent its training fitting.

    Compare that with the domains where machine learning has been genuinely transformative. Handwritten digit recognition works because the numeral seven looked the same thirty years ago, looks the same today, and will look the same next year. Speech recognition works because the acoustics of spoken Hindi are not adapting to the fact that a model is now listening. Markets are the opposite. They are made of participants, and participants respond. If a simple, findable pattern pays reliably, it gets traded until it stops paying.

    That last sentence is the part retail quant work consistently underweights. Your model is not studying a natural process that is indifferent to being studied. It is studying the aggregate behaviour of people and machines who are also studying it, some of them with far better data and far lower costs than you have. The relationship is adversarial, and adversarial relationships decay.

    The practical consequence is that a market model is never finished. It has a shelf life you cannot know in advance, and the expiry date is not announced. Nothing throws an error when a relationship stops holding — the code runs exactly as it always did and the results simply get worse. That is why deliberate monitoring is a structural part of the job rather than an optional extra.

    Non-stationarity means the statistical relationship you fitted can change while your model keeps applying it unchanged.
    A market is made of participants who adapt, so a widely findable pattern erodes as it is traded.
    Structural changes to market mechanics can invalidate a model without anything in your code breaking.
    A model trained across one kind of market condition has no experience of conditions absent from its training window.
    Because failure is silent, the absence of an error message tells you nothing about whether the model still works.

    Signal, Noise, and the Honest Ceiling

    The second obstacle is the ratio of signal to noise. Signal is the part of a future move that is genuinely related to something knowable today. Noise is everything else — a fund rebalancing on a schedule you cannot see, order flow, a headline nobody could have anticipated. In the fields where machine learning looks miraculous, signal dominates: nearly all the information needed to read a handwritten digit is right there in the image. In market data the noise dominates, and it dominates heavily.

    That has a direct effect on how much data you need. When the signal is weak, you need far more examples to separate a real relationship from a coincidence. And market data is smaller than it feels. Twenty years of daily bars on one stock is a few thousand rows, and the genuinely distinct market regimes inside that span can probably be counted on your fingers. You hold much less independent information than the row count suggests, because consecutive rows are not independent events.

    So what is the honest ceiling? A small statistical edge — a tendency that appears slightly more often than chance would produce, is stable enough to survive on data the model has never seen, and is still large enough to exist after brokerage, taxes and slippage have been deducted. That is a real and genuinely valuable thing to find. It is also nothing at all like the mental image of a model that tells you what the market is going to do.

    Anyone quoting a high accuracy figure for a price-direction model has, in almost every case, either measured on data the model already saw, or chosen a period that flattered it, or left costs out, or all three at once. The correct response to a headline accuracy number is not admiration. It is three questions: over what sample, over what period, and after what assumed costs.

    A model that is right slightly more often than chance, consistently, after costs, is a genuine result. A model that is right most of the time on the data it was fitted to is not a result at all.

    Watch out — Accuracy measured on training data is not a performance figure. It tells you how well the model memorised, which is a property of the model, not of the market.

    Where Machine Learning Genuinely Earns Its Place

    Once you stop asking for price forecasts, the useful applications appear quickly, and they share a shape: each replaces a judgement you were already making inconsistently by hand. The first family is classification and ranking. Rather than asking how much a stock moves, you ask which of two states a situation resembles, or you ask the model to order a watchlist so that the setups you would examine first come to the top. Ordering is an easier question than forecasting a level, and it fails more gracefully.

    The second is regime labelling. You almost certainly already classify market conditions informally — trending, range-bound, choppy, expanding volatility. Doing that by eye is inconsistent, and worse, it is inconsistent in ways correlated with your mood and your open positions. A model trained on a definition you wrote down applies the same definition every day. The value is not that the machine is smarter. It is that the machine is repeatable, and you are not.

    The third is execution and slippage — modelling your own fills. Slippage is the gap between the price you expected and the price you actually got. You have a trade log full of it. A model fitted on your own executions can tell you which conditions widen that gap: time of day, order size relative to typical traded volume, the days around an event. This is one of the few places where your data is genuinely yours, the labels are unambiguous, and the relationship is less adversarial than a price forecast.

    The fourth is anomaly detection inside your own pipeline. A feed that arrives late, a corporate action adjusted differently from last quarter, a symbol that changed after a merger — these produce data that looks subtly wrong rather than obviously broken. A model that has learned the normal shape of your daily data flags the abnormal day. That is unglamorous work, and it protects everything downstream of it.

    Ranking a list is an easier and more forgiving question than forecasting a level.
    Regime labelling buys you consistency, which is exactly what human judgement fails to supply.
    Your own trade log is proprietary data with unambiguous labels — the best ML material most traders own.
    Anomaly detection on your own feed catches the silent data problems that corrupt every result downstream.
    Every one of these produces an input to a decision you still make, not a decision.

    Choosing a job for a predictive model

    Do

    • Point it at a task where the correct answer for past data is already known and unambiguous.
    • Prefer ordering a list over forecasting a number — the question is easier and degrades gently.
    • Use it to apply a definition you wrote down, so the labelling stops drifting with your mood.
    • Model your own executions, where the data is genuinely yours and the labels are exact.
    • Keep every output as one input into a decision that a human still makes and owns.

    Don't

    • Do not ask for tomorrow’s closing price and treat the number that comes back as information.
    • Do not keep adding features until accuracy improves — that is the mechanism by which you fit noise.
    • Do not judge a model on training data; that number is high by construction and means nothing.
    • Do not let a model size a position. Sizing is a risk decision with your capital behind it.
    • Do not carry a model into market conditions absent from its training window without re-checking it.

    Pro tip — If you cannot write down the label as a question with a checkable historical answer in one sentence, you do not yet have a machine-learning problem — you have an intuition.

    Use the Language Model Around the Work, Not Inside It

    There is a genuinely productive relationship between the two technologies, and it is not the one people reach for. The language model does not sit inside the prediction. It sits around the work: helping you specify the problem precisely, writing and documenting the code, explaining an unfamiliar statistical term in plain language, and — most valuable of all — arguing with your design before you have spent three weeks on it.

    Specification is where this pays best. Most failed models fail because the idea was never written down precisely enough to be wrong. "Stocks that consolidate after a volume spike tend to break out" is not a specification. It does not say what consolidation means, over how many candles, how large a spike is relative to what baseline, or what counts as a break-out and by when. A model will happily let you skip all of that and hand you a number anyway. Forcing the definitions into the open, before any code exists, is the highest-leverage thirty minutes in the whole project.

    The second use is adversarial review. Ask the model to attack your setup rather than help you build it. Instruct it explicitly to look for information that would not have been available at the moment of the decision, for definitions that quietly reference the future, and for choices you made because they improved a result rather than because they made sense. It will not catch everything. It reliably catches the obvious things you stopped seeing on day three.

    What it will not do is tell you whether your idea is any good. It has no way to know, and if you ask, you will get an agreeable answer, because agreeable answers are what the training data rewards. Keep the model on the parts that are checkable — definitions, code, terminology, blind spots — and keep the judgement where it belongs.

    Turning a vague idea into a written specification
    I have a rough trading idea and I want it written out as a machine-learning specification. Do not write code.
    
    Idea, in one sentence: <your idea in plain English>
    Universe: <e.g. NIFTY 500 constituents>
    Bar frequency: <daily / weekly>
    Decision moment: <e.g. at the close of the signal candle>
    
    Produce a table with:
    - Every candidate feature, and the exact moment in the session at which it becomes knowable
    - The label: what precisely is being predicted, over what horizon, measured how
    - Any feature that could only be computed after the label period has already started
    - A naive baseline I should compare against, so I know what "no skill" looks like
    - Every term in my sentence that is currently undefined
    
    Where something is undefined, write "undefined — you must decide". Do not fill the gap yourself, and do not tell me whether the idea is good.

    When to use — Before writing any code, while the idea in your head is still a sentence rather than a definition.

    A good answer — A table where every feature carries a timestamp, the label has an explicit horizon, several of your terms are flagged as undefined, and at least one idea is marked unknowable at the decision moment.

    Common questions

    No. A language model produces the text that most plausibly follows your question. It has no numeric model of the series you pasted, no live data feed unless a tool supplies one, and no mechanism for forecasting a level. It will still give you a number, in confident prose, which is precisely the danger.

    Knowledge Check

    Question 1 of 3Score: 0

    What does a language model actually do with a price series you paste into it?

    Rohit Singh — Mr. Chartist

    Written By

    Rohit Singh

    Mr. Chartist

    With 14+ years of experience in Indian financial markets, Rohit Singh (Mr. Chartist) is a SEBI Registered Research Analyst, Amazon #1 bestselling author, and the founder of Investology — a premium trading ecosystem trusted by a 1.5 Lakh+ strong community across India.

    INH000015297Full Bio

    Keep reading