- Learning pandas(Second Edition)
- Michael Heydt
- 152字
- 2021-07-02 20:37:02
Correlation
Correlation is one of the most common statistics and is directly built into the pandas DataFrame. A correlation is a single number that describes the degree of relationship between two variables, and specifically between two sequences of observations of those variables.
A common example of using a correlation is to determine how closely the prices of two stocks follows each other as time progresses. If the changes move closely, the two stocks have a high correlation, and if there is no discernible pattern they are uncorrelated. This is valuable information that can be used in a number of investment strategies.
The level of correlation of two stocks can also vary slightly with the time frame of the entire dataset, as well as the interval. Fortunately, pandas has powerful capabilities for us to easily change these parameters and rerun correlations. We will look at correlations in several places later in the book.
- Google Apps Script for Beginners
- 玩轉Scratch少兒趣味編程
- SoapUI Cookbook
- Pandas Cookbook
- 數據結構和算法基礎(Java語言實現)
- INSTANT FreeMarker Starter
- Learning C++ Functional Programming
- 從學徒到高手:汽車電路識圖、故障檢測與維修技能全圖解
- Android 應用案例開發大全(第3版)
- 程序設計基礎教程:C語言
- 基于Struts、Hibernate、Spring架構的Web應用開發
- 寫給程序員的Python教程
- Java圖像處理:基于OpenCV與JVM
- Scratch·愛編程的藝術家
- Delphi開發典型模塊大全(修訂版)