The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [portfolio]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
163 views

VaR for Options portfolio

I'm asked to estimate VaR for Options portfolio. Firstly, I wanna try to estimate VaR for AAPL stock european call option using Historical Simulation but I can't find any Historical Data. I tried ...
0
votes
2answers
117 views

% Drawdown on Stock Portfolio to hit Margin Call

Margin requirement is industry standard at 30% of total portfolio (cash + margin loan) e.g. You have 600k in equities purchased with cash and 400k in equities purchased on margin loan. The total ...
0
votes
1answer
514 views

How to calculate the annual contribution of a fund to a portfolio of funds?

let's assume I have a portfolio of two funds (call them F1 and F2), where, by convention, there is a monthly compounding of the returns. On a monthly basis, the contribution of each fund will just be ...
0
votes
1answer
426 views

Python Library To Calculate Porfolio Statistics

I am working through some backtesting ideas and I would love to capture the basic statistics results for comparison, (cumulative returns, annual returns, sharpe, omega etc.) Is there a python library ...
0
votes
1answer
60 views

How to keep the ratio of two assets constant when one asset is appreciating towards the other

I am looking for a formula that lets me keep the ratio between two assets in my portfolio constant when one of the assets is appreciating continually in comparison to the other asset. Imagine a ...
0
votes
1answer
133 views

How does a Short position impact the PnL?

I have several activity records which include several transaction types: buy, sell, short, <...
0
votes
1answer
105 views

Should price impact be the same for positive/negative implied volatility shocks?

I am using a vendor system to stress a portfolio which contains (among others) derivatives with implied volatility exposure. The issue is that when using a 1000 bps implied volatility stress upwards ...
0
votes
1answer
1k views

Portfolio optimzation : efficient frontier with respect to risk aversion parameter with R

I am currently trying to write a little script in R to determine the optimal weights given a fixed risk aversion parameter. The problem I have is that by increasing the risk aversion parameter I think ...
0
votes
2answers
137 views

Right metric to manage a portfolio based on correlation?

I want to algorithmically add a new investment to an existing portfolio. The decision should be based on a low correlation to the existing assets. E. g. the following situation The portfolio already ...
0
votes
1answer
58 views

Definition Of A Portfolio

I have very recently started studying quantitative finance on my own through a book called An Introduction To Quantitative Finance by Stephen Blythe. In chapter 6 of his book, he sets out to prove ...
0
votes
1answer
63 views

Portfolio return with changing assets over time

I need some feedback on a very basic question regarding the calculation of the portfolio return. I have created an example of a portfolio with two assets and attempted to calculate the return: I've ...
0
votes
1answer
55 views

Correlations between different baskets of assets

Struggling to see the answer to the following problem - Assume you have $N$ different assets, and all pair-correlation coefficients $\rho_{ij}$ between them are known. If you now form two arithmetic ...
0
votes
1answer
1k views

Portfolio Weight Sum and Negative Weights

I'm calculating the weights of 10 securities in a portfolio for a course project, with the objective of maximizing the sharpe ratio. I'm getting both positive and negative results for weights. The ...
0
votes
2answers
2k views

How to calculate “portfolio cumulative return” from individual price data and weight of them?

I'm trying to run backtest in a vectorized way using Python Pandas and need to calculate a portfolio cumulative return from price data and weight of asset data. I ...
0
votes
1answer
78 views

How to calculate the normalized value of a changing stock portfolio?

My goal is to compare a portfolio of stocks with a benchmark over time. Calculating the normalized value of a static portfolio is no problem, but I am struggling when stocks are removed or added to ...
0
votes
1answer
108 views

Calculating the long run average default rate when the portfolio changes during the year

The Basel rules prescribe to calculate a long run average default rate (LADR). It is stated that his rate should be calculated as the average of yearly default rates. A first idea what be: look at ...
0
votes
1answer
590 views

How to construct stock portfolios in R

I need some help, since I can't find any good sources. I need the portfolios for my thesis. I have 20 years of monthly stock returns for ~200 stocks. I want to create each month 5 equally weighted ...
0
votes
1answer
102 views

How we compare 2 portfolios one with risk the other with characteristics?

I have 2 questions which i can't seem to find no matter how I search. so: 1) If we have 2 portfolios. One based on risk-return tradeoff (with variables HML, SMB and beta ) (Fama French, 1993) and the ...
0
votes
1answer
506 views

