Professional Documents
Culture Documents
Approaches of Sentiment Analysis in Finance - Articles by Fervent
Approaches of Sentiment Analysis in Finance - Articles by Fervent
FERVENT | FINANCE
COURSES, INVESTING
COURSES
Approaches of Sentiment
Analysis in Finance
Share Tweet Share
In this article, we’re going to learn about the two core approaches for
estimating sentiment for sentiment analysis in Finance.
We ethically use cookies on our website to give you the best possible user experience. By clicking “Accept All”, you
Just
consent to the a quick
use of ALLrecap though,
the cookies. recall
However, that
you may we
visit saidSettings"
"Cookie sentiment analysis
to provide a controlled consent.
(https://www.ferventlearning.com/sentiment-analysis-an-overview/),
Cookie Settings Accept All
at
least in finance, involves quantifying and exploiting sentiment or emotions
f t fi t t
https://www.ferventlearning.com/approaches-of-sentiment-analysis-in-finance/ 1/13
12/04/2023, 19:35 Approaches of Sentiment Analysis in Finance - Articles by Fervent
Or indeed, it’s about estimating sentiment. And then linking it to other firm
characteristics to gain a better understanding of how sentiment can drive
firm performance.
Further recall that we said sentiment itself can include things like
positivity; as well as negativity, uncertainty, narcissism. And a whole host
of other human emotions that you might think of when you think of the
word sentiment.
We ethically use cookies on our website to give you the best possible user experience. By clicking “Accept All”, you
consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
https://www.ferventlearning.com/approaches-of-sentiment-analysis-in-finance/ 2/13
12/04/2023, 19:35 Approaches of Sentiment Analysis in Finance - Articles by Fervent
Let’s consider both, starting with the lexicon or dictionary based approach.
This Article features concepts that are covered extensively in our course
on Investment Analysis with Natural Language Processing (NLP)
(https://www.ferventlearning.com/courses/investment-analysis-with-
natural-language-processing-nlp/).
We ethically use cookies on our website to give you the best possible user experience. By clicking “Accept All”, you
consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
https://www.ferventlearning.com/approaches-of-sentiment-analysis-in-finance/ 3/13
12/04/2023, 19:35 Approaches of Sentiment Analysis in Finance - Articles by Fervent
If you’re interested in learning how to leverage the power of text data for
investment analysis while working with real world data, you should
definitely check out the course
(https://www.ferventlearning.com/courses/investment-analysis-with-
natural-language-processing-nlp/).
For the lexicon based approach, we typically start with some sort of a prior
or belief or opinion on what constitutes words relating to sentiment.
The key idea is that we start with an opinion on what we believe are
words that plausibly relate to the sentiment. And we call that collection of
words a sentiment language.
We ethically use cookies on our website to give you the best possible user experience. By clicking “Accept All”, you
Importantly,
consent to sentiment
the use of ALL the language
cookies. However, is visit
you may the"Cookie as sentiment
sameSettings" to providelexicon . Which
a controlled consent.
is the same
Cookie Settings
as sentiment dictionary.
Accept All
https://www.ferventlearning.com/approaches-of-sentiment-analysis-in-finance/ 4/13
12/04/2023, 19:35 Approaches of Sentiment Analysis in Finance - Articles by Fervent
Consistent with other aspects in finance, we just use a bunch of words that
mean exactly the same thing. Because it tends to make us sound clever.
But jokes aside, we can either create the sentiment language from scratch,
or we can work with existing sentiment language.
Then we might argue that words like “happy”, “positive”, “growth”, “increase”,
or “excitement” are all words that plausibly relate to positivity.
We would then say that those words together make up our positive
sentiment language or .
https://www.ferventlearning.com/approaches-of-sentiment-analysis-in-finance/ 5/13
12/04/2023, 19:35 Approaches of Sentiment Analysis in Finance - Articles by Fervent
Your Email
We ethically use cookies on our website to give you the best possible user experience. By clicking “Accept All”, you
Estimating
consent to Sentiment
the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
https://www.ferventlearning.com/approaches-of-sentiment-analysis-in-finance/ 6/13
12/04/2023, 19:35 Approaches of Sentiment Analysis in Finance - Articles by Fervent
Now, you don’t really need to worry about what we mean by cleaned words
just yet. We have got a separate post on how to clean text data
(https://www.ferventlearning.com/how-to-clean-text-data/).
The only thing you need to know for now is that we don’t really work with
the words in a given document.
We ethically use cookies on our website to give you the best possible user experience. By clicking “Accept All”, you
Machine learning based approach for sentiment
consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
analysis
Cookie Settings inAll finance
Accept
https://www.ferventlearning.com/approaches-of-sentiment-analysis-in-finance/ 7/13
12/04/2023, 19:35 Approaches of Sentiment Analysis in Finance - Articles by Fervent
Perhaps more fancy than the standard lexicon based approach, the
machine learning approach is arguably more objective. However, data
limitations mean we can’t quite leverage its power (yet). But here’s how
you’d go about applying it.
Remember, a Corpus is just the entire sample of text data that you’re
working with.
And so in that case, you’d have a sub-sample of the data, which is labeled
as either positive or negative.
We ethically use cookies on our website to give you the best possible user experience. By clicking “Accept All”, you
Train,
consent to the use Test, Iterate
of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
https://www.ferventlearning.com/approaches-of-sentiment-analysis-in-finance/ 8/13
12/04/2023, 19:35 Approaches of Sentiment Analysis in Finance - Articles by Fervent
Keep in mind that the machine learning approach isn’t quite as simple and
straightforward as we’ve made it seem.
It can in fact get far more complicated than what we’ve written here.
But the reason we’re not really going into much more detail is that,
fundamentally, applying this approach for sentiment analysis in Finance is
quite problematic.
And that is because we don’t really have financial text data with sentiment
labels in Finance!
There’s plenty of IMDB movie reviews, for instance, that have labels of
either positive or negative sentiment, or some sort of rating scale between
1 and 10.
And you could easily say, or plausibly argue, that any movie with a rating
greater than five is plausibly positive. Any movie with a rating below five is
plausibly negative. And any movie with a rating of 5 is plausibly neutral.
writing, which
Cookie Settings
has already classified companies based on their level of
Accept All
sentiment.
https://www.ferventlearning.com/approaches-of-sentiment-analysis-in-finance/ 9/13
12/04/2023, 19:35 Approaches of Sentiment Analysis in Finance - Articles by Fervent
Now, you might argue that it should be fairly trivial to create such a
database.
For instance, why not just scrape the Twitter / social media accounts of
companies, and classify their tweets on sentiment?
As trivial as that actually is, the issue then becomes one of connecting that
data to stock returns.
We ethically use cookies on our website to give you the best possible user experience. By clicking “Accept All”, you
But
consent to thedoing sothe
use of ALL will be challenging
cookies. However, you maybecause theSettings"
visit "Cookie Twitter to profiles / socialconsent.
provide a controlled
media profiles
Cookie Settings
of companies don’t tend to have their tickers, CIK number,
Accept All
CUSIP, or other firm level identifiers in their profile descriptions!
https://www.ferventlearning.com/approaches-of-sentiment-analysis-in-finance/ 10/13
12/04/2023, 19:35 Approaches of Sentiment Analysis in Finance - Articles by Fervent
That in turn makes merging sentiment score data with other financial data
tricky.
And so at least today, machine learning approaches in finance are largely
focused on traditional asset pricing.
For instance, machine learning algorithms are used to try and explain the
cross-section of returns. Or even the volatility of returns.
Wrapping Up
In summary, we learned that sentiment can broadly be estimated using a
lexicon / dictionary based approach, or a machine learning approach.
And so for the most part, both academics and practitioners largely rely on
using the lexicon or dictionary based approach for estimating sentiment.
We ethically use cookies on our website to give you the best possible user experience. By clicking “Accept All”, you
Related Course: Investment Analysis with Natural
consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Language
Cookie Settings Accept All Processing (NLP)
https://www.ferventlearning.com/approaches-of-sentiment-analysis-in-finance/ 11/13
12/04/2023, 19:35 Approaches of Sentiment Analysis in Finance - Articles by Fervent
We ethically use cookies on our website to give you the best possible user experience. By clicking “Accept All”, you
consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
https://www.ferventlearning.com/approaches-of-sentiment-analysis-in-finance/ 12/13
12/04/2023, 19:35 Approaches of Sentiment Analysis in Finance - Articles by Fervent
We ethically use cookies on our website to give you the best possible user experience. By clicking “Accept All”, you
consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
https://www.ferventlearning.com/approaches-of-sentiment-analysis-in-finance/ 13/13