[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

A closer look at daily returns

[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

 

 

 

[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

 

 

 Histogram of daily returns

 [Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

gaussian => kurtosis = 0

 

 

 

 How to plot a histogram

 [Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

 

 

 

 Computing histogram statistics

 [Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

 

 

 [Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

 

 

 [Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

 

 

 

[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

Select the option that best describes the relationship between XYZ and SPY.

Note:

  • These are histograms of daily return values, i.e. X-axis is +/- change (%), and Y-axis is the number of occurrences.
  • We are considering two general properties indicated by the histogram for each stock: return and volatility (or risk).

 

 

 

 Plot two histograms together

 [Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

 

 

 

 Scatterplots

 [Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

 

 

 

 

Fitting a line to data points 

 [Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

 

 

 

 Slope does not equal correlation

 [Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

 

 

 

 Correlation vs slope

[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

 

 

 

 Scatterplots in python

 [Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

 [Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots

 

 

 

Real world use of kurtosis


In early 2000s investment banks built bonds based on mortgages( morgage: 抵押) => assume these mortgages was normally distributed

=> on that basis, they were able to show that these bonds had low probability of fault => 2 mistakes

=> (1) return of each mortagage was independent 

=> (2) using gassian distrubution discribing the return

(1) and (2) were proved to be wrong => precipitated the great recession of 2008

 

 

上一篇:Mysql数据累加,实现cumsum(累加)的功能


下一篇:【2019】OCP 12c 062题库更新大量新题-7