Stock market forecasting is considered to be a challenging topic among time series forecasting. This study proposes a novel two-stage ensemble machine learning model named SVR-ENANFIS for stock price prediction by combining features of support vector regression (SVR) and ensemble adaptive neuro fuzzy inference system (ENANFIS). We evaluate XP INC. CLASS A CMN prediction models with Modular Neural Network (Social Media Sentiment Analysis) and Stepwise Regression1,2,3,4 and conclude that the XP stock is predictable in the short/long term. According to price forecasts for (n+16 weeks) period: The dominant strategy among neural network is to Hold XP stock.

Keywords: XP, XP INC. CLASS A CMN, stock forecast, machine learning based prediction, risk rating, buy-sell behaviour, stock analysis, target price analysis, options and futures.

## Key Points

1. Should I buy stocks now or wait amid such uncertainty?
2. What is the best way to predict stock prices?
3. Can neural networks predict stock market?

## XP Target Price Prediction Modeling Methodology

Several intelligent data mining approaches, including neural networks, have been widely employed by academics during the last decade. In today's rapidly evolving economy, stock market data prediction and analysis play a significant role. Several non-linear models like neural network, generalized autoregressive conditional heteroskedasticity (GARCH) and autoregressive conditional heteroscedasticity (ARCH) as well as linear models like Auto- Regressive Integrated Moving Average (ARIMA), Moving Average (MA) and Auto Regressive (AR) may be used for stock forecasting. We consider XP INC. CLASS A CMN Stock Decision Process with Stepwise Regression where A is the set of discrete actions of XP stock holders, F is the set of discrete states, P : S × F × S → R is the transition probability distribution, R : S × F → R is the reaction function, and γ ∈ [0, 1] is a move factor for expectation.1,2,3,4

F(Stepwise Regression)5,6,7= $\begin{array}{cccc}{p}_{a1}& {p}_{a2}& \dots & {p}_{1n}\\ & ⋮\\ {p}_{j1}& {p}_{j2}& \dots & {p}_{jn}\\ & ⋮\\ {p}_{k1}& {p}_{k2}& \dots & {p}_{kn}\\ & ⋮\\ {p}_{n1}& {p}_{n2}& \dots & {p}_{nn}\end{array}$ X R(Modular Neural Network (Social Media Sentiment Analysis)) X S(n):→ (n+16 weeks) $∑ i = 1 n a i$

n:Time series to forecast

p:Price signals of XP stock

j:Nash equilibria

k:Dominated move

a:Best response for target price

For further technical information as per how our model work we invite you to visit the article below:

How do AC Investment Research machine learning (predictive) algorithms actually work?

## XP Stock Forecast (Buy or Sell) for (n+16 weeks)

Sample Set: Neural Network
Stock/Index: XP XP INC. CLASS A CMN
Time series to forecast n: 03 Nov 2022 for (n+16 weeks)

According to price forecasts for (n+16 weeks) period: The dominant strategy among neural network is to Hold XP stock.

X axis: *Likelihood% (The higher the percentage value, the more likely the event will occur.)

Y axis: *Potential Impact% (The higher the percentage value, the more likely the price will deviate.)

Z axis (Yellow to Green): *Technical Analysis%

## Adjusted IFRS* Prediction Methods for XP INC. CLASS A CMN

