
2.2 Portfolio Theory
Portfolio theory is the core theory used in finance to
optimize asset allocation, and its goal is to maximize
returns at a given level of risk (Long, 2024). The
classical portfolio theory was proposed by Harry ·
Markowitz, the mean-variance model. Based on the
calculation of the expected return and risk of the
asset, and the covariance between each asset, the
theory emphasizes that the optimal portfolio can be
constructed. From the current practice, modern
portfolio theory has introduced multi-factor models
and behavioral finance research results (Moreira,
Araujo, et al. 2023), which can play a role in
improving the methods of asset pricing and risk
management. The portfolio theory is based on
diversification to effectively reduce unsystematic
risks, which provides a more scientific and reasonable
basis for investors to formulate reasonable investment
strategies in a complex market environment (Ning,
2023).
3 METHODS
3.1 Introduction to the Base Portfolio
Algorithm
Specifically, the core task of the data collection
module is to obtain investment portfolio-related
accounting and market data based on various external
data sources, including financial statements,
macroeconomic indicators, market conditions, etc.,
and update them regularly based on automated
processes. The data is accessed based on external
APIs to ensure the integrity and consistency of the
collected data, and the cleaned data needs to be
converted to a format, so that the model can obtain
high-quality data in real time (Penman, 2024). The
function of the data processing and preprocessing
module is to standardize the data imported by the data
collection module, process the data in different
formats based on unified rules, and ensure that the
data quality meets the standards. All processed data is
stored in a structured database for efficient access and
recall for subsequent steps. The Factor Analysis
module extracts key financial factors, such as return
on equity and debt-to-asset ratio, based on statistical
methods and machine learning techniques to predict
portfolio performance. Based on correlation and
regression analysis, the accounting information is
converted into factor inputs to the model. Factor
weights are dynamically adjusted with market
changes to ensure that the model can accurately and
timely reflect new market signals. At the same time,
the module also supports a variety of statistical tools
for factor screening and regression analysis to ensure
the accuracy of the analysis results. Based on the
results provided by the factor analysis module, the
portfolio construction module combines with the
classical portfolio algorithm to automatically
calculate the weight distribution of various assets, and
carries out personalized adjustments according to
investors' preferences and risk tolerance. The model
balances returns and risks based on an optimization
algorithm to ensure the stability of the portfolio in the
face of market fluctuations. This module requires
periodic dynamic adjustment of asset weights
(Purwanti, 92023) to keep the portfolio in step with
market conditions. The risk management and
monitoring module is mainly used to monitor the risk
status of the portfolio in real time, such as the risk
caused by market fluctuations and the abnormal
fluctuations of individual assets. By setting risk
thresholds and using a risk budget model, potential
investment risk signals can be automatically
identified. Moreover, the system will issue timely
warnings based on different market scenarios and
automatically adjust the risk exposure of the
portfolio. In addition, the algorithm in the module can
adjust the allocation of the portfolio based on
historical data and market trends, so that investors can
get real-time risk management tips when the market
fluctuates violently. The backtesting and performance
evaluation module is responsible for simulating the
performance of investment strategies in historical
market data to verify the reliability and stability of the
model. Evaluate the performance of data from
different economic cycles in various market
environments based on the input of data from
different economic cycles. In addition, the module
needs to provide feedback content for the factor
analysis and risk management module based on the
backtest results to help optimize parameter settings
and algorithm adjustments. The evaluation results
also provide a reference for the optimization of the
investment portfolio and ensure the long-term stable
return performance of the model.
3.2 Portfolio Algorithm Design
The collection of data is the basis of the model
construction, which mainly includes comprehensive
accounting information system data related to the
investment portfolio, such as balance sheet, income
statement, cash flow statement, etc., as well as
macroeconomic data in the market, such as GDP
INCOFT 2025 - International Conference on Futuristic Technology
290