The Stock Sentiment Tracker turns short financial text into a cross-sectional sentiment panel for S&P 500 names. Each headline and summary is scored with VADER (Valence Aware Dictionary and sEntiment Reasoner), a lexicon-and-rule model that does not require a trained classifier. Scores are aggregated by ticker and by window, then aligned with end-of-day prices so the page can ask a narrow empirical question: how does lexical tone co-move with contemporaneous returns?
The object of study is the compound score , not a trading signal. Coverage is uneven, the lexicon is not a causal model of prices, and news often arrives after the move it describes. The methodology below states the scoring rule, the aggregation, and the correlation diagnostics that the live panel reports.
Headlines and summaries are pulled from Yahoo Finance US market news through the pipeline (yfinance; no API key). Only the headline and the short summary are retained. Full article bodies are not stored, which keeps the footprint small and avoids treating licensed long-form text as a research corpus.
A document is assigned to ticker only when the company name or the symbol appears in that short text. Documents that match no name are dropped; documents that match several names can enter more than one ticker average.
Prices are end-of-day closes. For horizons the simple price change is . Sentiment history is stored day by day so lag-1 autocorrelation of the score series can be computed without reconstructing the news feed.
VADER maps tokens to valence intensities in a fixed lexicon and then applies rule-based adjustments for negation, degree modifiers (intensifiers and dampeners), punctuation, and capitalisation. The four raw outputs for a document are the proportions of positive, neutral, and negative valence plus a normalised compound score. Normalisation uses
where is the sum of adjusted valence weights in the document. The constant is the VADER normalisation parameter; it bounds in and compresses long documents toward the extremes more slowly than a raw sum would.
The lexicon is useful for headlines because financial copy is short, negation-heavy ("fails to beat"), and full of intensifiers. It is not a domain language model: words outside the dictionary contribute nothing, and sarcasm or deal-contingent phrasing is scored literally.
For ticker and window , let be the documents assigned to inside that window. The reported signal is the equal-weighted mean compound score
Windows are one, three, and six months. Tickers with an empty document set are reported as inactive rather than as a zero sentiment reading, because zero would be indistinguishable from genuinely neutral coverage.
The job runs daily. The sequence is: fetch the headline feed, assign documents to tickers by name or symbol, score each document with VADER, average compounds inside each window, pull end-of-day prices and horizon returns, then write the aggregated report.
Persisted outputs are the per-ticker score file, the price and momentum file, a short headline list, the day-by-day sentiment history, and pipeline metadata. Raw article text is not kept.
Because the score is an average of a changing document set, is not a fixed-composition index. A single widely syndicated headline can move a thinly covered name by more than it moves a mega-cap with dozens of items in the same window. The live table therefore shows coverage implicitly: inactive names are those with no matched documents.
The association the page reports is contemporaneous, not a forecast. For a horizon , the cross-sectional Pearson correlation is
computed on names with both a sentiment average and a price change. A scatter of six-month sentiment against six-month price change is the visual counterpart. Histograms of show whether the return cross-section is skewed in that window, which matters because Pearson is sensitive to outliers.
On the time-series side, lag-1 autocorrelation of the daily sentiment path for a selected ticker is . Persistent scores mean the lexicon is repeating the same story; a correlation near zero means the feed is turning over. Return autocorrelation at the same horizons is reported alongside so sentiment persistence is not confused with return momentum.
These statistics describe co-movement. They are not information coefficients against a future return, and they are not t-tested for multiple windows.
VADER does not model context beyond its negation and intensifier rules. Sarcasm, conditional language, and issuer-specific jargon outside the lexicon are scored incorrectly or ignored.
Coverage rises with market capitalisation. A six-month average for a heavily covered name is a large-sample mean; the same statistic for a sparsely mentioned name is a handful of documents and should not be compared as if the standard errors were equal.
Headlines are often published after prices have moved. A positive can mean the press described a rally, not that tone predicted it. The tracker does not lag the score relative to returns, so it does not identify lead-lag.
The default feed is Yahoo Finance headlines. Broader wire coverage would change both the document counts and the averages. Research output only — not an investment recommendation.
Lexical compounding gives a transparent, reproducible tone measure: each document is a bounded valence score, and each ticker is an average of the documents that name it. Aligned with horizon returns, that panel shows whether the current news flow is leaning with or against recent price changes.
Read the correlations as descriptions of the latest window. Sparse coverage, a fixed lexicon, and the tendency of headlines to follow prices all limit how far the score can be pushed as a forecast. The live section below is the current cross-section under that definition.