0% found this document useful (0 votes)
40 views17 pages

Studies in Financial Derivatives, Assignment 1

This document contains historical stock price data for Tesla and the S&P 500 from January 2019 to August 2022. It includes the adjusted closing price and monthly percentage change for each stock. Basic statistical analysis was performed on the data, finding the sample mean, variance, and covariance between Tesla and the S&P 500 returns. Linear regression was also conducted to analyze the relationship between Tesla and S&P 500 returns.

Uploaded by

Mehdi Laftit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views17 pages

Studies in Financial Derivatives, Assignment 1

This document contains historical stock price data for Tesla and the S&P 500 from January 2019 to August 2022. It includes the adjusted closing price and monthly percentage change for each stock. Basic statistical analysis was performed on the data, finding the sample mean, variance, and covariance between Tesla and the S&P 500 returns. Linear regression was also conducted to analyze the relationship between Tesla and S&P 500 returns.

Uploaded by

Mehdi Laftit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

7)

b)
For this question I used the method of Newton to find a solution of the equation x+y+exp(y)=0 with x
∈ [-1,1].
Then I programmed then I created a program using a while loop that allowed me to have a
solution for each x in the interval with an increment of 0.01.

9)

b) For this question, I calculated f(x) using the formula found in the previous question and then
approximated f(x) using the given formula.

We find almost the same curves showing the consistency of the answer found in question a).
10)
Date Adj Close (Tesla) HPR (Tesla)
8/1/2022 277.700012
7/1/2022 297.149994 -6.55%
6/1/2022 224.473328 32.38%
5/1/2022 252.753326 -11.19%
4/1/2022 290.253326 -12.92%
3/1/2022 359.200012 -19.19%
2/1/2022 290.143341 23.80%
1/1/2022 312.23999 -7.08%
12/1/2021 1056.780029 -70.45%
11/1/2021 1144.76001 -7.69%
10/1/2021 1114 2.76%
9/1/2021 775.47998 43.65%
8/1/2021 735.719971 5.40%
7/1/2021 687.200012 7.06%
6/1/2021 679.700012 1.10%
5/1/2021 625.219971 8.71%
4/1/2021 709.440002 -11.87%
3/1/2021 667.929993 6.21%
2/1/2021 675.5 -1.12%
1/1/2021 793.530029 -14.87%
12/1/2020 705.669983 12.45%
11/1/2020 567.599976 24.33%
10/1/2020 388.040009 46.27%
9/1/2020 429.01001 -9.55%
8/1/2020 498.320007 -13.91%
7/1/2020 286.152008 74.15%
6/1/2020 215.962006 32.50%
5/1/2020 167 29.32%
4/1/2020 156.376007 6.79%
3/1/2020 104.800003 49.21%
2/1/2020 133.598007 -21.56%
1/1/2020 130.113998 2.68%
12/1/2019 83.666 55.52%
11/1/2019 65.987999 26.79%
10/1/2019 62.984001 4.77%
9/1/2019 48.174 30.74%
8/1/2019 45.122002 6.76%
7/1/2019 48.321999 -6.62%
6/1/2019 44.692001 8.12%
5/1/2019 37.032001 20.68%
4/1/2019 47.737999 -22.43%
3/1/2019 55.972 -14.71%
2/1/2019 63.976002 -12.51%
1/1/2019 61.403999 4.19%
12/1/2018 66.559998 -7.75%
11/1/2018 70.096001 -5.04%
10/1/2018 67.463997 3.90%
9/1/2018 52.953999 27.40%
8/1/2018 60.332001 -12.23%
7/1/2018 59.627998 1.18%
6/1/2018 68.589996 -13.07%
5/1/2018 56.945999 20.45%
4/1/2018 58.779999 -3.12%
3/1/2018 53.226002 10.43%
2/1/2018 68.612 -22.42%
1/1/2018 70.862 -3.18%
12/1/2017 62.27 13.80%
11/1/2017 61.77 0.81%
10/1/2017 66.306 -6.84%
9/1/2017 68.220001 -2.81%
Ajd Close(S&P500) HPR(S&P500)
3986.16
4130.29 -3.49% Sample mean (Tesla)
3785.38 9.11% 5.15%
4132.15 -8.39%
4131.93 0.01% Variance (Tesla)
4530.41 -8.80% 5.27%
4373.94 3.58%
4515.55 -3.14% Covariance(Tesla,S&P500)
4766.18 -5.26% 0.66%
4567 4.36%
4605.38 -0.83% Sample covariance matrix :
4307.54 6.91%
4522.68 -4.76% 5.27%
4395.26 2.90% 0.66%
4297.5 2.27%
4204.11 2.22%
4181.17 0.55% SUMMARY OUTPUT
3972.89 5.24%
3811.15 4.24% Regression Statistics
3714.24 2.61% Multiple R
3756.07 -1.11% R Square
3621.63 3.71% Adjusted R Square
3269.96 10.75% Standard Error
3363 -2.77% Observations
3500.31 -3.92%
3271.12 7.01% ANOVA
3100.29 5.51%
3044.31 1.84% Regression
2912.43 4.53% Residual
2584.59 12.68% Total
2954.22 -12.51%
3225.52 -8.41%
3230.78 -0.16% Intercept
3140.98 2.86% X Variable 1
3037.56 3.40%
2976.74 2.04%
2926.46 1.72%
2980.38 -1.81%
2941.76 1.31%
2752.06 6.89%
2945.83 -6.58%
2834.4 3.93%
2784.49 1.79%
2704.1 2.97%
2704.1 0.00%
2506.85 7.87%
2760.17 -9.18%
2711.74 1.79%
2913.98 -6.94%
2901.52 0.43%
2816.29 3.03%
2718.37 3.60%
2705.27 0.48%
2648.05 2.16%
2640.87 0.27%
2713.83 -2.69%
2823.81 -3.89%
2647.58 6.66%
2575.26 2.81%
2519.36 2.22%
Sample mean(S&P500)
0.91%

Variance (S&P500)
0.26%

0.66%
0.26%

Regression Statistics
0.560849146
0.314551765
0.302526357
0.191634317
59

df SS MS F Significance F
1 0.960592 0.960592 26.15726 3.83E-06
57 2.093252 0.036724
58 3.053843

Coefficients Standard Error t Stat P-value Lower 95% Upper 95%Lower 95.0%
Upper 95.0%
0.028502534 0.02535 1.124379 0.265565 -0.02226 0.079264 -0.02226 0.079264
2.525953079 0.493889 5.114417 3.83E-06 1.536958 3.514948 1.536958 3.514948

Beta= 2.525953
Upper 95.0%

You might also like