use python to Create a fictitious fund manager by generating a return that is made up of 50% invested in SPYG, 30% invested in VB 20% invested in some random things that have a return with zero mean and standard deviation of 1.5% per month.
Question
use python to Create a fictitious fund manager by generating a return that is made up of 50% invested in SPYG, 30% invested in VB 20% invested in some random things that have a return with zero mean and standard deviation of 1.5% per month.
Solution
Sure, here is a Python code snippet that simulates the returns of a fictitious fund manager. This code assumes that you have the historical returns of SPYG and VB.
import numpy as np
import pandas as pd
# Assuming we have historical returns for SPYG and VB in csv files
spyg_returns = pd.read_csv('SPYG.csv')['Return']
vb_returns = pd.read_csv('VB.csv')['Return']
# Number of months in the data
n_months = len(spyg_returns)
# Generate random returns with zero mean and standard deviation of 1.5% per month
np.random.seed(0) # for reproducibility
random_returns = np.random.normal(0, 0.015, n_months)
# Create a portfolio with 50% SPYG, 30% VB and 20% random
portfolio_returns = 0.5 * spyg_returns + 0.3 * vb_returns + 0.2 * random_returns
# Print the first 5 rows of the portfolio returns
print(portfolio_returns.head())
This code first reads the historical returns of SPYG and VB from csv files. Then it generates random returns with zero mean and standard deviation of 1.5% per month. The portfolio returns are calculated as a weighted sum of the SPYG, VB, and random returns. The weights are 50%, 30%, and 20% respectively. Finally, it prints the first 5 rows of the portfolio returns.
Please replace 'SPYG.csv' and 'VB.csv' with the actual paths to your files. The 'Return' column in these files should contain the monthly returns of SPYG and VB.
Similar Questions
2 .ASSUME YOU HAVE BEEN GIVEN 1000$ VIRTUAL FUNDS BY A CLIENT TO INVEST IN THE STOCK MARKET ON THEIR BEHALF. USING A STOCK MARKET OF YOUR CHOICE, IDENTIFY ANY TWO STOCKS THAT YOU WOULD ADD TO YOUR INVESTMENT PORTFOLIO. APPORTION THE 1000$ DOLLARS AMONG THE SELECTED STOCKS IN FOUR MONTHS PER WEEK.
A hedge fund with $98 million of initial capital charges a management fee of 2% and an incentive fee of 20%. The management fee is based on assets under management at year end and the incentive fee is calculated independently from the management fee. The fee structure has a high-water mark provision. The fund value is $112 million at the end of Year 1, $100 million at the end of Year, and $116 million at the end of Year 3. The net-of-fees return earned by the fund in Year 3 is closest to:A.11.87%.B.12.33%.C.14.15%.
Fill in the Blank QuestionFill in the blank question. funds pool the dollars of individual investors and invests them into a large number of well-diversified securities.
When Fund H started on 1/1/21, it had $318,225,000 in assets under management (AUM). The annual holding period return was 3.65% in 2021, -20.48% in 2022, and 31.48% in 2023. Some investors redeemed shares, resulting in a net cash outflow of $120,204,000 on 12/31/21. There were also new investors buying the fund shares, resulting in a net cash inflow of $27,885,000 on 12/31/22. The time-weighted average return of the fund is ________ % per year during the three-year period.
U State of the Economy Good Fair Poor . You are considering two mutual funds as an investment. The possible returns for the funds are dependent on the state of the economy and are given in the accompanying table. Fund 1 (in %) 20 10 -10 Fund 2 (in %) 40 20 -40 You believe that the likelihood is 20% that the economy will be good, 50% that it will be fair, and 30% that it will be poor. a. Find the expected value and the standard deviation of returns for Fund 1. b. Find the expected value and the standard deviation of returns for Fund 2.
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.