Case 02.1Quantitative researchClass project, Data Science for Finance
Reading the News
Does the news move the market — predictably?
What I took from it The result I most want to be true is the one to check hardest.
- 6.5MNews stories, 2000–2023
- 522Unseen holdout days
- −12.95%Strategy · vs +47.09% buy-and-hold
- 49.81%Days it called the direction right (a coin flip)
The question
What we built, and the rules we held it to.
Markets react to headlines. Nobody argues with that. The question we wanted answered is narrower: if you score the tone of the news each day, can you trade on it the next — and beat simply holding the index?
Mohammed Almasbah and I tested it for our Data Science for Finance class project. We scored roughly 6.5 million US-economy news stories (Alexandria Technology’s AE@USA feed, 2000–2023) and lined them up against daily S&P 500 close-to-close returns.1
Timing is where a study like this can fool itself, so we drew a hard line at 4 PM Eastern, the market close, adjusted for time zones and daylight saving. A story only counts toward a return if a trader could have read it in time to act. Stories after the close move to the next day, and any that would land on a weekend or holiday (502,298 of them) roll on to the next real trading day.2
We described each day with 15 measurements (features, in the jargon) from six families: how positive the news was, how much stories disagreed, how many there were, how confident the scores were, the tone of Fed and market coverage, and which way tone was trending. Any feature that looks back over several days was shifted by a day, so no day could see its own future.
We used one standard model, an Elastic Net, tuned without ever letting it see the future. The steps below have the details.
Then we locked it and pointed it at two years it had never seen. Those two years are the holdout.3
Roughly 6.5 million stories, and one return a day
US-economy news from Alexandria Technology’s AE@USA feed, 2000–2023, lined up against daily S&P 500 close-to-close returns. Nothing clever yet — just two tables that have to agree on what “a day” means.
Every story gets a tone, and a trading day
Each story carries a sentiment score from the feed; the features in step 3 also use its positive and negative probabilities. The harder part is the clock: a story counts toward a day only if it landed before the 4 PM Eastern close. Stories after the close move to the next day; any that would land on a weekend or holiday — 502,298 of them — roll on to the next real trading day.
Fifteen ways to describe a news day
Six families: sentiment level, dispersion (how much stories disagree), volume and attention, probability and confidence, topic tone for the Fed and markets, and momentum (the recent trend). Rolling features, the ones that look back over several days, are shifted by a day, so no row can peek at its own future.
An Elastic Net, tuned without shuffling
We used an Elastic Net, a kind of linear regression that penalizes a model for leaning on too many inputs. It blends LASSO’s habit of zeroing out weak inputs with Ridge’s steadiness when inputs move together, and fifteen sentiment measures are mostly cousins of each other. A grid search over five time-ordered folds (GridSearchCV with TimeSeriesSplit) picked alpha = 6×10⁻⁵ and l1_ratio = 0.95; the scaler was fit on training data only. It kept six of fifteen features (§ 04).
Train, validate, then stop touching it
Trained on January 2000 to March 2019, validated on March 2019 to December 2023, then locked. We never shuffled the data. The holdout — 522 trading days from January 2024 — was scored once, with no refitting. This is a single split. We didn’t re-train the model as new data came in, which would be a rolling walk-forward test.
Long if it expects up, short if it expects down
Each day the strategy bets with the model’s forecast for tomorrow: long (owning the index) or short (betting against it). We compare that with simply holding the index. Results are before trading costs. On the holdout: −12.95% against +47.09%.
The test, scrolled
Keep scrolling — the chart replays the result in four steps.
It caught the COVID rebound. It looked like skill.
The strategy fell with the market in the 2020 crash, bounced back much faster — then gave the lead back from late 2021. It averaged 8.31% a year (Sharpe 0.39, return per unit of risk) against buy-and-hold’s 13.17% (0.61).
Unseen data. At first, it keeps up.
522 trading days the model never saw, and no refitting. Through mid-2024 it tracks the index, then briefly runs ahead in July, and its rolling 60-day hit rate (how often it called the direction right) touches about 66%.
Then the streak runs out.
By late 2024 the hit rate falls to about 33%. The April 2025 sell-off takes the strategy to a −41.08% maximum drawdown, its worst fall from a peak; buy-and-hold’s worst was −18.90%.
A coin flip, already priced in.
Over the holdout: −12.95% against +47.09%. Direction called right: 49.81%. Information coefficient (forecast vs. next-day return) −0.02, t = −0.47. Sharpe −0.41 against 1.30.
- Buy & hold
- Sentiment strategy
- 60-day accuracy
Chart data didn’t load here — the figures:
- Validation 2019–23
- Strategy 8.31%/yr (Sharpe 0.39) · Buy & hold 13.17%/yr (0.61)
- Holdout 2024–26
- Strategy −12.95% · Buy & hold +47.09%
- Max drawdown
- −41.08% (Apr 2025) vs −18.90%
- Signal
- IC −0.02 (t = −0.47) · accuracy 49.81%
Check it yourself
The same curves, on one timeline, for reading closely.
Fig. 1 tells the result in order. This version lets you read any point, zoom into a stretch, and move the line between “what we judged the model on” and “what came next.” The stored data covers the validation and holdout windows only; the 2000–2019 training years aren’t in it, so they aren’t drawn.4
Loading the curves…
- PointSlide a finger to read
- Drag acrossHold, then drag to zoom
- Drag the line
More
Read a point by hovering, dragging sideways on touch, or focusing the chart and using the arrow keys. Zoom by dragging across the chart (on touch, press and hold, then drag) or with the strip; double-click or Reset zoom to go back. Drag the dividing line, or focus it and use the arrow keys.
This is a what-if on the stored curves. Nothing is re-fitted: the forecasts stay exactly as they were.5 The stored curves don’t include the daily positions, so long-only versus long/short can’t be replayed here.
This figure needs JavaScript. The figures in Fig. 1 and the text stand without it.
What the model kept
Fifteen features in. Six survived the penalty.
Tuning landed on alpha = 6×10⁻⁵ and an l1_ratio of 0.95 — an Elastic Net that is almost pure LASSO, the penalty that drops weak inputs altogether. It kept six of the fifteen features and set the other nine to exactly zero.
The signs on the six tell one story: good news about the market is already in the price. Pick a feature to see what its sign says.6
Tone of market news
Positive market news is already priced in. The model bets against it: the brighter the coverage, the weaker the next day it expects.
Fitted result at our l1_ratio of 0.95.
The penalty did its job: it kept the model small and honest inside the sample. It couldn’t make the inputs predictive. On the holdout the results are what the efficient-markets view would predict: by the time a story is published, its sentiment is in the price.7 Daily news sentiment alone is not a basis for trading.
What I took from it is the line at the top of this page. The validation run looked like skill. The holdout said otherwise, and the holdout is the result. The study also left me with questions it couldn’t answer — they’re listed below. If you’ve worked on any of them, I’d like to hear how you approached it.
Was 66% ever evidence? Flip a 50% coin 522 times and track its 60-day hit rate, the way we tracked the model.8
About 1 fair coin in 4 has a 60-day stretch at 66% or better somewhere in 522 days. About 1 in 4 has one at 34% or worse. Over all 522 days a fair coin lands between 45.7% and 54.3%. The model: 49.81%.
A hot streak in mid-2024 looked like a signal. The rest of the holdout called it noise.
— The finding, in one line
- 01
Intraday timing
A daily close-to-close return blurs when news actually lands. Matching stories to intraday prices would test whether any edge lives in the first minutes — before the story is priced.
It’s still on my list of open questions - 02
Calm markets versus stressed ones
Sentiment may matter only in some kinds of market, calm or stressed. Letting each feature act differently by market regime would let the model say so, instead of averaging it away.
See the two stress periods in Fig. 1 - 03
Transaction costs
Switching sides every day isn’t free. Adding costs would raise the bar a signal has to clear, and this one didn’t clear it even before costs.
Try a cost in the explorer - 04
Sentiment plus price context
Pair the news with price-based context — realized volatility, the yield curve — so tone is read against the market it lands in, not on its own.
Tried this? Tell me how
Final report
Our group report (with Mohammed Almasbah): data and the 4 PM cutoff, the model, validation and holdout results, and the limits.
Presentation
The same story, shorter: the question, the pipeline, what the model kept and why the holdout is the result.
Not posted publicly. I’m happy to send either and walk through it. If you see a flaw in the method, tell me.
Notes
- The news is Alexandria Technology’s AE@USA feed of US-economy stories, 2000–2023, about 6.5 million of them. Market returns are daily S&P 500 close-to-close. That was the data we built the model on; the news and returns for the holdout, January 2024 to January 2026, were held back until it had been scored (note 3). The raw data isn’t posted here. ↩
- The cutoff is the main guard against lookahead, which is using information that wasn’t available yet: 4 PM Eastern, timezone- and daylight-saving-aware, so a story only counts toward a return someone could have traded on. We also shifted rolling features by a day, never shuffled rows, and fit the scaler on training data only. These guard the obvious leaks; they don’t prove there are none. ↩
- One fit, one split: trained on January 2000 to March 2019, tuned on March 2019 to December 2023, then scored on the holdout with no refitting. We never saw the holdout data: our instructor ran our prediction file on it one trading day at a time and sent back the results. A rolling walk-forward refit would be a different test, and we didn’t run one. ↩
- The 2024–26 holdout curves on this page are the instructor’s real daily results for our model, compounded from $1, so they end exactly on the report’s −12.95% and +47.09%, with the −41.08% drawdown bottoming on 9 April 2025. Only the 2019–23 validation curves are traced from the charts in our deck, so they are close, not exact. They end at about +43% and +68%, but our notebook’s final values are $1.33 for the strategy and $1.68 for buy-and-hold, so read the strategy’s validation curve as a rough shape, not a result. The trace also misses the strategy’s brief fall in the March 2020 crash. The validation rates, 8.31% and 13.17% a year, are the average daily return times 252, not compounded; compounded, $1.33 and $1.68 over those 1,208 trading days come to about 6.2% and 11.4% a year. Wherever a figure has two decimals, it is the report’s. ↩
- The study’s results are before trading costs. The what-if works only on the stored curves: the blend rebalances at each stored point (roughly every four trading days in the traced validation, every trading day in the holdout), and the cost is charged on the strategy’s share as cost × the assumed share of days the position changes, per trading day. Both are your assumptions, not measurements from the study. For scale: in the holdout the real position flipped on about 41% of days. ↩
- The model saw standardized features, so the coefficients compare like with like. The magnitudes in Fig. 3 are read off our coefficient chart and shown relative to the largest; the signs are exact. ↩
- On the holdout: information coefficient −0.02 (t = −0.47), directional accuracy 49.81%, out-of-sample R² of about −0.01. The information coefficient measures how well the daily signal lined up with the next day’s return; this one isn’t distinguishable from zero. ↩
- The coins in Fig. 4 are simulated in your browser. The read-out uses 2,000 seeded coins of 522 flips each, so its numbers are the same for everyone; the coins you flip are new on every visit. The 522-day range is p ± 1.96·√(p(1−p)/522). It treats days as independent, which daily returns only roughly are. ↩