Research Article Open Access

A Novel Anomaly Detection Approach for Nifty Stocks using Machine Learning for Construction of Efficient Portfolio to Reduce Losses and Protect Gains

Virrat Devaser1 and Priyanka Chawla1
  • 1 Department of Computer Science and Engineering, Lovely Professional University, Jalandhar, Punjab, India

Abstract

Machine Learning is the most essential and widely utilized methodological approach these days for performing, organizing, and analyzing data using a variety of approaches to produce correct and efficient results. Machine learning methodologies are also applicable to stock markets, which have grown multi-fold in recent years, and with the amount of money involved, the possibility of manipulation is always present and has increased. Machine learning techniques can be used to detect anomalies in price behavior or price movements that are out of the ordinary. We investigated how to detect abnormalities utilizing a combination of fundamental and technical aspects in this study. We used multiple machine learning approaches to detect various types of abnormalities using fundamental and technical factors integrated into stock market data in the current proposed study work. The results have been produced utilizing a bagging strategy that included the use of a class One support vector machine, a local outlier factor, and other techniques. Companies tend to have varying valuations across sectors, but generally follow a range for a specific industry type; hence the data sets have been divided by sector. The results were segmented into the industry type, such as banking, cement, and energy. The portfolio has been built using anomaly scores. The method assisted in the removal of equities from the portfolio, avoiding losses and preventing profits from eroding. The mean absolute error has been determined to be 10.22%, which enhances the whole system's ability to detect anomalies.

Journal of Computer Science
Volume 18 No. 5, 2022, 441-452

DOI: https://doi.org/10.3844/jcssp.2022.441.452

Submitted On: 17 February 2022 Published On: 6 June 2022

How to Cite: Devaser, V. & Chawla, P. (2022). A Novel Anomaly Detection Approach for Nifty Stocks using Machine Learning for Construction of Efficient Portfolio to Reduce Losses and Protect Gains. Journal of Computer Science, 18(5), 441-452. https://doi.org/10.3844/jcssp.2022.441.452

  • 1,614 Views
  • 1,184 Downloads
  • 0 Citations

Download

Keywords

  • Machine Learning
  • Support Vector Machine
  • Data Mining
  • Stock Markets
  • Anomaly Detection
  • Class One Support Vector Machine
  • Local Outlier Factor
  • Supervised Learning
  • Unsupervised Learning
  • Semi-Supervised Learning
  • Portfolio Building