Predicting Optimal Portfolio by Algorithm Analysis Systems

Choosing the proper investment mechanism is one of the main tasks of any investor that requires careful analysis and research on all available information. Since no investor exactly knows whether his or her expectations for a particular stock return will be met, they need to build their strategy in such a way as to eliminate as much damage as possible in the event of an adverse outcome. This study aims to predict the optimal portfolio using Algorithm Analysis Systems. In this regard, 98 firms listed on the Tehran Stock Exchange were examined in 2015-2019. Then, random portfolios were selected to test the research hypotheses by separating value stocks and growth stocks. For analysis, two algorithms of Support Vector Machines and an Adaptive Neuro-Fuzzy Inference System were used to select the most desirable portfolio. According to the support vector machine algorithm analysis, the results confirm the difference between the Sortino and Marquitz portfolios. To build their portfolios, decision-makers often rely on growth stocks which can boost their expected returns. Therefore, recognizing the analytical nature of portfolio formation in specialized areas can help improve investment analysis and pave the way for higher returns.


Introduction
Predicting and examining the price behavior of securities to form an investment portfolio is a category that financial scientists and investors are always looking for.The main reason for investing in the stock market is to make a profit, which requires accurate information about the stock market, stock changes, and its future trend; therefore, the investor needs powerful and reliable tools to predict risk and return (Schellinger, 2020).Portfolio optimization as a strategic tool is considered a basis for forecasting that, if appropriate to market conditions and appropriate analytical methods, can help increase the accuracy of investors' forecasts (Kandahari et al., 2017).The issue of portfolio optimization has come a long way since Markowitz introduced mean-variance optimization.The most important achievement of the Markowitz model was the introduction of variance as a risk indicator and, in fact, the introduction of a quantitative criterion for it.Post-Markowitz research has shown that the use of variance as a risk factor has shortcomings that cause the traditional tools in forecasting to be criticized (Raei et al., 2020).Studies such as Herberger and Reinle (2020); Senarathne (2019); Gupta et al. (2014), and Ince and Trafalias (2007) state that using traditional forecasting tools and methods has a high error rate and they have poorer performance compared to newer methods and nonlinear models.In this study, one of the artificial intelligence methods called support vector machine, along with one of the most widely used algorithms in this field, the adaptive neural fuzzy inference system, are examined to predict the most desirable stock portfolio because the goal is to choose the appropriate forecasting method in selecting the desired portfolio.
Recent advances in artificial intelligence have proposed new methods for prediction that are more accurate than traditional methods (Fattahi Nafchi et al., 2019).The most common of these methods is the artificial neural network algorithm.However, neural networks have shortcomings, such as the need for high control parameters, difficulty in achieving stable results, and so on.Due to such weaknesses, better methods have been designed to improve the neural network model.Support vector machine (SVM) is a supervised learning method in classification and regression.This method is one of the relatively new methods that, in recent years, has shown good performance compared to older classification methods, including neural networks (Faghihinejad & Minaei, 2018).The root of support vector is in statistical learning theory and many applications in regression and classification; they have clustering and approximation functions.This approach initially included only two-class classification but was later extended to multi-class classification using various blending techniques (Wang et al., 2017).
On the other hand, the adaptive neural fuzzy inference system is considered a neural-fuzzy analysis approach; the most significant advantage is that it can take advantage of the neural network learning capability and avoid the time-consuming regulation of an inference engine in a conventional fuzzy logic system.Practically, there are no restrictions on the node functions of adaptive networks; unless they need to be derivative.The only structural limitation of the shape of networks is the type of feed they are.Against this minor limitation, the use of adaptive networks has become increasingly widespread in the field of applications (Petkovic et al., 2014).The system works so that the neurons' output is typically calculated to the last layer as they move forward at each training session.And then, the result parameters are calculated by the least squares error method (Vakilifard et al., 2014).Therefore, despite the analytical interpretations of the two methods, this study seeks to choose the most desirable portfolio from the two portfolios of Sortino Predicting Optimal Portfolio by Algorithm Analysis Systems and Markowitz to increase investment effectiveness and select the most effective hybrid analysis systems algorithm based on characteristics based on growth and value metrics.In fact, this research helps companies' managers improve their level of analytical knowledge and form an effective investment portfolio to achieve higher returns.Therefore, this study aims to predict the effectiveness of the difference between Sortino and Markowitz's portfolios based on the algorithm of hybrid analysis systems.

