🎲Expectancy and Edge: The Mathematical Core of Every Strategy
📘 Educational, historical example — NOT a current signal, recommendation or order to trade. The specific numbers (entries, risk and target levels, success rate, holding period) are illustrative and refer to the past. Past results do not guarantee future ones. QMA is an analytical and educational tool, not investment advice.
Expectancy and Edge: The Mathematical Core of Every Strategy
Many investors first look at win rate when evaluating a strategy — the percentage of trades that ended profitably. At first glance, that makes sense: a 70% success rate sounds better than 45%. But in practice, a strategy with a 70% win rate can lose money, while a strategy with a 40% win rate can be profitable.
Why? Because what matters is not only how often a strategy wins, but also how much it makes when it wins and how much it loses when it loses. This is captured by expectancy. If expectancy is positive over the long term and statistically robust, the strategy is said to have an edge — an advantage over random decision-making.
This is a more advanced lesson: it explains the formula, shows examples of risk/reward asymmetry, describes how to measure edge on your own data, and covers statistical honesty — including sample size, t-statistics, and the risk of overfitting.
---
1. Win rate is not a strategy
Win rate (WR) is the share of profitable trades:
\[
WR = \frac{\text{number of winning trades}}{\text{total number of trades}}
\]
If a strategy made 100 trades and 55 were profitable, its win rate is 55%.
That is useful information, but it is not enough. Consider two strategies:
| Strategy | Win rate | Average win | Average loss | Intuitive impression |
|---|---|---|---|---|
| A | 70% | +1% | −4% | “Wins often” |
| B | 40% | +5% | −2% | “Is often wrong” |
---
2. The expectancy formula
The basic formula is:
\[
\text{Expectancy} = WR \times \text{average win} - LR \times \text{average loss}
\]
Where:
- WR = win rate, the probability of a winning trade,
- LR = loss rate, the probability of a losing trade,
- LR = 1 − WR,
- average win = the average return of winning trades,
- average loss = the average size of losing trades, usually treated as a positive number.
Calculation for strategies A and B
Strategy A:
\[
0.70 \times 1\% - 0.30 \times 4\% = 0.7\% - 1.2\% = -0.5\%
\]
Strategy A has an expectancy of −0.5% per trade. Even though it has a 70% win rate, it historically loses money.
Strategy B:
\[
0.40 \times 5\% - 0.60 \times 2\% = 2.0\% - 1.2\% = +0.8\%
\]
Strategy B has an expectancy of +0.8% per trade. Even though most trades end in losses, the winning trades are large enough to outweigh them.
That is the key lesson: win rate is a psychologically comforting metric, but expectancy is an economic metric.
---
3. Risk/reward asymmetry: why a WR below 50% can work
A strategy with a win rate below 50% can be profitable if it has a favorable risk/reward (R/R) profile. This compares the average loss with the average win.
For example, trend-following strategies often work by accepting many small losses as the “cost of searching for a trend,” while occasionally capturing a large move. Such a strategy may have a WR of 35–45%, but still have positive expectancy.
Example using illustrative data:
A strategy tracks high-momentum stocks such as NVDA or MSFT, but trades only when they meet predefined quantitative rules. The numbers below are only a model example, not a recommendation.
| Metric | Value |
|---|---|
| Number of trades | 120 |
| Win rate | 42% |
| Loss rate | 58% |
| Average win | +7.0% |
| Average loss | −3.0% |
| Expectancy | ? |
\[
0.42 \times 7\% - 0.58 \times 3\% = 2.94\% - 1.74\% = +1.20\%
\]
The strategy has a historical expectancy of +1.2% per trade. With 120 trades, that looks more meaningful than with 12 trades, but it is still not a guarantee of future results.
The important point is that a low WR requires psychological resilience. A strategy can lose six times in a row and still be mathematically positive. If an investor abandons the system after a normal losing streak, the real outcome may differ significantly from the backtest.
---
4. Concrete example: a CZK 100,000 portfolio and expectancy
Imagine a model portfolio of CZK 100,000. The strategy risks 1% of capital per trade, or CZK 1,000. It uses the following rule:
- typical loss: −1R = −CZK 1,000,
- typical win: +2.5R = +CZK 2,500,
- win rate: 38%,
- loss rate: 62%.
\[
0.38 \times 2.5R - 0.62 \times 1R = 0.95R - 0.62R = +0.33R
\]
In Czech crowns:
\[
0.33 \times 1,000 = 330 \text{ CZK per trade}
\]
In this model, the strategy makes CZK 330 per trade before costs, slippage, and taxes. If 100 similar trades had occurred historically, the gross expected result would be CZK 33,000. In reality, however, results do not arrive evenly. There may be losing streaks, a few unusually large winners, higher transaction costs, or a change in market regime.
That is why expectancy is only the first layer. The second layer is the question: is the measured edge statistically reliable?
---
5. How to measure edge on your own data
Measuring edge begins with every trade having a clearly defined reason for entry, exit, and position size. Without consistent rules, it is impossible to distinguish a strategy from a random mix of decisions.
A practical framework:
- Strategy definition
- Record every signal
- Calculate the distribution of outcomes
- Separate in-sample and out-of-sample periods
- Include costs
Edge is therefore not a feeling that “this works.” Edge is a measurable difference between the strategy’s outcome and a realistic alternative after costs.
---
6. Minimum sample size: how many trades are enough?
A common mistake is drawing conclusions from too small a sample. Ten trades with a beautiful result may simply be luck. For low-frequency strategies, this is uncomfortable because collecting data takes time.
A rough guide:
| Number of trades | Interpretation |
|---|---|
| < 30 | More anecdote than statistics |
| 30–100 | First signal, high uncertainty |
| 100–300 | More useful sample, still depends on variance |
| 300+ | Better foundation if it covers different market regimes |
- bull and bear markets,
- periods of high and low interest rates,
- different sectors,
- different volatility regimes,
- a sufficient number of independent signals.
---
7. T-statistic: is the edge larger than noise?
The t-statistic helps estimate whether the average return of a strategy is large enough relative to its variability.
In simplified form:
\[
t = \frac{\text{average return per trade}}{\text{standard error of the mean}}
\]
The standard error decreases with the number of observations:
\[
SE = \frac{\sigma}{\sqrt{n}}
\]
Where:
- \(\sigma\) is the standard deviation of trade outcomes,
- \(n\) is the number of trades.
Example:
| Strategy | Avg/trade | Std. deviation | n | Approx. t-stat |
|---|---|---|---|---|
| X | +0.8% | 5.0% | 25 | 0.80 |
| Y | +0.8% | 5.0% | 400 | 3.20 |
---
8. Overfitting: when a strategy explains the past perfectly
Overfitting happens when a strategy fits historical data too precisely but loses meaning outside it. It is like memorizing answers for a test instead of understanding the subject.
Typical warning signs:
- too many parameters,
- optimization of exact values such as “the 17-day average is best, not 16 or 18,”
- testing hundreds of variants and selecting the single best one,
- ignoring failed attempts,
- excellent backtest but weak out-of-sample result,
- edge disappears after costs.
---
How to do this in QMA
In QMA, expectancy and edge can be observed descriptively in several parts of the platform:
- /strategy
- /journal
- /screener
- /stocks/[symbol]
/stocks/AAPL, /stocks/MSFT, /stocks/NVDA, or /stocks/CEZ, shows fundamental, technical, and risk characteristics of a specific stock. These data points can provide context for strategy rules, not standalone proof of edge.
- /portfolio
The purpose of QMA is not to tell an investor what to do. Its purpose is to show whether a rule has measurable history, how strong the evidence is, and where the weak points may be.
---
9. Summary: edge is a combination of mathematics and discipline
A profitable strategy is not based on “being right often.” It is based on the fact that its wins and losses together have positive expected value after costs.
Key points:
- Win rate without average win and average loss is not enough.
- Expectancy = WR × average win − LR × average loss.
- A strategy with WR below 50% can be profitable if its wins are significantly larger than its losses.
- Edge must be measured on a sufficient sample, ideally across different market regimes.
- The t-statistic helps distinguish signal from noise, but it is not all-powerful.
- Overfitting is one of the biggest risks in backtesting.
- Real-world results also depend on costs, slippage, taxes, position sizing, and discipline.
Disclaimer
Past performance is not a guarantee of future results. All investment decisions are your own responsibility.
Want to know more? Ask the QMA Research Assistant
The Research Assistant knows the whole platform and its data. If the answer is not in the QMA database, it looks it up and explains it in plain language. It is an analytical and educational tool, not investment advice.
Open the Research Assistant →Related articles
Backtesting looks simple – you run a strategy on historical data and see the results. But most tests suffer from hidden flaws that inflate performance and conceal real risk.
6 minBuy-and-hold, dividends, swing trading, or day trading? Each style demands different amounts of time, nerves, and tax planning. We'll help you find the one that fits your life.
5 minZisk se dá nakreslit, hotovost se skrýt nedá. Podívejte se, proč volný cash flow výnos odhalí kvalitu firmy lépe než P/E — a jak si ho spočítat za dvě minuty.
5 minJedno číslo skóre vypadá elegantně, ale klame. Když ho rozpitváš na pilíře, zjistíš, jestli je firma opravdu skvělá — nebo jen dobrá v jedné věci a slabá ve třech.
6 minSee it live: QMA scores 17,000+ stocks for you
Full access to the 5-pillar analysis, smart-money data and the whole-market screener. No commitment, cancel anytime.
QMA Brain – free weekly recap
One email a week with a descriptive recap. Unsubscribe anytime.
7 days of Elite free, no card
The account is free to open and needs no card. For that time the account has full Elite access.
Create a free accountContent created by AI in collaboration with Jaroslav Vojtášek. Not investment advice. The author may hold the stocks mentioned. Investing involves risk of loss.
Operator: Jaroslav Vojtášek, Company ID (IČO) 48783447.