Rules, Machine Learning, Deep Learning, and LLMs: Four Ways to Approach the Same Investment Question
A computer can address “will the price rise next period?” through fixed conditions, learned relationships, or language-model assistance organizing research assumptions and calculation issues. Their outputs differ:
A signal that a specified condition was satisfiedA prediction from a fitted modelA written explanation organizing supplied informationCalling all three “AI predicted a rise” obscures what must be checked. This article compares inputs, learning, outputs, and evaluation using one hypothetical research question. It does not train models or compare investment performance.
1. These are overlapping approaches, not independent technical categories
Machine learning includes learning relationships or patterns from data. Deep learning is a neural-network-based approach within it, using multiple processing layers to learn representations. Widely used modern LLMs are also neural models trained on large datasets. Here, fixed rules mean conditions explicitly chosen by a person. LeCun, Bengio, and Hinton, Deep learning
Deep learning is not a separate superior tier above machine learning. Nor does using an LLM without new training mean the model was never trained; it uses prior training to respond to inputs.
The comparison is therefore about implementations and research roles:
| Approach here | Example |
|---|---|
| Fixed rule | Select when past return is positive |
| Tabular supervised learning | Logistic regression or a tree predicts an upward outcome |
| Deep learning | A neural network predicts the same outcome |
| LLM assistance | Draft an organized review of supplied evidence and rules |
They can be combined: a model outputs probabilities, then a human-defined threshold and allocation rule converts them into positions.
2. Align the outcome interval before comparing answers
The hypothetical question is:
Can price/volume features known by month-end identify whether return from the next entry to the following rebalance will be positive?
“Next month's rise” is ambiguous, so define:
| Item | Illustrative rule |
|---|---|
| Signal time | After observing month-end close |
| Entry | Next trading day's close |
| Exit | Trading-day close following the next month-end signal |
| Outcome | Exit price / entry price - 1 |
| Classification label | 1 if outcome is strictly positive, otherwise 0 |
This defines a price interval, not evidence that desired quantities can actually execute at those closes.
Assume one feature row:
| Feature | Illustrative value |
|---|---|
| Trailing 20-trading-day cumulative return | +3% |
| Sample standard deviation of daily returns over those 20 days | 1.5% |
| Current volume / trailing 20-day average volume | 1.2 |
These are invented explanatory numbers, not calculated market observations. Assume all are available at signal time. The current row has no future label yet. Historical training labels become available only after the defined exit and required prices are known; a new signal must not receive its future outcome as input.
3. A fixed rule executes a human-defined condition
Select if trailing 20-trading-day cumulative return > 0.Otherwise do not select.The +3% example produces selection 1. This rule does not use volatility or volume merely because those columns exist. It executes a chosen condition rather than fitting an optimal period or threshold from training data.
| Item | This rule |
|---|---|
| Input | Trailing 20-day return |
| Separate fitting | None |
| Output | Selection 0 or 1 |
| Human choices | Period 20, boundary 0, strictly positive selection |
| Still needed | Position mapping and evaluation |
Selection 1 does not mean a 100% chance of rising. It means the condition holds. Fixed rules can still result from searching many periods and thresholds; record that history. Short final code does not remove selection effects.
4. Tabular supervised learning estimates feature–label relationships
Logistic regression and trees need more than one feature row:
Features available at historical decision times+Labels subsequently established over the specified intervalsSupervised learning fits relationships from those examples. Applying the fitted model to a new input is inference. Google, Supervised Learning
The example can use trailing return, trailing volatility, and volume ratio. Output can be a class or estimated probability of the upward label.
There are no training data or fitted models in this article, so no predicted probability is calculated. Values +3%, 1.5%, and 1.2 alone cannot determine logistic-regression or tree outputs.
An estimated probability differs from a condition signal
Suppose a classifier outputs 0.60. This is an interpretive illustration, not an execution result. It does not automatically mean the real probability is exactly 60%. Calibration evaluates whether outcomes among similar predicted probabilities occur at corresponding frequencies. Probability-shaped output does not guarantee calibration. scikit-learn, Probability calibration
| Evaluation | Question |
|---|---|
| Class prediction | How well does a specified threshold distinguish upward/non-upward outcomes? |
| Probabilistic prediction | Are probabilities assigned appropriately to observed outcomes? |
| Calibration | Do similar forecasts correspond to observed event frequencies? |
| Investment outcome | What returns and losses remain after positions and costs? |
Log loss and Brier score evaluate probabilistic forecasts, but neither isolates calibration alone. Probability-bin outcome frequencies can be inspected separately. scikit-learn documentation
A prediction model is not yet a complete strategy
Still specify selection thresholds, allocation across multiple selected assets, behavior when none qualify, timing of changes to existing holdings, costs, and final liquidation. Different choices can produce different strategies from identical predictions.
5. Deep learning can fit the same question with another structure
Replace logistic regression or trees with a neural network while retaining the same three features, upward label, training/evaluation timing, and prediction metrics. The primary change is how the model represents and learns the input–output relationship.
| Item | Tabular model example | Neural-network example |
|---|---|---|
| Input | Return, volatility, volume ratio | Same three features |
| Target | Positive return over the defined interval | Same |
| Model | Logistic regression or tree | Multilayer neural network |
| Output | Estimated upward probability, etc. | Estimated upward probability, etc. |
| Evidence | Predictions on unused evaluation data | Same data and metrics |
Adding daily price sequences or news changes information inputs as well as architecture. If performance improves, distinguish architecture effects on common inputs, additional-information effects, and their combination.
“A neural network beat logistic regression” needs inputs, fitting scope, selection history, and evaluation dates. No network was trained here, so no superior probabilities or returns are reported.
6. An LLM can perform a different task within the same research
Language models model token or token-sequence probabilities in context and support generation and summarization. Google, Introduction to Large Language Models
For this research, consider asking an LLM to organize known facts and missing evidence into a memo:
Use only these features and rules to draft a research memo:- Trailing 20-day return: +3%- Sample standard deviation of daily returns: 1.5%- Volume ratio: 1.2- Rule: select if past return is strictly positive.Separate:1. Results determined by the rule.2. Results requiring a fitted model.3. Results requiring actual prices, costs, and evaluation data.Do not invent upward probabilities or investment performance.This illustrative memo was written to explain the request, not collected from a model call:
Established:+3% exceeds zero, so the fixed rule selects the asset (1).Not currently computable:Without fitted models and parameters, probabilities from logisticregression, trees, or neural networks cannot be calculated.Additional requirements:Chronological training examples, completed labels, evaluation periods,position rules, cost assumptions, and execution assumptions.Interpretation limit:Volatility 1.5% and volume ratio 1.2 alone do not establish a futureprice increase or profitability.| Memo check | Evidence |
|---|---|
| Numbers copied correctly | Input table |
| Rule explained correctly | +3% > 0 |
| No invented forecasts | Scope of supplied material |
| Facts and interpretations separated | Claim-level support |
| Generated code works, if any | Execution and tests |
Can an LLM also be used for prediction?
This does not restrict LLMs to prose organization. They can extract text features, classify, or produce numerical forecasts, but each role requires suitable evaluation.
A generated sentence saying “60% probability of rising” does not establish a probability fitted and tested like the classifier above. Explain how it was obtained and compared with outcomes.
Historical prediction experiments must also consider later information in pretraining or retrieved sources. Omitting future dates from a prompt does not establish a historical information boundary. The research-assistance workflow is developed in questions, verification, and research records.
7. Compare inputs, learning, outputs, and evidence
| Approach | Inputs | Training for this task | Output | Evidence |
|---|---|---|---|---|
| Fixed rule | Required features | None; rule-search history separate | Selection | Condition, timing, selection history |
| Tabular supervised learning | Historical features/completed labels and new features | Required | Class/probability | Train/evaluation separation and baseline prediction comparison |
| Deep learning | Same features or separately defined sequences/text | Direct fitting or pretrained model | Task-specific prediction/representation | Distinguish input and architecture changes |
| LLM assistance | Evidence, rules, prompt | Pretrained model without additional fitting assumed here | Memo/code draft | Source agreement, omissions/additions, code execution |
No additional training does not mean no verification. Fixed rules need performance evaluation; pretrained LLM outputs need evidence checks. Do not combine memo accuracy and classifier performance into one score when they perform different jobs.
8. Regression, classification, and clustering are another axis
| Task | Question | Example output |
|---|---|---|
| Regression | What will the holding-period return be? | Estimated return |
| Classification | Will it exceed zero? | Class or probability |
| Clustering | Which observations have similar selected features? | Cluster assignment |
The shared example is classification, implementable with logistic regression, trees, or neural networks. Clustering explores feature similarity without future upward labels. A cluster number alone does not establish an economic meaning such as bull market or crisis.
Choose along two axes: what task—regression, classification, structure exploration, document review—and what method—fixed rule, logistic regression, tree, neural network, or LLM assistance.
9. Design prediction and strategy comparisons separately
Comparing predictive models
Use common features, labels, and evaluation times. A simple probability predictor determined from training can serve as a baseline. Do not casually treat a rule's binary selection as a validated probability in probability-scoring comparisons. Align output types first.
Comparing complete strategies
Include the mapping from forecasts to selection and allocation:
Inputs → signal/prediction → selection/allocation → trades→ costs → wealth and loss-path evaluationSlightly higher classification accuracy can accompany worse net results through more trading or different loss sizes. Record predictive and strategy metrics separately.
Comparing research assistants
Evaluate document/code errors and omissions, correction work, and final output accuracy. This article has not measured those benefits.
The scope is concepts and comparison design. No model fitting/inference, backtest, or separate collection of LLM responses was performed. These four approaches are not ascending performance grades: define the required output and verification evidence before choosing how to produce it.
Report an error or share feedback
Open a draft with this article’s title and URL. Review the message and recipient before sending.
Open email draftIf no email app opens, copy these details into your usual email service.
Related posts
Quant & Data Research An ETF Research Design Exercise: Questions, Assets, and Comparison Rules
Define the SPY/IEF/GLD research question, universe, signals, execution, and costs while distinguishing initial plans from later baseline execution.
AI Using AI Coding Agents Well: Design the Delegation Before Comparing Tools
Turn a hypothetical session-expiration notice into a specification, acceptance criteria, and verification evidence before comparing coding agents.