Portfolio Selection
The framework of Van Neumann-Morgan Stein's theory of utility function is always one of the most reliable theories for deciding whether to form a portfolio.Suppose the investor faces two portfolios, X and Y, as in this study (Sortino and Markowitz portfolios).In that case, selecting the appropriate portfolio requires using the expected utility function (Thompson, 2020).For example, if position Y is assumed to have a 50% probability of a 5% return and another 50 percent chance of 15 percent risk, a person without knowledge of the utility function will likely become more conservative and make decisions based on risk aversion.For this person, the utility function is as follows: The utility function of the whole investor is written as follows: According to this function, position Y with a yield of 5% is equal to U = (Y), which is equal to the starting point of OA.In the case of a random position Y, the expected utility must be calculated.

∑
Accordingly, the expected utility in calculating the return on the Y portfolio is the midpoint of the AD line segment.By matching the return of portfolio X, we can estimate the expected desirability in portfolio selection (Falahpour et al., 2014).However, it is noteworthy that the investment is evaluated based on the utility function, which is a function of the risk and return of portfolios.Moreover, if one or more portfolios are random and their returns are not definitively determinable, the expected utility of the portfolios will be the basis for the decision: The expected utility has a positive relationship with return and a negative relationship with risk.If a portfolio such as A is considered, its risk position and return compared to other portfolios are shown in the chart above.All points in space B indicate higher risk and lower returns, so it has a lower desirability level than point A. The points in space C represent projects with less risk and efficiency; therefore, their level of desirability is different from point A, which is based on an ambiguous situation.The points located in space D have the lowest risk and the lowest return in the desired portfolio, so they are a reference to point A (Firoozdehghan et al., 2019).

Growth and value stocks
The stock offering is considered one of the ways to finance companies in the capital market and stock exchanges of countries with specific frameworks, rules, and regulations.Potential investors consider important financial factors when trading stocks, including earnings per share, dividends per share, price and price growth, and stock returns.Meanwhile, the stocks of companies with higher returns than the market average are expected to trade at a higher price, but this may only be the case in some circumstances.Because the stock of a Firm that grows at a high average yield and trades at a high price may not be stable.On the other hand, a stable profit, even if it is average or below the market average, gives the investor confidence that in the future, at least, the price will not decrease.Therefore, the investor is faced with trading two types of stocks, called value and growth stocks, that need their own strategies to select them (Salehi & Salehi, 2016).Haugen (2001), in his definition of growth stocks, stated that growth stocks are stocks whose price is higher than the average compared to cash flow, profit, dividend, and current book value.Therefore, growth stocks will have lower returns in the long run than value stocks, which have a lower-than-average price according to the mentioned criteria.In a comprehensive definition, growth stocks are the stocks of companies that will have a high positive profit.This profit is higher than the average rate of return commensurate with their risk because their stocks have a lower intrinsic value.Value stocks are stocks that, for some reason, other than the possibility of potential revenue growth, are priced at lower intrinsic value (Asadi & Eslami Bidgoli, 2014).Proponents of growth stocks believe that the main reason for investing in this type of stock is to invest in the future growth of the Firm's profits.Therefore, they put stock buying on the agenda, the profit of which is expected to grow almost rapidly.Growth investors are looking for stocks of companies that have grown faster than average throughout history; therefore, they have high growth potential.Growth is measured by factors such as the increase in profits or sales of the Firm.Growth stock managers tend to accumulate profits and refuse to pay dividends because they want to reinvest any available cash in the firm.Thus, growth investors mainly derive their return on investment from rising stock prices (Kistner, 1995).
In contrast, value-seeking investors do not rely on the Firm's future growth forecasts.They try to identify stocks trading at prices below value, which is reflected in the fundamental factors of the Firm.Analysts commonly recognize value stocks as low (P / E) to low (P/B) ratios.However, a clear definition of growth and value stocks must be defined.

