Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Pyportfolioopt github

06/01/2021 Client: saad24vbs Deadline: 2 Day

FIN 683 / Fall 2018 Python Extra Credit Assignment 1


Extra credit: Up to 6 points will be added to your exam score.


Using the PyPortfolioOpt library, Jupyter notebook, and the data set given in the Canvas instructions to this assignment, perform the set of tasks below. Submit a pdf file of your code and your outputs to Canvas.


You may find the pandas documention useful (https://pandas.pydata.org/pandas-docs/ version/0.23.4/api.html#api-dataframe-stats. The PyPortfolioOpt library is avail- able at https://pypi.org/project/PyPortfolioOpt/. The GitHub page for this library is https://github.com/robertmartin8/PyPortfolioOpt.


1. Read the data from the .csv file into a dataframe.


2. Assign the mean monthly returns multiplied by 12 to a new variable, called mu.


3. Assign the monthly covariance matrix of returns multiplied by 12 to a new variable called S.


4. Contrain the sum of the portfolio weights to be one and each weight to be −1.0 ≤ wi ≤ 1.0.


5. You will work with three sets of assets as your investment opportunities.


Case 1: The investable assets are the 4 ETFs below. [Note that you must set the riskless rate to zero when using the functions in this library.]


i. (SPYG) S&P 500 Growth


ii. (SPYV) S&P 500 Value


iii. (SLYG) S&P 600 Growth


iv. (SLYV) S&P 600 Value


Case 2: The investable assets are the 9 S&P sector ETFs given in the data file.


• XLB, XLV, XLP, XLY, XLF, XLI, XLE, XLK, XLU


Case 3: The investable assets are the 9 S&P sector ETFs given in the data file plus a riskless rate of 4%.


• XLB, XLV, XLP, XLY, XLF, XLI, XLE, XLK, XLU, and rf


6. For each case, identify the mean and standard deviation of return for the optimal port- folio that achieves an expected return of 6%. Print the weights in each case’s optimal portfolio.


7. For each case, identify the mean and standard deviation of return for the optimal port- folio that achieves an expected return of 10.5%. Print the weights in each case’s optimal portfolio.


8. For each case, use the plot frontier function to produce plots that include:


https://pandas.pydata.org/pandas-docs/version/0.23.4/api.html#api-dataframe-stats

https://pandas.pydata.org/pandas-docs/version/0.23.4/api.html#api-dataframe-stats

https://pypi.org/project/PyPortfolioOpt/

https://github.com/robertmartin8/PyPortfolioOpt

FIN 683 / Fall 2018 Python Extra Credit Assignment 2


• the frontier of the risky opportunity set • 100 random portfolios of the risky basis assets • the basis assets used in each case • for case 3, the tangency line from rf to the risky opportunity set


Note that the text file “Template-plotting-functions.txt” provides a template of code to achieve these outcomes.


9. Adjust your plot for case 1 to remove the dot marking the “Tangency Portfolio”. You may find this page of the matplotlib documentation useful: https://matplotlib.org/ api/_as_gen/matplotlib.axes.Axes.plot.html.


10. Adjust the previous plot so that the random portfolios are plotted with magenta circles instead of blue crosses.


https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.plot.html

https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.plot.html

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Top Essay Tutor
Helping Hand
University Coursework Help
Writer Writer Name Offer Chat
Top Essay Tutor

ONLINE

Top Essay Tutor

I have more than 12 years of experience in managing online classes, exams, and quizzes on different websites like; Connect, McGraw-Hill, and Blackboard. I always provide a guarantee to my clients for their grades.

$65 Chat With Writer
Helping Hand

ONLINE

Helping Hand

I am an Academic writer with 10 years of experience. As an Academic writer, my aim is to generate unique content without Plagiarism as per the client’s requirements.

$60 Chat With Writer
University Coursework Help

ONLINE

University Coursework Help

Hi dear, I am ready to do your homework in a reasonable price.

$62 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Gravity and free fall worksheet - The most accurate statement about workplace safety is - Peel hall medical centre - Separation of a mixture of solids lab report - Escape from the western diet they say i say pdf - Song of myself questions and answers - Developing Organizational Policies and Practices - Formation of a corrie - Unit 3 asses - Timbuktu's river crossword answers - OP-ED: Free or Low-Cost College - Internal environment of honda company - 495 week 6 to do - Most scientists who use dna microarrays obtain them - We ll never conquer space essay - CJUS 420 DB FORUM 3 2 replies due 9/14/2020 - 3 2x 5 27 - Tesla product life cycle analysis - The sacraments of healing - Newcomer catches commercial of companion crossword - The living room candidate answers - MGMT discussion - Bolman and deal reframing organizations - Island man poem questions - Cathedral ranges wells cave - Week 5 death - Corporate social responsibility - How to build a ballistic pendulum - A point inside a production possibilities curve indicates - Using microsoft access 2016 independent project 1 5 - Arimidex dosage during cycle - Imagine you work for an independent grocery store with 20 employees. The business owner has tasked you with creating a relational database that will track employee names, IDs, positions (e.g., cashier, manager, clerk, or night crew), and salaries. - Event management quiz questions - Cloud Computing challenges and solution Need in 3 hours - One – Group Assessment - Dav public school ludhiana - The casino industry case analysis - Cuso4 5h2o percent composition - Direct vs indirect interview - Scalawags heritage apparel promo code - Adiabatic gas law apparatus - Space exploration through social science lens - Fe3+ scn fescn2+ equilibrium constant - Chinese small feet tradition - Kirchhoff's loop law is based on the conservation of - The news apply to the product desgin process and development tradeoff - Nebosh igc element 1 foundations in health and safety notes - Ethical and legal implications of prescribing drugs for nurse practitioners - How to make a coat of arms for school - Microeconomics HW - Statistics for the behavioral sciences edition - Project - Responding - 3 PAGES(MKT/574 paper due 20 HOURS) - Environmental science human population worksheet answers - Comp xm board query answers round 1 - Average height of a warehouse - When you are old tone - Evidence based practice project paper on diabetes - Ionisation energy period 3 - Jk rowling 2008 harvard speech transcript - Imagery in the pedestrian answer key - Weighted interval scheduling dynamic programming - Salesforce identity and access management - Information System Application for Decision Making Paper - ChatGPT Deutsch Kostenlos – Ähnelt dem Social-Media-Marketing - Choose a sample crime product - Wireshark capture filter cheat sheet - Criteria for canonicity - It project that had problems due to organizational issues - Philosophy of Classroom Management - Quintus curtius rufus the history of alexander pdf - Beast of buckingham palace kmart - Programming Language - Removal of tunneled dialysis catheter icd 10 - BA 4010 MOD 1 DB - How to create football field chart in excel - Hkdse sample paper maths - Animism place of worship - Homeland Security Capstone Course Part 2 - Bugsy malone female characters - Festivals and celebrations display - Cyprodev112 - Strong tie ltd case study solution - Primary secondary tertiary sectors quiz - Book-Tax Differences - Castor oil packs for breast cancer - Management decision problem and marketing research problem - You're only a rebel from the waist downwards - Cyber crime investigation ppt - How is marginal utility calculated - Intended only for brilliant answers -Jonestown Massacre - Interactionist perspective on sports - Discussions - Project deliverable 3 database and data warehousing design - Diabetes concept map - Harry potter and prisoner of azkaban pdf download - Is the sea blue - Transcultural concepts in nursing care andrews and boyle - Reflection topics warrior tough