Cumulative portfolio returns vs. product of cumulative asset returns

I wasn't able to find something that addressed this specifically with the search terms I was using, though I am sure an answer exists here. [Please reference the image below] Columns B & C are ...
0
votes
1answer
843 views

optimal portfolio with different lending and borrowing rates

I have 4 risky securities (have returns and var-cov matrix for monthly data), and I can lend at 1% per annum, but borrow at 5% per annum. If i wish to obtain the s.d. of 5%, what is the optimal ...
0
votes
1answer
427 views

Probability default calculation

I want to calculate default of probability of internal ratings for a particular bank. I have only the following data: Liquidity Ratio short-term assets / short-term liabilities = 2.6 Profitability ...
0
votes
1answer
67 views

Do exchanges issue position ID after order execution?

The portfolio has two types of positions: asset and cash positions. Cash positions are easy. One currency has only one position, so you can add and subtract easily. Asset positions seem to be more ...
0
votes
1answer
77 views

Is it possible to calculate the call-put parity for an option's portfolio?

Let's say I have designed an option's portfolio. The portfolio includes long as well as short positions in European-style put and call contracts based on the same underlying asset with different ...
0
votes
1answer
55 views

DJIA Portoflio Optimization

I've been practicing R for about several months, and have begun transitioning from text book examples to what actually interests me. I'm currently participating in the CFA program, but my programming ...
0
votes
1answer
144 views

Essential new ideas in portfolio theory

