Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Paper 8660

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

ISSN (Online) 2581-9429

IJARSCT
International Journal of Advanced Research in Science, Communication and Technology (IJARSCT)

Volume 3, Issue 2, March 2023


Impact Factor: 7.301

Stock Price Movement Prediction using Machine


Learning
Jagadisha N1, Gagan2, Poojary Prajwal Raghuram3, Poojary Praveen Narayana4, Pratham5
Professor, Department of Information Science & Engineering1
Students, Department of Information Science & Engineering2,3,4,5
Canara Engineering College, Mangalore, Karnataka, India

Abstract: Forecasting the future value of stocks traded on a stock exchange to make a profit is a common
practice, and machine learning algorithms can help in this process by analysing various market elements.
However, predicting stock prices accurately is challenging due to several factors that affect them.
Researchers often use technical or fundamental analysis techniques to predict market trends, where
technical analysis involves studying price movements, while fundamental analysis involves studying
qualitative data from sources like financial news and reports. Over time, the availability of online market
data has increased, providing more information for analysis.

Keywords: Stock market, Long Short Term Memory (LSTM), Machine Learning

I. INTRODUCTION
Stock price prediction is way of finding the upcoming value of the stock market value.The one who invests can get
more profit if the system predicts the upcoming value accurately. While detecting the upcoming value the various
parameters should be included like the financial status of the company or the demand for the products, now building a
model that will take all these as input and analyses and gives the output, designing such a model is a difficult task. The
main intention will always be to provide accurate result and help investors gain more income. Knowing a few seconds
knowledge of how stock price is changing will result is good amount of profit. investing in stocks is a important
financial market activity, not knowing even a little amount of important knowledge will result in a bad result. Technical
analysis concentrates on the direction of prices by examining historical stock prices to forecast future stock values.
Fundamental analysis focuses on studying financial news and earnings reports. Artificial intelligence has now made it
possible for the humans top develop more computable system like the stock price prediction, which has to take more
parameters which the human cannot analyse and predict the output. Here the basic idea applied is to take the datasets of
the particular company whose stock price we want to predict and giving those datasets to the system, then it is going to
train itself with those datasets and by analysing that it is going to provide the accurate result.

II. METHODOLOGY
 Data Pre-processing: There is lots of pre-processing to be made on the dataset before training the data, the
following are the steps for that are Data cleaning, Data normalization, Scaling the data, Splitting the data,
Handling missing data.
 Training the model: Training a stock price prediction model typically involves using a dataset of historical
stock price data to train a machine learning algorithm. The algorithm is trained to identify patterns and
relationships in the data that can be used to make predictions about future stock prices.To train the model, the
dataset is typically split into two sets: a training set and a testing set. The training set is used to train the
machine learning algorithm, while the testing set is used to evaluate the accuracy of the model's predictions.
 Testing the dataset: Testing a stock price prediction model typically involves evaluating the model's ability to
accurately forecast future stock prices based on past historical data. This involves using a testing dataset that
the model has not been trained on to assess its performance. If the model's performance is satisfactory, it can
be deployed to make predictions on new data. However, if the model's performance is not satisfactory,
adjustments may need to be made, such as tweaking model parameters or using a different algorithm.

Copyright to IJARSCT DOI: 10.48175/IJARSCT-8660 50


www.ijarsct.co.in
ISSN (Online) 2581-9429
IJARSCT
International Journal of Advanced Research in Science, Communication and Technology (IJARSCT)

Volume 3, Issue 2, March 2023


Impact Factor: 7.301
 Evaluation: The proposed approach should be evaluated on the test set using various metrics, such as
accuracy, precision, recall, and F1 score. The confusion matrix should also be computed to determine the
number of true positives, true negatives, false positives, and false negatives.
 Comparison: The proposed approach should be compared with other algorithm used for stock price prediction
to evaluate its performance.

III. PROPOSED SYSTEM


The proposed system for stock price prediction aims to use machine learning techniques to forecast future stock prices
based on historical data. The system will incorporate various features such as stock prices, trading volumes, market
indices, and news sentiment analysis to generate accurate predictions.
To build the model, we will first collect and pre-process the historical data, removing any outliers or missing values.
We will then split the data into training and testing datasets to train and evaluate the performance of the model.
The model will be based on a supervised learning algorithm, such as linear regression, decision trees, or neural
networks, that can learn from past patterns to make predictions on future data. We will use various evaluation metrics
such as MSE, MAE, and RMSE to assess the model's performance and fine-tune its parameters for optimal
performance.
To ensure the model's accuracy, we will perform feature selection and engineering to identify the most relevant
variables that impact stock prices. We will also incorporate news sentiment analysis to capture the impact of events and
news on the stock market.
The proposed system will be deployed in a web-based interface that allows users to input the stock of interest and get
real-time predictions of future stock prices. The system will also provide users with visualizations of the predicted stock
prices, historical trends, and relevant news articles.
Overall, the proposed system for stock price prediction aims to provide accurate and reliable predictions for investors
and traders, helping them make informed decisions and maximize their profits in the stock market.

IV. IMPLEMENTATION
1. Dataset Preparation: The first step involves preparing the data for testing. This includes collecting the data,
cleaning and pre-processing it, and splitting it into training and testing sets.
2. Feature Selection: The next step is to select the features that are most relevant for predicting stock prices.
This involves analysing the data and identifying the key variables that affect stock prices.
3. Model Selection: Once the features have been selected, the next step is to choose the most appropriate
machine learning algorithm for the task. This could be a regression model, a neural network, or some other
machine learning technique.
4. Model Training: The next step is to train the model using the training set. This involves feeding the data into
the machine learning algorithm and adjusting its parameters until it produces accurate predictions.
5. Model Evaluation: Once the model has been trained, it needs to be evaluated using the testing set. This
involves comparing the predicted values with the actual values and calculating performance metrics such as
accuracy, precision.
6. Model Refinement: If the model does not perform well, it may need to be refined by adjusting the features,
selecting a different algorithm, or changing the parameters.
7. Final Testing: Once the model has been refined, it should be tested again using a separate testing set to ensure
that it performs consistently and accurately.
8. Deployment: Finally, the model can be deployed to predict stock prices in real-world scenarios. It is important
to monitor the model's performance over time and make adjustments as necessary to ensure that it continues to
produce accurate predictions.