Research Methodology
The present study is applied in terms of purpose and terms of data collection method is a quasi-experimental post-event research in the field of positive accounting research which is done using the proposed hybrid models.The statistical population studied in this study is companies listed on the Tehran Stock Exchange, which was studied from 2015 to 2019.Therefore, in order to select the research sample, the systematic screening method has been used, and companies that have the following set of conditions are selected as the sample: 1. Companies whose date of admission to the Stock Exchange Organization is before 2015 will be on the list of listed companies until the end of 2019.
2. Their fiscal year should end at the end of March, as it helps the research to compare the accounting data of different companies and avoid calendar effects in comparison between companies.
3. They have kept their activities and fiscal year the same during the mentioned years.
4.Not be part of investment and financial intermediation companies (investment companies were not included in the statistical community due to the difference in the nature of their activities with other companies).
5. The interruption of transactions in these companies during the mentioned period should be at most six months.
By applying the above restrictions, 98 firms were selected as the statistical sample of the study.The data required by the selected companies were extracted by referring to the financial statements and explanatory notes and the companies listed on the Tehran Stock Exchange available in the Codal system, the stock exchange website.
This study aims to test the various structures of a meta-heuristic algorithm to predict the effectiveness of selecting the most effective portfolio by considering the data of 98 stock exchange companies.The most important question is the efficiency of the above systems in predicting the effectiveness of choosing the right portfolio of companies from the two portfolios of Sortino and Markowitz.The second question examines which portfolio will yield better results in the companies surveyed in each industry.Moreover, it is possible to arrive at a single model to predict the effectiveness of selecting the desired portfolio.The third question also evaluates the possibility of extracting influential variables through research analysis.

Markowitz portfolio
To select the optimal portfolio, Markowitz proposed the "mean-variance" model, in which mean is a measure of return and variance is a measure of risk, and standard deviation and variance as a measure of risk assuming an average rate of return distribution (Dalagonol et al., 2009, p. 729).This model was introduced in 1952, and Markowitz stated that the investor, in addition to maximizing returns (as much as possible), also wants to ensure returns.Nevertheless, to justify his argument, he says, "If investors only wanted to maximize the expected return, they would only invest in the type of asset that has the highest expected return."at a glance, it can be seen that investors own "a collection of a portfolio of portfolio securities."In justifying this behavior, investors pay attention to the two phenomena of risk and return.Thus, investors seeking to maximize expected returns and minimize uncertainty (means risk) have these two opposing goals that must be balanced against each other.One of the exciting results of these two conflicting goals is that the investor must diversify by buying several types of securities (Baptista, 2012).Markowitz's approach to investment can be better explained by a more precise definition of the concept of primary value and final value (Talebnia & Fathi, 2010).In this model, a firm's stock is presented as a risky asset because the instability (randomness) of the total rate of return (weekly, monthly, and annual) is the cause.Because these rates change over time, a probability distribution function can be formed for them, and the criteria required by the Markowitz model, such as mean, standard deviation, covariance, etc., can be obtained from them.The Markowitz model is based on the following assumptions: Investors are risk averse and have the expected incremental utility, and the ultimate utility curve of their wealth decreases.Investors select their portfolios based on the expected average return variance.Therefore, their indifference curves are a function of the expected rate of return and variance.Every investment option is infinitely divisible.Investors at a certain level of risk prefer higher returns and vice versa.Based on this, investors pay attention to two factors in their choice:  A) High expected returns, which is a favorable factor. B) Uncertainty returns which is an undesirable factor.
To obtain a portfolio selection based on the Markowitz method, which is the minimum variance for a particular level of return.We have the following linear programming model: (1) Which is in: weight related to i share in the stock portfolio; ̅ expected portfolio return; ̅ stock returns i; Stock portfolio return variance.The variance of stock portfolio returns is calculated according to equation (4) below:

