Skip to content

Sentiment analysis

Intermediate11 min readLesson 15 of 21

120 XP

In short

Sentiment measures come from surveys, positions and flows, prices of insurance such as implied volatility, and the tone of text. What people say and what they do with money often disagree, and the measures are not interchangeable. Sentiment series move slowly, so decades of data hold few independent extremes, and most claims for or against cannot yet be tested.

Sentiment analysis tries to measure the mood of people in the market, or how they are placed. It does not look at how a business makes money. It does not look at the shape of a price chart. It sits next to the fundamental and technical traditions as a third thing to look at. Its core claim differs from both. It does not say a company is worth something. It does not say past prices predict future ones. It says that what other people expect can be measured, and that this carries information.

That claim makes sense, and the measuring is hard. Most of this article is about why. The problem decides how much weight the whole field can bear.

The four families of measure

Surveys. People are asked what they expect. Bull-and-bear polls of small investors and of newsletter writers go here. So do polls of professional investors and of consumer confidence. They measure what people say.

Positioning and flow. This covers options trades, such as the ratio of puts to calls. It also covers short interest, fund flows, futures positions by type of trader, and margin balances. They measure what people have done.

Price and volatility derived. This covers implied-volatility indices, the shape of the volatility surface, and credit spreads. These are prices, not opinions. They are arguably the most objective of the four. But they measure the cost of insurance, and that is not the same thing as fear.

Text. Software reads news, filings, earnings calls and social media, and scores them for tone.

Worked example

The distinction that does the most work: saying versus doing. A survey response costs nothing. A position costs money and can be wrong expensively. The two frequently disagree, and when they do, the positioning data is the harder one to fake and the harder one to interpret. A large put position can mean a participant expects a decline, or that they hold the underlying and are insuring it: an identical observation with opposite meanings. Sentiment measures are not interchangeable, and treating a survey reading and a positioning reading as two views of the same quantity is a common error in reading this material.

Try it with your numbers

How uncertain is an average return or a Sharpe ratio measured over T years?

Try it · Estimate standard error.

Inputs

No lesson works an example for this tool, so it opens on round starting values. The tool suggests no number: enter your own.

At least two for an estimated Sharpe ratio.

Standard error, percentage points2.26σ ÷ √T: mean annual return, assumed annual volatility, independent annual observations, normal sampling distribution
  • Lower end of the approximate 95% interval, percentage points · estimate − 1.96 × SE: mean annual return, assumed annual volatility, independent annual observations, normal sampling distribution; sampling uncertainty around the estimate, not a forecast range0.57
  • Upper end of the approximate 95% interval, percentage points · estimate + 1.96 × SE: mean annual return, assumed annual volatility, independent annual observations, normal sampling distribution; sampling uncertainty around the estimate, not a forecast range9.43

Mean mode: assumed annual volatility, independent annual observations, a normal sampling distribution. Estimated-Sharpe mode: IID normal annual excess returns, mean and volatility both estimated, asymptotic (Lo 2002)

A mean annual return estimate of 5.00% from 50 independent annual observations with an assumed volatility of 16.00% has SE = σ ÷ √T = 2.26 percentage points. The approximate 95% interval under a normal sampling distribution is 0.57% to 9.43%. It is sampling uncertainty around the estimate, not a forecast range. Annual observations are the sampling unit here; serial correlation, non-normal returns and other sampling frequencies need a different model.

Educational and informational only — not investment advice, a recommendation, or an offer to buy or sell any security. Investing involves risk, including the possible loss of principal. Worked examples use fictional companies and figures.

Calculators earn no XP.

Open this calculator on its own page

Why text-based measures are harder than they look

Scoring tone requires deciding which words are negative. But the words of finance are not everyday words. A study published in the Journal of Finance in 2011 looked at a large set of annual filings. A common general word list flagged many words in them as negative. Almost three-quarters of those counts were words that are not negative in finance. In a financial statement, words such as liability, cost, depreciation and capital carry no bad news. They are just the words of accounting.

So a simple tone score of a financial document is largely measuring how much accounting is in it. Word lists built for finance exist because of this finding. The case is also a useful warning. A measure run by software can be precise, repeatable and systematically wrong. The first two traits do not reveal the third.

The contrarian framing, and what it costs

Sentiment is often read against the crowd. Extreme optimism is treated as a warning, and extreme pessimism as the opposite. The reasoning is not silly. If people are already fully committed, the extra buying that would push prices higher has already been spent.

The problem is what this does to testing the claim. Every reading becomes a claim about where today sits among past readings. So it all depends on how extreme is defined. Extreme is set by a percentile of history, and that moves as more history builds up. A reading in the top tenth of its first ten years may be ordinary across thirty.

The measurement problem, computed

Sentiment series change slowly. A bullish week is followed by another bullish week far more often than not. So readings next to each other are not independent. The useful sample is much smaller than the raw count.

Take a series with first-order autocorrelation ρ. The effective number of independent observations is about n(1 − ρ)/(1 + ρ). Twenty years of weekly readings is 1,040 raw observations, and independent top-decile episodes are counted here as one tenth of the effective observations, rounded to a whole number.

Autocorrelation of the seriesEffective independent observations from 1,040 weekly readingsIndependent top-decile episodes
0.01,040104
0.534735
0.811612
0.9555
0.95273

The second half asks a new question. How many separate episodes would be needed to show that what follows an extreme reading differs from a coin flip?