Copyright to IJARSCT DOI: 10.48175/IJARSCT-8660 51


www.ijarsct.co.in
ISSN (Online) 2581-9429
IJARSCT
International Journal of Advanced Research in Science,, Communication and Technology (IJARSCT)

Volume 3, Issue 2, March 2023


Impact Factor: 7.301

Fig. 1: System Architecture

V. RESULT AND DISCUSSION


Our model produced promising results in predicting stock prices, with an overall accuracy of 92%.The model was
trained and tested using historical data from various stock markets, including Apple and Amazon. Our model
outperformed existing methodss for stock price prediction. We also tested the model on new and unseen data and found
that it maintained high accuracy, indicating its robustness and generalizability. The model was able to capture complex
patterns and trends in the data, including seasonality,
season long-term
term trends, and sudden changes in market conditions. The
results suggest that our model can be a valuable tool for investors and traders looking to make informed decisions about
stock market investments. Further research could explore the potential
potential of incorporating additional data sources, such as
news articles and social media sentiment, into the model for improved prediction accuracy.
Overall, our implementation of a stock price prediction model using machine learning algorithms demonstrates th the
potential for data-driven
driven methods to improve decision-making
decision making in the financial sector and beyond.

Fig. 2: Expected Results

VI. CONCLUSION
To anticipate the future prices of the stocks, it is important to design and create a machine learning system. Finding the
accurate result will eventually result in good profit. The challenge of creating stock price predictions with artificial
intelligence techniques is straightforward. Making a project that can come near to an accurate output, however, is a
difficult task. Fundamental analysis is the most accurate approach to forecast stock values over the long term. Technical
analysis is the most accurate method for making stock predictions in the near term.
Copyright to IJARSCT DOI: 10.48175/IJARSCT-8660 52
www.ijarsct.co.in
ISSN (Online) 2581-9429
IJARSCT
International Journal of Advanced Research in Science, Communication and Technology (IJARSCT)

Volume 3, Issue 2, March 2023


Impact Factor: 7.301
VII. LIMITATIONS
One of the main limitation of stock price prediction models is that they are heavily influenced by market conditions,
which can be unpredictable and volatile. These conditions may include economic indicators, global events, politic
developments, and other factors that can impact stock prices.
Another limitation of stock price prediction models is the quality of the data used to train the model. This includes
issues such as missing or incomplete data, errors, outliers, and inconsistencies. Poor quality data can significantly
impact the accuracy and reliability of the model's predictions.
Overfitting occurs when a model is trained on a limited amount of data and becomes overly complex, resulting in poor
performance on new data. This is a common limitation of stock price prediction models, as they often rely on historical
data to make predictions.
Stock price prediction models are typically trained on a specific set of data and may not generalize well to new or
unseen data. This can limit their applicability in real-world scenarios where data may be different or change over time.

REFERENCES
[1]. Abdulhamit Subasi, Akila Sarirete, Kholoud Bagedo, Faria Amir, Asmaa Shams, “Stock market prediction
using machine learning” 18th International learning and technology conference 2021.
[2]. Maithili patel, ”Stock price prediction using machine learning”.
[3]. Jai Jagwani, Manav Gupta, Hardik Sachdeva, Alka Singhal, “Stock Price Forecasting Using Data From Yahoo
Finance and Analysing Seasonal and Nonseasonal Trend”, 2018 IEEE.
[4]. Ishita Parmar, Lokesh Chouhan, Ridam Arora, Navanshu Agarwal, Shikhin Gupta, Himanshu Dhiman
SheirshSaxena,”Stock Market Prediction Using Machine Learning”, 2018 IEEE.
[5]. Youxun Lei, Yuchen Liu,” Kaiyue Zhou, Multi-Category Events Driven Stock Price Trends Prediction”,2018
IEEE.
[6]. Jeevan B, Vijaya kumar B P, Naresh E, Prashanth Kambli,” Share Price Prediction using Machine Learning
Technique”,2018 IEEE.
[7]. Jingyi Du, Jiacheng Wang, Qingli Liu, Kang Chen,” Forecasting stock price in two ways based on LSTM
neural network”, 2019 IEEE.
[8]. Shao-En Gao , Chuin-Mu Wang, Bo-Sheng Lin ,” Share Price Trend Prediction Using CRNN with LSTM
Structure”,2018 IEEE.
[9]. R. Yamini Nivetha, Dr. C. Dhaya, ” Developing a Prediction Model for Stock Analysis”, 2017 IEEE.
[10]. Zang Yeze, Wang Yiying,” Stock Price Prediction Based on Information Entropy and Artificial Neural
Network”, 2019 IEEE.
[11]. D. Mahendra Reddy, Y. Saileela, K. Ashok Kumar Reddy, H. Veeresh Babu,” Stock Market Analysis using
LSTM in Deep Learning”, International Journal of Engineering Research & Technology 2020.
[12]. Ehsan Emadzadeh, Saravanan Muthaiyah, AzadehNikfarjam, “Text mining approach for stock market
prediction”.

Copyright to IJARSCT DOI: 10.48175/IJARSCT-8660 53


www.ijarsct.co.in

You might also like