Sortino Portfolio
The Sortino index is obtained if an undesirable risk module is used in the performance appraisal instead of SD (SD).In fact, if X is the portfolio return variable and f(x) is a function of the probability challenge of this variable, μ is the mean, and r is the acceptable rate of return or MAR, the Sortino index knowledge can be represented as follows (Mamoghli & Daboussi, 2008). (5) Which is in: The half-standard deviation of returns is below the target rate and is: In this research, equation ( 7) has been used to calculate the undesirable risk: In the Sortino criterion, the mean return is adjusted for undesirable risk.This risk focuses on returns that have yet to increase returns without risk.The IMNEX index is designed to assess the performance of stock exchange companies and the fact that there is an indicator that indicates the performance of stocks in general.This index is designed by weight, and various adjustments are foreseen.The formula for calculating this index in equation ( 8 Different statistical methods were used to test the research hypotheses depending on the nature of the hypotheses.In the test of the first hypothesis, to better separate the two portfolios of Markowitz (X) and Sortino (Y) for selection and investment, stocks were classified into five categories: value stocks to growth stocks.(K1) to (K5) were used to classify stocks so that value stocks (K1) and growth stocks (K5) were considered.The method of stock separation was also calculated based on the defined ratios, Which are presented in Table (1), so those stocks with lower ratios are value stocks with higher returns than growth stocks.
Then, to distinguish between the two portfolios in this study, the hyperbola algorithm based on the criterion of random and equal weights was used separately.Equal weights According to the model of Fama and French (1992), after the stocks of the surveyed companies in each quintile, were selected, all stocks with equal weight quintiles were placed in the portfolios of this study, namely Markowitz (X) and Sortino (Y).Thus, a growth portfolio and a value portfolio were formed each year.Also, random weights were first formed by a vector of random values based on the number of shares of the surveyed companies in each quintile.The values were standardized and, in other words, were examined, of the sum of all components became a vector equal to one that portfolios with random weights.
Due to the increase in the number of portfolios formed during a year and the research period, not all portfolios were necessarily formed with equal weight.In other words, ten growth and ten value portfolios with random weights were created each year, and over five years, 50 portfolios were created randomly for comparison.This method has two advantages: First, it increases the number of samples; second, it shows whether the selection of a value or growth portfolio differs from the daily performance of stocks.It should be noted that since the stock weight in the portfolios is random, the return numbers and standard deviations may vary slightly with each program run; this difference is not so crucial in the analysis of the results.Based on this, the components of separating value and growth stocks should be determined to select the appropriate portfolio.

Separation of value stocks and growth stocks
This research is an adaptation and following various research such as Doering et al. (2019), Hubner and Lejeume (2017), and Carazo et al. (2010) of 7 book value criteria at share market price (B / P); Earnings to share price ratio (E / P); Cash flows to price ratio (CF / P); Total debt to total asset Ratio (TD / TA); Ratio of fixed assets to total assets (FA / TA); The ratio of sales to total assets (S / TA) and the ratio of net earning to total assets (NE / TA) are used.It is noteworthy that for the calculation of each ratio, the balance sheet data of year t-1 and the first price data after July 31 of year t are used.Accordingly, companies are divided into five categories for each ratio.The companies with the highest value ratios will be the value companies, and those with the lowest will be the growth companies.

Preprocessing
Due to the unequal number of Sortino and Markowitz portfolios, it is necessary to apply a balancing (equalizer) structure to equalize the number of companies surveyed in terms of the above two portfolios.Suppose the data is entered without using the data balancing process.In that case, the group system analysis process will be detected accurately.The opposite group will be detected with lower accuracy due to the low number of input samples.Therefore, as explained, based on the separation of value stocks and growth stocks (companies with the highest value ratios, value companies, and companies with the lowest value ratios will be growth companies) has been balanced the Sortino and Marquitz portfolios.

The structure of analysis in a hybrid analysis algorithm
In this research, the general structure of the analysis process is in the form of  Based on this structure, hybrid analysis algorithms optimize the combination of system inputs (7 criteria for separating growth and value stocks) and analysis parameters.In each step, to measure the optimization algorithm, 50 repetitions of the structure (ten growth portfolios and ten value portfolios with random weights were constructed each year.Over five years, 50 portfolios were randomly used as five parallel replications (10-part crossvalidation).Optimization intervals the default values provided by the optimization algorithm providers are given below.The optimization intervals of classification models are selected based on expert opinion and trial and error, and it is possible to examine other intervals in future studies.

A) Support vector machine (SVM):
This analysis is used as one of the metainnovative dimensions for classification and segregation issues.In other words, this analysis is the basis for the linear classification of data.The linear data division tries to choose a line with a more reliable margin.The optimal linefinding equation for data is solved by Quadratic Programming "QP" methods, known for solving constrained problems.SVM backup vector machines process data as vectors.Among all the hyper pages that separate the data, they choose the one page with the highest resolution or the most significant margin between the data of the different classes.The desired meta-page is selected to ], the input vector is , and the value of the class is i = 1,…, is defined, { }, then, when the data are linearly separable, the decision rules are defined and will be concerning (1) with an optimal plane that separates the binary decision classes.

