Categories: Uncategorized

Python Exercise

MSF Bootcamp – Python FIN 635

Final Assignment This individual assignment is due on Thursday 8/6 at 11:59PM. Please submit your answers as a Jupyter Python Notebook. 1. Use SymPy to solve the following equations:

Don't use plagiarized sources. Get Your Custom Essay on
Python Exercise
This is a Snippet Preview, get a Complete Solution Here
Order Essay

a. ln(π‘₯ + 2) = 10 b. π‘₯ = 4 c. 𝑒 + 𝑒 = 10

2. Using SymPy, plot the following functions:

a. 𝑓(π‘₯) = 1 βˆ’ 𝑒 b. 𝑓(𝑦) = ln(100𝑦) c. 𝑓(𝑧) = 𝑧 + 4𝑧 βˆ’ 2𝑧 + 10

3. Use SymPy to find the derivative of the following functions:

a. 𝑓(π‘₯) = cos(π‘₯ ) b. 𝑓(𝑦) = cos(𝑦 ) + sin(𝑦 ) c. 𝑓(𝑧) = 𝑒

4. Let 𝐴 = 7 4 1 8 5 1 3 10 8

, 𝐡 = 4 7 9

and 𝐢 = (4 4 1). Use SymPy to compute the following:

a. 𝐴 Γ— 𝐡 b. 𝐢 Γ— 𝐴 Γ— 𝐡 c. 𝐢 Γ— 𝐡 d. 𝐡 Γ— 𝐢

5. Download the daily closing prices of Apple (Ticker: AAPL) from 1995-01-01 until the latest closing,

and plot: a. The daily returns of AAPL stock. b. The histogram of AAPL returns using 100 bins.

6. Download the daily closing prices of Apple (Ticker: AAPL) and the SPDR (ticker: SPY) from 1995-01-

01 until the latest closing. Using the library statsmodels, run a regression of daily returns of Apple stock on the SPDR and report:

a. The R-square of the regression. b. The beta of the regression. c. The standard deviation of daily returns of AAPL and SPY. d. The correlation between AAPL and SPY daily returns.

7. Download the interest rate data from Kenneth French’s website from 1950-01-01 until the latest

update and run the regression of the change in monthly interest rates on the one-month lagged monthly interest rate. Report the coefficients of the regression and comment on whether they are statistically significant at the 5% level.

Phyllis Mugure

Recent Posts

Introduction to psychology | Assignments Market

ASSIGNMENT 08 S01 Introduction to Psychology I Directions: Be sure to save an electronic copy…

4 years ago

Education | Assignments Market

Include a comprehensive, thoughtful and critical analysis to the arguments and perspectives of the readings…

4 years ago

Session 2 Discussion | Assignments Market

Discussion Prompt: Plagiarism As a writer, one of the gravest errors to make is to…

4 years ago

CJL Writing Questions | Assignments Market

Question 1: Write a Hypothetical. Write a legal memorandum analyzing what happened in the following…

4 years ago

short HW all the questions below | Assignments Market

You work at Happy Joe's family restaurant and want to see if customer meal satisfaction…

4 years ago

321 solve … | Assignments Market

The Assignment must be submitted on Blackboard (WORD format only) via allocated folder. Assignments submitted…

4 years ago