I'm supposed to write an essay on "essential new ideas in my current field of research". Hence, I'm looking for essential (= it has the potential to change the way we look at the discipline) and new (...
0
votes
1answer
47 views

Signs for the assets in a portfolio and definition of portfolio value

Suppose that we have a market with a stock, modelled by $\{S_t\}_{t>0}$ and a riskless money market account $\{B_t\}_{t>0}$. Consider a strategy $\{ H_t^B,H_t^S\}_{t>0}$ be a portfolio over ...
0
votes
2answers
823 views

Derivation of the tangency / maximum Sharpe ratio portfolio in Markowitz Portfolio Theory? (2 risky assets)

I’m looking for a nice & detailed explanation for how to derive the formula for the weight of asset 1 in the tangency / maximum Sharpe ratio portfolio in Markowitz portfolio theory in a world with ...
0
votes
1answer
262 views

L1 norm regularization of Markowitz portfolio in matlab

Markowitz portfolio with L1 norm regularization added L1 norm regularization based on the original model. The constraint equation is as follows: The following code is the original Markowitz Mean-...
0
votes
1answer
1k views

Matlab code for equally weighted portfolio

I have daily returns of 10 stocks. I need to construct an equally weighted portfolio that goes long in the 3 highest returns and short in the 3 lowest returns. The portfolio needs to be re-balanced ...
0
votes
1answer
46 views

Do I calculate weights of assets correctly?

I solved attached question but I am not sure whether I did part a and c correctly. Is there a way to calculate weights of A and B by just knowing their standard deviation and correlation's value?
0
votes
2answers
81 views

Portfolio return for assets held for different lengths of time

How does one calculate the return on a portfolio if the assets in that portfolio were held for varying periods of time? For Example: $t_0$ Buy AAPL at 100 $t_5$ Buy MSFT at 20 $t_1$$_0$ Sell MSFT at ...
0
votes
1answer
52 views

Portfolio of Assets

The following represents a model for an economy. At time $t=0$, four assets have the value $X_1= £5$, $X_2=£5$, $X_3=£10$ and $X_4=£4$. Three possible states of the world exist ($\alpha_1$, $\...
0
votes
2answers
115 views

I have portfolio volatility for individual years, can I use them to compute portfolio volatiltiy for subperiods?

Thanks for opening this question. I have constructed some rules for a portfolio with annual rebalancing and am backtesting it for the period 1990-2014. I want to compare the risk-adjusted return to ...
0
votes
1answer
90 views

Currency Portfolio G10 vs USD allocation

Given that I have fundamental data such as GDP growth rate for G10 countries .Now I want to build a currency pairs portfolio of G10 currencies vs USD .How can I translate country scores to currency ...
0
votes
1answer
306 views

How to get permanently growing chart within PCA

I looked onto different questions and answers about application of PCA on this site and found this interesting article : http://systematicedge.wordpress.com/2013/06/02/principal-component-analysis-in-...
0
votes
1answer
1k views

How do I simulate stock prices for a 10 asset portfolio, over a period of 10 years in MATLAB? [closed]

If I have given vectors for return and volatility (i.e. I have two 1x10 vectors), and I assume at first that their correlation is 0 (meaning my covariance-variance matrix is just diagonal), how do I ...
0
votes
0answers
34 views

How long a time horizon should be for verifying the effectiveness of an investment strategy?

Question To verify the effectiveness of a certain asset allocation strategy, how long a time horizon should be? Is there any academic paper regarding this topic? Question in more detial I know ...
0
votes
1answer
62 views

Calculate the historical simulation VaR of the portfolio using Python

Assume that we have 200 stocks in WeiBo (WB), 300 stocks in Netflix (NFLX), 250 stocks in Ford Motor Company (F) and 150 in Royal Dutch Shell (RDS-A) as of 31 August 2019 in the portfolio. I have ...
0
votes
0answers
33 views

Eliminating factor risk?

Suppose there are two risky assets, related to the same risk factor $f$. $r_1 = μ_1 + β_1f$ $r_2 = μ_2 + β_2f$ There is also a risk free asset available at $r_f$ How do you eliminate factor risk ...
0
votes
0answers
43 views

Calculation of the risk free rate

For portfolio management I need the risk-free to compute the sharpe ratio. I would like the use to rate on the 3 month treasury bill from the US. https://fred.stlouisfed.org/series/TB3MS#0 The ...
0
votes
0answers
43 views

Value of portfolio with fixed discrete dividends

I know that this is a very simple question, but i want to make sure to grasp the concept of ex dividend and value of portfolio. Suppose that we have a two period binomial tree of a stock with initial ...
0
votes
0answers
13 views

Help understanding methodology of doing market expectations error analysis

I am a beginner in the value-growth analysis. I wanted to do a similar analysis Piotroski, J. D., & So, E. C. (2012). Identifying expectation errors in value/glamour strategies: A fundamental ...
0
votes
0answers
30 views

Why no median-CVaR optimization for portfolios?

Question Since CVaR is a concept that can be applied to all probability distribution, even if they do not follow normal distribution, I thought CVaR should be more concerned with median, not the ...
0
votes
1answer
49 views

Calculate return for a set of securities downloaded using quantmod

I downloaded adjusted closing price using quantmod for a set of securities. I want to calculate daily/weekly/monthly return for all securities. Usual dailyReturn, weeklyReturn etc not working. What do ...
0
votes
0answers
74 views

Another variation of the 'Sharpe ratio' in CVaR-based portfolio optimization?

Question What is the ratio S(p) shown below? Do we have a name for it like 'Sharpe ratio'? The ratio above is introduced in the academic paper Optimal portfolio selection in a Value-at-Risk framework ...
0
votes
2answers
202 views

Standard deviation of a long-short portfolio with net position zero

I've come across the following question and I'm slightly stuck in answering it: Suppose you have a two-stock portfolio that is long one stock of asset A, and short one stock of asset B, with A ...
0
votes
1answer
168 views

VaR Backtesting. High frequency of exceedances

I'm preparing for thesis defense and I've got simple question connected with Value at Risk backtesting. Portfolio VaR was calculated using historical simulation approach (250 days and 500days) and ...
0
votes
0answers
580 views

Equal Risk Contribution in Portfolio Analytics r pkg

I am trying to estimate the weights of an equal risk portfolio using the PortfolioAnalytics package in r. To start with, I have tried to redo the example provided in the portfolio vignette. The code ...
0
votes
1answer
216 views

A portfolio with two risky assets - Simple exercise

I was trying to solve the following exercise: "Stocks A have $\mu_A=8\%$, $\sigma_A=2,5\%$ and stocks B have $\mu_B=6\%$, $\sigma_B=1,2\%$. Let us suppose that expexted returns are independent. What ...
0
votes
0answers
47 views

Portfolio returns from activity records

I am looking for a clean and efficient way to obtain the portfolio returns from a list of activity records. Specifically, the activity file consist of BUY, SELL, COVER, SHORT, etc. records with ...