代写MATH2070/2970: Optimisation and Financial Mathematics Semester 2, 2025代做留学生R程序

Assignment

MATH2070/2970: Optimisation and Financial Mathematics

Semester 2, 2025

Due on Thursday 30th October at 11:59pm via Canvas

MATH2070: Do all questions except Question 6.

MATH2970: Do all questions except Question 5.

• Please submit both

– a Jupyter notebook (.ipynb file) and

– a pdf file version of your Jupyter notebook (see instructions below). Make sure your pdf displays all your code and results properly (e.g. no lines of code going past the edge of the page).

• Your submission should contain all the code you used to produce your results, all your results (including plots), and any analysis/mathematical calculations you performed.

• Assessment will be based on correctness, programming and presentation.

• In the case of late submission, for each day late (up to a maximum of 10 days), you will be deducted 5% of the maximum marks. Make sure you submit in time; a submission at 11:59:01pm will incur an automatic deduction of 5%. It is your responsibility to check that your submission was successful.

• Academic dishonesty is taken very seriously. You may discuss the questions with your peers, however, you should write your solutions in your own words. Do not copy from each other.

Exporting Jupyter notebooks to pdf

In my experience, the best way to do this is: in Jupyter, go to File → Download as → HTML, and save this .html file to your computer. Then open the .html file in a web browser and print to PDF (e.g. in Chrome, the print menu has a ‘save as pdf’ option). Exporting Jupyter directly to PDF (via LaTeX) requires you to have LaTeX installed, and can have formatting errors.

Data provided

The file project_data.csv is a comma-separated text file containing the stock prices from 1 July 2022 to 30 June 2023 (inclusive) for the 5 companies listed on the Australian Stock Exchange (ASX) by market capitalisation (i.e. total value of stocks):

• BHP — BHP Group Ltd, a mining company (mostly coal, copper, iron ore and oil)

• CSL — CSL Ltd, a biotechnology company (manufactures vaccines, antivenoms, etc)

• NAB — National Australia Bank, a retail bank (manages savings, offers business loans, mortgages, credit cards, etc)

• TCL — Transurban Group, a road operator (manages toll roads, mostly in Sydney and Melbourne)

• TLS — Telstra Group Ltd, a telecommunications company (sells mobile phone plans, home/business internet, etc)

The stock prices are the end-of-day prices, adjusted to exclude the impact of corporate events (like payments of dividends) which affect the stated share price but do not reflect trading activity.

Questions

1. For each of the 10 stocks, compute their simple returns  where St is the stock price on day t. Calculate the mean and covariance matrix for the returns to 6 decimal places, and confirm they are

and

Use the above rounded values of r and C for the remainder of the project.

2. Find the optimal portfolio x(t) for investors with risk tolerance parameter t (i.e. your answer should be a function of t).

Which assets will never be short-sold by risk-averse investors?

3. Consider a specific investor with risk tolerance parameter t = 0.08 who wants to invest $1,000,000 in these assets.

What is their optimal investment allocation, mean return and risk (standard deviation) of their investment? Give all answers in $.

4. Illustrate this problem graphically: in the (σ, µ) plane, show (on the same graph):

(i) The 10 assets

(ii) The optimal (unrestricted) portfolio for the investor from Question 3

(iii) The minimum risk portfolio

(iv) The efficient frontier and minimum variance frontier

You should format the plot with appropriate labels, etc. I recommend using the axis ranges σ ∈ [0.005, 0.02] and µ ∈ [−0.0005, 0.0015], but you may choose other values if you prefer.

5. (MATH2070 only:) Suppose now the investor does not want to short sell any asset.

(a) Use SciPy minimize (with a tolerance tol = 1e-15) to find their optimal portfolio, mean return and risk (standard deviation). Again, give all answers in $.

(b) Show that the portfolio obtained using SciPy is the optimal portfolio (possibly up to a small error) by verifying that it is a KKT point of the log-utility optimisation problem. Be aware: there will be a small numerical error that you must allow for in checking, e.g., that quantities equal zero, are non-negative, etc.

(c) Explain whether you necessarily expect the constrained portfolio to have a lower or higher risk versus the unrestricted portfolio, and similarly a lower or higher expected return. Add the portfolio to the same plot as Question 4 to check this.

6. (MATH2970 only:) Suppose now the investor does not want to short sell any asset.

(a) Use SciPy minimize (with a tolerance tol = 1e-15) to create a function minvar that inputs a number µ and returns the minimum risk (variance) for a portfolio having expected return equal to µ. As a check, you should find

(b) Your function minvar should return an error for, say µ = 1, as it is impossible to create a portfolio with this mean return without short-selling. Execute minvar(1) and show this is the case.

(c) Explain why the natural domain of minvar is [0.00013, 0.000989].

(d) Plot the whole minimum variance frontier on the same plot as in Question 4.

7. Suppose now that the market also has a risk-free cash asset with return 0.00015 (which works out to around 3.8% annually, close to the Australian bond rate at the time).

(a) What is the new optimal portfolio for the investor from Question 3 (with short selling allowed)? Is this a borrowing or lending portfolio?

(b) In a new plot, show in the (σ, µ) plane:

(i) The items from Question 4

(ii) The optimal unrestricted portfolio for the investor with a risk-free asset (Question 7a)

(iii) The market portfolio inferred from the covariances above1

(iv) The capital market line

I recommend you use axis range σ ∈ [0, 0.02] for this plot, but you may choose other values if you prefer.




热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图