Reserach Report
Reserach Report
Graphic Era deemed to be University Graphic Era deemed to be University Graphic Era deemed to be University
Abstract
prices in order to make wise investment choices and
In this project, machine learning is be used to analyse reduce risks. However, given the enormous amount of
how news articles may affect the stock market. By data and intricate dynamics involved, determining the
studying the connection between the news stories and relationship between news events and stock market
changes in company stock prices, the study will performance can be difficult. Using a data-driven
examine the effect of news items on the stock market. methodology, this initiative seeks to give a thorough
The machine learning model for the project will be analysis of the effect of news events on stock market
trained using historical stock prices and news articles. performance. We provide a framework that enables the
The effectiveness of the model will be assessed using analysis of the complex relationship between news
statistical criteria including recall, accuracy, and events and stock prices by combining data processing,
precision. The model will be put to the test on a real- symbol matching, financial data retrieval, machine
time news feed to see how well it can forecast changes learning, and visualisation techniques. We will go over
in stock price. The project's findings will shed light on this analysis's methodology, findings, and consequences
how news affects the stock market and can be used to in the parts that follow, providing you important new
guide investment decisions. Additionally, the project information about the complex connection between
may aid in the creation of more complex machine news events and stock market performance.
learning algorithms for stock market analysis.
Introduction . A wide range of factors can affect stock
prices on the stock market, which is a dynamic and
volatile environment. News, particularly news about the literature survey
businesses and industries whose stocks are traded, is
1. Alexander O'Connor and Christian Rayner's
one of the major factors that might have an impact on
"Predicting Stock Prices from Financial News Articles
the stock market. The use of machine learning
Using Machine Learning and Sentiment Analysis" (2019)
algorithms to examine how news affects the stock
- This research discusses a machine learning method
market has gained popularity in recent years. The goal
that bases stock price predictions on financial news
of this project is to create a system that uses machine
stories using sentiment analysis.
learning to analyse how news affects the stock market.
Contrary to conventional methods that rely on 2. Sahil Gupta and Anubhav Jain's "Machine Learning
sentiment analysis and natural language processing Techniques in Stock Price Prediction" (2019) - This
(NLP), we have employed tokenization and pattern article gives a general review of the machine learning
matching methods coupled with machine learning methods, such as feature extraction, pattern
algorithms to analyse news stories and forecast their recognition, and prediction models, that are used to
effect on stock market. forecast stock prices.
4.Matching company name a.The script iterates through each row in the df
DataFrame, which contains the matching news items
The script seeks to match the firm names listed in the and their corresponding symbols. a. Iterating through
df2 DataFrame with the company names indicated in Each Row.
the news descriptions. In the df DataFrame, it adds a
new column called "common_company_names" that b. Retrieving Stock Data: The script searches the stock
will hold the matching companies' names as strings. dictionary for the stock data for each news item's
This matching procedure makes it easier to determine matching symbol. This stock data includes the high and
the business a news piece is discussing. low prices for a particular time frame, often 5 days prior
to and 5 days following the news date .
c. Calculating Average values: For the stock data very clear how stock prices changed in response to
obtained in the previous step, the script calculates the various news events. A standard deviation curve was
average of the "High" and "Low" values. The stock price also used to illustrate how stock volatility relates to
before and after the announcement is estimated in this news events. Investors were able to evaluate the
average price. potential impact on their investment thanks to this
visualisation, which showed the degree of uncertainty
1.Retrieve Stock Data: The script pulls the
and risk connected with particular news items.The
corresponding stock data from the stock dictionary for a
intricate relationship between news events and stock
given news story. The opening price, closing price, high
market performance was made clear by the results of
price, low price, and volume traded for a given time
impact analysis, machine learning, and visualisations.
period (for example, the five days before and five days
The framework offered a thorough method for figuring
following the news date) are some of the common
out how news impacts stock prices, revealing trends
details included in this stock data.
and insights that might not have been visible through
2.Calculate Average: The script focuses on the "High" human research alone. These results have significant
and "Low" values of the stock data for simplicity. It ramifications for investors, financial analysts, and
calculates the average value by adding the "High" and decision-makers since they advance our knowledge of
"Low" values together and dividing the sum by 2. This the stock market's dynamics and help us make better
provides an estimate of the stock price before and after investment decisions based on news analysis.
the news announcement.
CONCLUSION
To sum up, the created framework offers a reliable
method for examining news data, connecting it with
stock symbols, extracting pertinent stock data, and
using machine learning techniques to foretell how news
events would affect stock values. This framework aids in
providing understanding of the intricate connection
between news events and the stock market. The study's
conclusions have consequences for investors, financial
analysts, and decision-makers who need to
comprehend stock market dynamics and make wise
investment decisions based on news research.