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

Posted ecoflex

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots相关的知识,希望对你有一定的参考价值。

A closer look at daily returns

技术图片

 

 

 

技术图片

 

 

 Histogram of daily returns

 技术图片

gaussian => kurtosis = 0

 

 

 

 How to plot a histogram

 技术图片

技术图片

 

 

 

 Computing histogram statistics

 技术图片

技术图片

 

 

 技术图片

技术图片

 

 

 技术图片

技术图片

 

 

 

技术图片

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

 技术图片

技术图片

 

 

 

 Scatterplots

 技术图片

 

 

 

 

Fitting a line to data points 

 技术图片

 

 

 

 Slope does not equal correlation

 技术图片

 

 

 

 Correlation vs slope

技术图片

 

 

 

 Scatterplots in python

 技术图片

技术图片

 技术图片

技术图片

技术图片

技术图片

 

 

 

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

 

 

以上是关于[Machine Learning for Trading] {ud501} Lesson 7: 01-06 Histograms and scatter plots的主要内容,如果未能解决你的问题,请参考以下文章

[Machine Learning for Trading] {ud501} Lesson 21: 03-01 How Machine Learning is used at a hedge fund

机器学习- 吴恩达Andrew Ng 编程作业技巧 for Week6 Advice for Applying Machine Learning

Advice for students of machine learning

I'm back for Machine Learning

SAP热招DevOps Engineer for Machine Learning(Shanghai)

CS224W摘要01.Introduction; Machine Learning for Graphs