● statistical anomaly detector — the bars past the gate

Which of these bars is actually unusual?

An anomaly gate: robust median + MAD z-scores flag only the bars that are statistically unusual for NVDA itself — price spikes, overnight gaps, and volume surges past the |z| > 3 threshold — measured against an EWMA expected daily move, with notes on why each flag matters. The scan runs on real price history only.

NVDA12 flagged · 180 barsexpected move 2.54%/dayσ 40% ann.
The standout — bar 17: volume surge at +5.93σ, the most statistically unusual bar for NVDA. A single-channel breach — clean volume surge, not a coincident move.
+3σ gate−3σ gate
price spikeovernight gapvolume surgeper-bar max |z|
Flagged bars12
Price spikes1
Overnight gaps2
Volume surges9
Expected move2.54%
Gate|z| > 3

Flagged bars — every statistically unusual hit

sort
volume surgebar 17+5.93σsev 1.98
volume surgebar 8+5.71σsev 1.90
volume surgebar 18+5.16σsev 1.72
volume surgebar 82+4.89σsev 1.63
price spikebar 69+4.70σsev 1.57
volume surgebar 37+4.22σsev 1.41
volume surgebar 5+4.16σsev 1.39
volume surgebar 146+3.48σsev 1.16
volume surgebar 7+3.33σsev 1.11
volume surgebar 83+3.32σsev 1.11
overnight gapbar 137-3.32σsev 1.11
overnight gapbar 124-3.05σsev 1.02

Each row is one bar past the gate. The σ is the dominant channel's robust z-score; severity scales with how far past |z| > 3 it ran. Only these route to the catalyst/conviction layer — the rest is noise.

NVDA fired 12 statistically unusual bar(s) — 1 spike(s), 2 gap(s), 9 volume surge(s) — past the |z| > 3 gate, against a ~2.54% expected daily move.
The detector flags only the bars that are unusual for THIS stock, then explains why each one matters. The gate keeps the agent from narrating noise. Computed on real price bars; research — your decisions, your risk.
What "robust z-score" means
NVDA had 12 statistically unusual bar(s) over the window (threshold |z| > 3).
A z-score asks "how many standard deviations from normal is this?" We use a ROBUST version: instead of the average and standard deviation (which a single wild day distorts), we use the median and the Median Absolute Deviation (MAD), scaled by 1.4826 so it lines up with a normal curve. That way one crazy bar does not redefine "normal" and hide the next one.
→ Only these flagged bars are worth a narrative — the rest is noise.
Price spike detected
The biggest move was +4.7σ on bar 69 (severity 1.5661).
A "spike" is a single-day price move far larger than this stock's own recent typical move. That is exactly the kind of bar that usually has a REASON behind it — an earnings surprise, a guidance change, an analyst action — which is why the agent routes it to look for the catalyst rather than shrugging it off.
→ Route to catalyst/conviction layer to find the "why."
Overnight gap detected
An unusual open-vs-prior-close jump of -3.32σ on bar 137.
A "gap" is when the stock OPENS far away from where it closed the day before — the move happened while the market was shut. Gaps almost always trace to overnight news (an earnings print, a deal, a macro shock), so an unusually large gap is a strong signal to go read the tape.
→ Overnight news is the usual culprit — pull the headline.
Volume surge detected
Volume ran +5.93σ above its normal range on bar 17.
Volume is how many shares changed hands. A surge means far more people than usual were trading — conviction, forced flows, or a reaction to news. Big volume CONFIRMS a move: a price spike on heavy volume is more meaningful than the same move on a quiet day.
→ Heavy volume confirms the move is real, not a fluke quote.
Your expected daily move (EWMA)
The model expects roughly a 2.54% move on a normal day right now.
We track volatility with an EWMA (exponentially-weighted moving average): it weights recent days more heavily, so the "expected move" rises after turbulent stretches and falls when things calm down. A bar only counts as a spike when it dwarfs THIS adaptive expectation — so the same +3% means "normal" for a meme stock and "alarming" for a utility.
→ A bar matters only when it dwarfs the expected move.

Glossary

z-score
How many standard deviations a value sits from its typical level. |z| > 3 is roughly a 1-in-370 day under a normal curve.
MAD
Median Absolute Deviation — a robust stand-in for standard deviation that a single outlier cannot inflate.
Volume surge
A day where trading volume is far above its recent typical level — a sign that something drew the crowd in.
EWMA volatility
Exponentially-weighted volatility — an adaptive estimate of the typical daily move that leans on recent days.
Expected move
sigma * sqrt(1) — the one-day standard-deviation of returns the model currently expects.