If the true hit rate after an extreme reading wereIndependent episodes needed to detect it (80% power, 5% level)
55%783
60%194
65%85
70%47
80%20

Worked example: two decades of data cannot settle the question. A weekly sentiment survey with autocorrelation of 0.8 yields roughly 116 effective observations over twenty years, and about 12 independent extreme episodes. Detecting even a 70% hit rate would require 47 episodes; detecting a 60% hit rate would require 194. With twelve episodes, even an effect of overwhelming size, around 80%, would fall short of the 20 episodes needed. This cuts in both directions and that is the point. It means confident claims that a sentiment measure works are not supported by the available data, and equally that confident dismissals are not either. A fair description is that most sentiment claims are, at present sample sizes, not testable within a professional lifetime of data, which is a different and more uncomfortable statement than saying they are wrong. (Effective-sample formula and a two-sided binomial power calculation against a 50% null, using the normal approximation and rounding up to a whole episode; both are standard constructions and the figures follow from them.)

What has actually been established

The best-known result in the area is narrow, and it is worth stating exactly. A study published in the Journal of Finance in 2007 scored the tone of a daily newspaper column. It found that high gloom in the media predicts falling prices, followed by a move back toward fundamentals. It also found that very high or very low gloom predicts heavy trading. The author said these results fit models of noise traders and liquidity traders. He said they did not fit three other views of the column. One is that it just carries new facts about what assets are worth. Another is that it just tracks volatility. The last is that it is a sideshow with no link to markets.

Worked example

What that result supports, and what it does not. It supports the proposition that measured sentiment is related to market behavior, that the relationship has a plausible mechanism, and that it is not merely a restatement of news about fundamentals, which is a real finding and rules out the most dismissive position. It does not support the framing sentiment usually arrives in. The effects documented are short-horizon, concern the aggregate market rather than any individual security, include reversion as part of the finding rather than a durable move, and were measured on one specific text source over a defined period. The distance between that and a reader watching a sentiment gauge to decide something is very large.

Two structural problems that no amount of data fixes

Sentiment tends to follow returns. People say they feel hopeful after prices have risen. So a sentiment series is in large part a delayed copy of the price series. That puts it in the same group as the tools in the article on moving averages, RSI and MACD. It rearranges what is already known rather than adding to it. So any sentiment measure has to show it adds something beyond past returns. That is much harder than showing it is linked to what comes next.

And the measure is part of the system it measures. People watch a popular sentiment gauge and adjust for it. That changes the very behavior it was built to see. This is the same loop described in Support and Resistance. It bites harder here, because sentiment is by its nature a measure of other people, not of an asset.

Check understanding

1 of 5

A fictional weekly mood survey has ten years of data (520 readings) and first-order autocorrelation of 0.8. Using the article's formula, about how many effective independent observations does it hold?

Frequently askedCommon questions

8 questions

What is sentiment analysis?

An attempt to measure the mood or positioning of people in the market, not the economics of a business or the history of a price. Its core claim is that the state of other people's expectations can itself be measured and carries information.

What kinds of sentiment measures exist?

Four families. Surveys measure what people say. Positions and flows measure what people have done. Price and volatility measures include implied-volatility indices. The fourth is software that scores the tone of news, filings and social media.

Why do surveys and positioning data disagree?

Because a survey answer costs nothing and a position costs money. Positions are harder to fake but harder to read. A large put position may show an expected decline, or it may be insurance on a holding. The observation looks the same either way.

What is a contrarian indicator?

A sentiment reading read against the crowd. The reasoning is that people who are fully committed have already spent the buying power that would push prices further. The idea makes sense. But it makes every claim depend on how extreme is defined. That is a percentile of history, so it moves as history builds up.

Why is sentiment so hard to test?

Because the series change slowly. Twenty years of weekly readings with autocorrelation of 0.8 gives about 116 effective observations and about 12 independent extreme episodes. Detecting even a 70% hit rate would need 47. Most sentiment claims cannot be tested within a working lifetime of data, for or against.

Do automated news sentiment scores work?

They measure something; the question is what. In one large study of filings, a common general word list flagged many words as negative. Nearly three-quarters of those counts were words that are not negative in finance. So a simple tone score of a filing partly measures how much accounting it holds. Word lists built for finance exist because of this.

Has any sentiment effect been established?

Yes, narrowly. A 2007 Journal of Finance study found that high gloom in the media predicts falling prices, followed by a move back toward fundamentals. Very high or very low gloom predicted heavy trading. The effects are short-term. They concern the market as a whole, not single shares. And the move back is part of the finding.

Does MarketClue publish a sentiment indicator?

No sentiment score or mood index is published as a signal, and there is no contrarian flag or social tone reading. No market condition is labeled optimistic, complacent or fearful in MarketClue's own data. Where market-implied figures such as option- or futures-implied probabilities are shown, they are presented as prices with their construction stated.

ReferencesWhere this comes from

Finished reading?

Mark it complete once the answer holds without scrolling back up.

Ask MarketClue AI about this lesson

The question carries this lesson as its context. MarketClue AI needs an account.

MarketClue does not provide financial advice.

Next on your list

Topic 25 · Types of analysisScenario and sensitivity analysisLesson 16 of 21
Next lesson

After that

Educational and informational only — not investment advice, a recommendation, or an offer to buy or sell any security. Investing involves risk, including the possible loss of principal. Worked examples use fictional companies and figures.