arXiv Science⌕ Search

arXiv · 2305.12826

A Simulation Package in VBA to Support Finance Students for Constructing Optimal Portfolios

Abstract

This paper introduces a software component created in Visual Basic for Applications (VBA) that can be applied for creating an optimal portfolio using two different methods. The first method is the seminal approach of Markowitz that is based on finding budget shares via the minimization of the variance of the underlying portfolio. The second method is developed by El-Khatib and Hatemi-J, which combines risk and return directly in the optimization problem and yields budget shares that lead to maximizing the risk adjusted return of the portfolio. This approach is consistent with the expectation of rational investors since these investors consider both risk and return as the fundamental basis for selection of the investment assets. Our package offers another advantage that is usually neglected in the literature, which is the number of assets that should be included in the portfolio. The common practice is to assume that the number of assets is given exogenously when the portfolio is constructed. However, the current software component constructs all possible combinations and thus the investor can figure out empirically which portfolio is the best one among all portfolios considered. The software is consumer friendly via a graphical user interface. An application is also provided to demonstrate how the software can be used using real-time series data for several assets.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Abdulnasser Hatemi-J, Alan Mustafa. 2023-05-22. A Simulation Package in VBA to Support Finance Students for Constructing Optimal Portfolios. https://arxiv.org/abs/2305.12826

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

When Values-Based Screens Disagree: Continuous Shariah Compliance and Classification Dynamics

Does the design of a values-based screening rule generate eligibility changes when reported accounting inputs remain unchanged but market valuations move? We apply seven Shariah financial-screening rulebooks to 1.34 million U.S. security-months from 1999 to 2024 on a common, threshold-anchored scale. Applied retrospectively, the full emulations disagree on 35.9% of complete permissible-sector observations (38.8% from 2015, when all were in force), and the financial-ratio screens alone on 47.3%. Under AAOIFI's spot market-capitalisation denominator, market-capitalisation movement alone is sufficient for 65.6% of breaches, and half of denominator-driven breaches reverse within three months; numerator movement dominates under asset-based rules. Holding the threshold and sample fixed, a 24-month average denominator cuts debt-screen transitions from 2.51% to 1.03% a month, whereas raising the threshold barely matters. Among breaches of similar severity the reversal gap narrows but persists. Portfolio and fund-holdings evidence qualifies these findings: benefits are modest under a binding single-rule mandate.

q-fin.PM↗

Regime-Aware Interpretable Ranking for Sector Rotation

Sector rotation is a common decision in benchmark-relative portfolio management, where portfolio managers rank sectors for overweight and underweight positions. We formulate this task as ranking sector actions by expected future risk-adjusted active performance, measured with forward sector-benchmark Sharpe ratios. Such rankings should preserve temporal information, express model outputs through economically familiar signal characteristics, account for changes in signal relevance across macroeconomic environments, and capture dependencies among sectors. We propose RegimeRank, an interpretable sector-ranking model that represents fundamental and technical signals through expert-defined temporal characteristics, conditions them on learned macro factors via cross-attention, and models cross-sector dependencies through self-attention. Expected-gradient attributions identify the contributions of individual signal-transformation pairs, while macroeconomic and cross-sector attention maps provide diagnostics of the learned conditioning and relational structure. We evaluate RegimeRank on weekly S&P 500 data from 2002 to 2024 under combinatorial purged cross-validation, where it outperforms representative ranking and machine-learning baselines across multiple ranking metrics. Ablation studies support the contributions of latent macro states, regime conditioning, and cross-sector modelling, while attribution and attention analyses illustrate the temporal characteristics, macro states, and sector relationships underlying its rankings.

q-fin.PM↗

On the utility problem in a market where price impact is transient

We consider a discrete-time model of a financial market where a risky asset is bought and sold with transactions having a transient price impact. It is shown that the corresponding utility maximization problem admits a solution. We manage to remove some unnatural restrictions on the market depth and resilience processes that were present in earlier work. A non-standard feature of the problem is that the set of attainable portfolio values may fail the convexity property.

q-fin.PM↗