1. Measurement of a financial asset or financial liability and classification of recognised changes in its value are determined by the item's classification and whether the item is part of a designated hedging relationship. Those requirements can create a measurement or recognition inconsistency (sometimes referred to as an 'accounting mismatch') when, for example, in the absence of designation as at fair value through profit or loss, a financial asset would be classified as subsequently measured at fair value through profit or loss and a liability the entity considers related would be subsequently measured at amortised cost (with changes in fair value not recognised). In such circumstances, an entity may conclude that its financial statements would provide more relevant information if both the asset and the liability were measured as at fair value through profit or loss.
2. If the contractual cash flows on a financial asset have been renegotiated or otherwise modified, but the financial asset is not derecognised, that financial asset is not automatically considered to have lower credit risk. An entity shall assess whether there has been a significant increase in credit risk since initial recognition on the basis of all reasonable and supportable information that is available without undue cost or effort. This includes historical and forwardlooking information and an assessment of the credit risk over the expected life of the financial asset, which includes information about the circumstances that led to the modification. Evidence that the criteria for the recognition of lifetime expected credit losses are no longer met may include a history of up-to-date and timely payment performance against the modified contractual terms. Typically a customer would need to demonstrate consistently good payment behaviour over a period of time before the credit risk is considered to have decreased.
3. Expected credit losses reflect an entity's own expectations of credit losses. However, when considering all reasonable and supportable information that is available without undue cost or effort in estimating expected credit losses, an entity should also consider observable market information about the credit risk of the particular financial instrument or similar financial instruments.
4. A contractually specified inflation risk component of the cash flows of a recognised inflation-linked bond (assuming that there is no requirement to account for an embedded derivative separately) is separately identifiable and reliably measurable, as long as other cash flows of the instrument are not affected by the inflation risk component.

*International Financial Reporting Standards (IFRS) are a set of accounting rules for the financial statements of public companies that are intended to make them consistent, transparent, and easily comparable around the world.

## Conclusions

XP INC. CLASS A CMN assigned short-term B2 & long-term Ba3 forecasted stock rating. We evaluate the prediction models Modular Neural Network (Social Media Sentiment Analysis) with Stepwise Regression1,2,3,4 and conclude that the XP stock is predictable in the short/long term. According to price forecasts for (n+16 weeks) period: The dominant strategy among neural network is to Hold XP stock.

### Financial State Forecast for XP XP INC. CLASS A CMN Stock Options & Futures

Rating Short-Term Long-Term Senior
Outlook*B2Ba3
Operational Risk 8555
Market Risk3689
Technical Analysis7965
Fundamental Analysis4143
Risk Unsystematic3769

### Prediction Confidence Score

Trust metric by Neural Network: 86 out of 100 with 513 signals.

## References

1. L. Panait and S. Luke. Cooperative multi-agent learning: The state of the art. Autonomous Agents and Multi-Agent Systems, 11(3):387–434, 2005.
2. Bewley, R. M. Yang (1998), "On the size and power of system tests for cointegration," Review of Economics and Statistics, 80, 675–679.
3. Chipman HA, George EI, McCulloch RE. 2010. Bart: Bayesian additive regression trees. Ann. Appl. Stat. 4:266–98
4. S. J. Russell and A. Zimdars. Q-decomposition for reinforcement learning agents. In Machine Learning, Proceedings of the Twentieth International Conference (ICML 2003), August 21-24, 2003, Washington, DC, USA, pages 656–663, 2003.
5. Bessler, D. A. R. A. Babula, (1987), "Forecasting wheat exports: Do exchange rates matter?" Journal of Business and Economic Statistics, 5, 397–406.
6. Farrell MH, Liang T, Misra S. 2018. Deep neural networks for estimation and inference: application to causal effects and other semiparametric estimands. arXiv:1809.09953 [econ.EM]
7. Bickel P, Klaassen C, Ritov Y, Wellner J. 1998. Efficient and Adaptive Estimation for Semiparametric Models. Berlin: Springer
Frequently Asked QuestionsQ: What is the prediction methodology for XP stock?
A: XP stock prediction methodology: We evaluate the prediction models Modular Neural Network (Social Media Sentiment Analysis) and Stepwise Regression
Q: Is XP stock a buy or sell?
A: The dominant strategy among neural network is to Hold XP Stock.
Q: Is XP INC. CLASS A CMN stock a good investment?
A: The consensus rating for XP INC. CLASS A CMN is Hold and assigned short-term B2 & long-term Ba3 forecasted stock rating.
Q: What is the consensus rating of XP stock?
A: The consensus rating for XP is Hold.
Q: What is the prediction period for XP stock?
A: The prediction period for XP is (n+16 weeks)