(∑ )
(1) Where: y is the output of the equation, yi is the value of the educational sample class, and indicates the internal coefficient.The vector represents input data, and the vectors are backup vectors.In relation (1), parameters b and ai determine the effectiveness.If the data are not linearly separable, equation (1) changes to equation ( 2).

(∑ )
( The function is a kernel function that generates internal beats to create machines with different types of nonlinear decision levels in the data space (Falahpour et al., 2013).Different kernels are used for the support vector machine regression model (first hypothesis): linear, quadratic, Gaussian, and polynomial.The Gaussian radial basis kernel function (RBF) usually has a radial function to predict better performance.The equation of this kernel function is equation (3): (3) After entering the corporate data into the SVM algorithm, this algorithm obtains the alpha coefficients of the model σ and then applies the data that the algorithm has not yet estimated to the model to measure the accuracy of the prediction (Salehi & Aminifard, 2012), and then based on three MSE criteria for grade point mean; MAE is the mean absolute value of the error and R2 is the coefficient of determination of the portfolio difference level.

Adaptive Neural-Fuzzy Inference System (ANFIS):
The adaptive neuralfuzzy inference system is a hybrid system that combines the ability to make fuzzy logic with neural network computing capabilities and offers a complex and high level of modeling and estimation.This system has the advantages of both models, which means that it uses the educability of neural networks and the high decision-making power of fuzzy systems in conditions of uncertainty and uncertainty.This model uses two error propagation algorithms and a combined method (combination of descending gradient method and least squares error method) for network training, which can reduce the complexity of the algorithm and, at the same time, improve network learning (Nasrollah Sarva Aghaji et al., 2016).Also, the fuzzy inference system used in it is the Sugino model, which is used to extract the fuzzy rules and the output of the system (Singh et al., 2012).Adaptive Neural-Fuzzy Inference System (ANFIS) is a fuzzy inference system with two x inputs, and one F output is assumed, as shown in Figure (3).Based on the above figure, circle, and square shapes have been used to show how different nodes work.Each square node is an adaptive node with adjustable parameters, and each node of a circular shape is known as a fixed node.In the first layer, the values of the inputs are compared with the values of the corresponding membership functions, and the degree of compliance of each input with the corresponding membership function is selected as the output of the node.Accordingly, for the first time in the Sugeno fuzzy model, a rule consisting of two-phase If-Then sets is given in relation to Equation (4) and Equation ( 5): The node in position -th of the -th layer is shown as i, and the node functions in the same layer of the same function family are as follows: layer 1 is the input layer, and each node in this layer is a square node with a membership function, given in Equation ( 6) and Equation ( 7): (6) ( 7) is a function of membership of  .The input Gaussian membership function of Equation ( 8) is a maximum of 1 and a minimum of zero.Experimental evidence and data analysis show that this distribution predicts the desirability and effectiveness of a relatively stable and reasonable portfolio. (8) In the above relation, c is the mean, and σ is the variance of the membership function.Each node in layer 2 is a circular node labeled (norm function).The multiplication of the input signal is expressed by Equation ( 9 Where , and are variables.This layer has a circular node labeled Sigma element whose final output equals the set of inputs (Equation 12).
According to the given explanations, it should be stated that by using the possible structures of neural network and support vector (using vectorization), it is possible to provide the best and most effective portfolio selection in the above models, that depending on the type of data of the surveyed companies, its significant difference can be used as a basis for predicting the most effective portfolio tool.

Research Hypothesis
1. Based on the meta-heuristic algorithm, the Sortino (X) portfolio significantly differs from the Markowitz (Y) portfolio.2. The accuracy of the Adaptive Neural Fuzzy Inference Analysis System (ANFIS) is higher than that of the Support Vector Machine Analysis (SVM) system to select the most effective portfolio from the Sortino and Marquitz portfolio.
To design the main structure of the system, MATLAB software version R2018b has been used.The relationship between the two software is coded for standard reporting of Visual Basic for Applications (VBA) system in the Microsoft Excel 2013 environment.In addition to the above, parts of the Java language in the MATLAB environment have been used to improve system performance and efficiency.SQL Server 2014 is also used to communicate with the database and convert and transfer data.

Findings
In order to better explain the differences between the portfolios studied in this section, out of a total of 98 firms selected as the sample size, we compare 14 companies with a high level of investment in both Marquez and Sortino methods: According to the information provided by 14 companies, the highest portfolio is related to the Markowitz portfolio.The highest share is related to the investment portfolio of Tractor Forging Firm with a portfolio of 0.408, given that the average number of years under review has been used; in practice, there may be fluctuations in the stock performance of the Firm during the years under review.Also, the lowest share of the surveyed companies in the investment portfolios relates to Jaam Darou Firm manufacturing metal products with a portfolio of 0.041.Based on the comparison of portfolio percentages, it was determined that the highest percentage of the portfolio is related to Iran Khodro Industrial Firm, with 49.12%.This result shows that in the period of research in most of the investment portfolios of Tractor Forging Firm, it has a proportionate percentage of investment.49.12% of Iran Khodro shares belong to the Markowitz portfolio, the highest percentage among the portfolios of the companies under review.Predicting Optimal Portfolio by Algorithm Analysis Systems

Inferential analysis
As explained in the third part of the study, in the first hypothesis test, stocks were classified into five to better separate the two portfolios of Markowitz (X) and Sortino (Y) for selection and investment categories: value stocks to growth stocks.(K1) to (K5) were used to classify stocks so that value stocks (K1) and growth stocks (K5) were considered.The method of stock separation was also calculated based on the defined ratios so that those stocks with lower ratios are value stocks with higher returns than growth stocks.Then, the meta-algorithm based on the random and equal weights criterion was used separately to distinguish between the two portfolios in this study.Equal weights According to the model of Fama and French (1992), after the stocks of the surveyed companies in each quintile, were selected, all stocks with equal quintuplets were placed in the portfolios of this study, namely Markowitz (X) and Sortino (Y).Thus, a growth portfolio and a value portfolio were formed each year.Also, random weights were first formed by a vector of random values based on the number of shares of the surveyed companies in the form of each quintile; the values were then standardized, that is, the sum of all the components became vectors equal to one, and the portfolios were examined at random weights.Due to the increase in the number of portfolios formed during a year and the research period, not all portfolios were necessarily formed with equal weight.In other words, ten growth and ten value portfolios with random weights were created each year, and over five years, 50 portfolios were created randomly for comparison.Therefore, according to the first hypothesis of the study, which examines the significant difference between the Sortino (X) portfolio and the Markowitz (Y) portfolio based on the meta-heuristic algorithm, Table (4) shows the results of this hypothesis based on the growth of growth stocks and value stocks.Based on the statistical analysis according to the analysis of the backup vector machine regression algorithm, it was determined that the mean absolute value of the MAE error of the Sortino (X) portfolio is higher than the Markowitz (Y) portfolio.This means there is a significant difference between the two portfolios due to the use of growth and value data separation in terms of random weights.It is also clear from the random weights in both portfolios that the Sortino portfolio is based on growth stocks because it has higher ratios of weights, which has safer returns; Markowitz portfolios, on the other hand, are based on value stocks due to lower ratios, which pursue short-term returns on investment.It also shows the difference in the percentage of prediction R2 between the two portfolios; both portfolios can predict the probabilities and enter other influential data on investment returns.However, the R2 portfolio of the Sortino (X) portfolio is higher than the Markowitz (Y) portfolio, which means more reliance on investing through the Sortino (X) portfolio for investors who are looking for longer-term investments based on a focus on growth stocks.In order to test the second hypothesis of the research, which states that the accuracy of the adaptive neural fuzzy inference analysis (ANFIS) system is higher than the accuracy of the support vector machine analysis (SVM) system to select the most effective portfolio from Sortino and Markowitz portfolio, the effectiveness of the portfolio should be estimated based on the research components, based on which the accuracy or error calculation indices should be determined based on the mean squared error (MSE).The root means squared error (RMSE), which is presented in relations ( 13) and ( 14).As it turns out, the adaptive neural fuzzy inference system (ANFIS) based on principal component analysis, with a reduction in error, a very high correlation is observed between the actual data and the data predicted by the system, and it demonstrates the accuracy of the adaptive neural fuzzy inference system in predicting the effectiveness of a portfolio for investment.In order to differentiate the basis between the accuracy of Support Vector Machine Analysis (SVM) and the Adaptive Neural Fuzzy Inference System (ANFIS), the difference between the root mean square error (RMSE) and the mean absolute value of error (MAE) based on two portfolios is used.Table (5  This result shows that combining the optimization meta-heuristic algorithm with an adaptive neural fuzzy inference system based on research component analysis adjusts the optimal values for the parameters of these hybrid analysis systems, by reducing the error rate and accuracy of ANFIS adaptive neural fuzzy inference analysis compared to the accuracy of support vector machine (SVM) analysis, based on the difference between the root mean square error (RMSE) and the mean absolute value of the error (MAE), the ANFIS adaptive neural fuzzy inference is a better basis for selecting the effectiveness of the Sortino portfolio (X) from the Markowitz portfolio (Y).

Discussion and Conclusion
Relying on theoretical basics concerning the formation of a portfolio at the level of investment decisions of capital market companies, an attempt was made to examine the level of difference between the portfolios of Markowitz and Sortino in the form of meta-innovative analysis.In the second step, the basis of the adaptive neural fuzzy inference analysis (ANFIS) is to argue for the accuracy of the support vector machine analysis (SVM) system to select the most effective portfolio from the Sortino and Markowitz portfolios.Based on the results of the first hypothesis of the research, it was found that in order to better separate the two portfolios of Markowitz (X) and Sortino (Y) for selection and investment by using meta-heuristic algorithm analysis, the absolute mean error MAE of Sortino portfolio (X) from Markowitz portfolio (Y) is higher and this means that a significant difference was confirmed between Markowitz (X) and Sortino (Y).Therefore, relying on the analytical basis of the meta-innovative algorithm, which tries to select linear data from the data through linear classification of data, which has a more reliable margin, It should be noted that Firm managers tend to focus on growth stocks in order to choose a more investment portfolio because higher returns on random weights indicate potential returns on investment portfolio selection, they are more likely to use growth stocks.In this way, achieving longer-term than shortterm returns plays a role in investment decisions.Referring to the theoretical basis of the portfolios considered in this study, it is clear that in the view of Markowitz's portfolio, the risk is considered a measure of possible volatility for future economic returns.Sortino portfolio, on the other hand, defines risk in terms of adverse deviations from the target rate of return, which means that higher returns are achieved through long-term risk control.Relying on the understanding of the concepts, it can be seen that Sortino's portfolio seeks the best return by estimating the desirability and disadvantage of returns and risk.Furthermore, since achieving higher returns requires time to invest, managers through Sortino's portfolio seek to control risk and increase returns in the long run.Simply put, the meta-heuristic algorithm analyzed the accuracy of estimating the returns on the Sortino portfolio to form a more important portfolio.Moreover, this shows the approach of focusing on growth stocks relative to value stocks.Based on the second result of the research hypothesis, it was found that the research hypothesis stated that the accuracy of the adaptive neural fuzzy inference analysis (ANFIS) system is higher than the accuracy of the support vector analysis (SVM) system in selecting the most effective portfolio from Sortino and Markowitz, based on the difference between the two roots of the mean square error (RMSE) which was equal to (0.12) and the mean absolute value of the error (MAE) which was equal to (0.09), was confirmed.This result reflects the fact that to provide a reference for listed companies to evaluate the effective portfolio between the two Sortino (X) portfolios of the Markowitz (Y) portfolio, Adaptive Neural Fuzzy Inference Analysis (ANFIS) has a better ability to predict future investments.Studies have shown that the extracted fuzzy rules are logically correct and in accordance with reality, which is a sign of high power and good performance of the proposed algorithm.Using the analysis of the present result, Firm managers can make important decisions in optimal asset and debt management and change the Firm's performance by identifying the basis of investment portfolios to prevent a reduction in total return on investment and irreversible economic losses.This result suggests that using adaptive neural fuzzy inference analysis helps managers make better estimates of uncertainty and, therefore, achieve higher returns.On the other hand, Firm managers can perform better than backup vector analysis by relying on the computational intelligence of this analysis to classify their portfolio data to form portfolio returns.Because this system uses the ability to learn and optimize the neural network and linguistic expression of fuzzy inference simultaneously and by relying on a more accurate estimate of the mean squared error (RMSE), it can reduce the level of difference between the actual value and the predicted prediction value as much as possible.Finally, ANFIS adaptive neural fuzzy inference-based analysis provides the best predictive functions by checking all possible scenarios.Moreover, by mastering these fuzzy rules and realizing the knowledge gained by the Adaptive Neural Inference System (ANFIS), corporate executives can help the importance and relationships between the effective components in predicting the effectiveness of the right portfolio selection.At the same time, it is possible to identify investment opportunities with high accuracy according to the obtained results; it is suggested that the managers of companies, in choosing their investment portfolio while surrounding environmental changes, base their investment expectations on these changes.This way, they can choose the best strategy to form their investment portfolio and gain more returns and risk control.Because the lack of knowledge of environmental changes and alignment with the level of stakeholder expectations in investment leads to incorrect determination of investment risk coefficient and significant differences in optimal allocations.Also, the use of forecast analysis systems can sometimes strengthen the functions of forming a portfolio of investments, that having an analytical knowledge of the content and processes of those analyses, it is necessary to choose a balanced structure, such as adaptive neural inference analysis, to increase the accuracy of portfolio formation estimates.

Figure 2 .
Figure 2. Hybrid Analysis Algorithm Chart from the nearest data.Support vectors are the closest training points to the maximum margin of the super plate.Such a hyperlink, if it exists, is called a hyper-page with a maximum margin.If the training points are [

Figure 3 .
Figure 3. Adaptive Neural Fuzzy Inference System (ANFIS) layer three is labeled with a circle in Figure (4).The weights in this path are normally related to (10): ̅̅̅ (10) Each node in layer 4 enters the membership function for the same node.
actual relations is equal to the actual value; prediction is equal to the predicted value, and N is equal to the total number of data.Also, the target values and output of the algorithm for training data (companies) and epoch are presented for comparison.As Figure (4) shows, the adaptive neural fuzzy inference system (ANFIS) model adequately predicts portfolio effectiveness utility values close to the actual value.

Figure 4 .
Figure 4. Error related to predicting educational and calibration data ) shows a statistical comparison of optimization algorithms based on the Sortino portfolio (X) of the Markowitz portfolio (Y). ):

Table 1 .
The basis for Measuring Criteria Growth and Value Stocks

Table 2 .
Comparison of Markowitz and Sortinor portfolios

Table 3 .
Percentage of Markowitz and Sortino portfolios

Table 5 .
Error Index Values Based on Optimization Algorithms