Statistics for Machine Learning
Statistics and Probability
2
Data
Model
Statistics
Probability
Populations and Samples
3
Multivariate Statistics
4
Correlation of Two Random Variables
5
Correlation Coefficient
6
| | close to a straight line, | positive correlation |
| | close to a straight line, | negative correlation |
| | no linear line, | uncorrelated |
Correlation Coefficient Plot
7
Unsupervised Learning:�Dimension Reduction
Dimension
9
Dynamics/Robot kinematics
- Degree of freedom
- Generalized coordinate
Dimension Reduction
10
Dimension Reduction
11
Example of Dimension Reduction
12
Example of Dimension Reduction
13
Highly Correlated Data
14
Low redundancy
High redundancy
Principal Component Analysis (PCA)
15
Principal Component Analysis (PCA)
16
Principal Component Analysis (PCA)
17
Principal Component Analysis (PCA)
18
Principal Component Analysis (PCA)
19
Principal Component Analysis (PCA)
20
Principal Component Analysis (PCA)
21
Principal Component Analysis (PCA)
22
Principal Component Analysis (PCA)
23
Principal Component Analysis (PCA)
24
PCA Algorithm: Pre-processing
25
PCA Algorithm: Maximize Variance
26
Maximize Variance
27
Minimize the Sum-of-Squared Error
28
Minimize the Sum-of-Squared Error
29
30
Linear Regression vs. PCA
31
Linear Regression
PCA
Linear Regression vs. PCA
32
Linear Regression
PCA
Linear Regression vs. PCA
33
Linear Regression
PCA
Python Codes
34
Python Codes
35
Scikit-learn
36
PCA Example
37
Multivariate Time Series
38
Measured observations
Multivariate Time Series
39
Eigenvalues
40
Projection onto Principal Components
41
Singular Value Decomposition (SVD)
Geometry of Linear Maps
43
Geometry of Linear Maps
44
Singular Values and Singular Vectors
45
Thin Singular Value Decomposition
46
Full Singular Value Decomposition
47
Interpretation of SVD
48
SVD: Matrix factorization
49
PCA and SVD
50
PCA and SVD
51
Low Rank Approximation: Dimension Reduction
52
Full SVD
53
Economy SVD
54
Truncated SVD (Low Rank Approximation)
55
Expansion of SVD
56
Expansion of SVD
57
Expansion of SVD
58
Truncated SVD (Low Rank Approximation)
59
…
+
+
+
Example: Image Approximation
60
Example: Image Approximation
61
A Video of People Walking, Captured by a Surveillance Camera
62
To Get Rid of People in the Pictures
63
…
To Get Rid of People in the Pictures
64
Question: How to Build a Matrix (Sequence of Images)
65
…
time
Question: How to Build a Matrix (Sequence of Images)
66
…
time
time
time
…
…
…
…
Eigenfaces: A SVD-Based Facial Recognition Technique
67
Eigenface
68
Eigenface
69
Eigenface or eigenmode from U
Data Compression
70
Face Recognition Using Eigenfaces
71
Recognition and Reconstruction of Disguised Face
72
Recognition and Reconstruction of Disguised Face
73
Proper Orthogonal Decomposition (POD)
74
Proper Orthogonal Decomposition (POD)
75
Arrangement of Data
76
time
space
Full SVD
77
Economy SVD
78
Truncated SVD
79
Expansion of SVD
80
Expansion of SVD
81
POD
82
POD Example 1
83
…
The Method of Snapshot, Sirovich (1987)
POD Example 1
84
POD Example 1
85
POD Example 1
86
Fluid Flow Past a Circular Cylinder at Low Reynolds Number
87
Question: How to Build a Matrix (2D + time)
88
Singular Values and POD Modes
89
Low Rank Approximation (K = 30)
90
Ground Truth
K = 30
Low Rank Approximation (K = 10)
91
Ground Truth
K = 10
Low Rank Approximation (K = 5)
92
Ground Truth
K = 5
Where We Are At?
93
Idea from Prof. Steve Brunton, “Deep Learning to Discover Coordinates for Dynamics: Autoencoders & Physics Informed Machine Learning”
Heliocentrism
Geocentrism
Fisher Discriminant Analysis (FDA)
Dimensionality Reduction with Label
95
Projection onto Line ω
96
Projection onto Line ω
97
Sample Statistics in Projected Space
98
Fisher Discriminant Analysis
99
Fisher Discriminant Analysis
100
Fisher Discriminant Analysis
101
Fisher Discriminant Analysis
102
Python Code
103
Histogram
104
105
106
Scikit-learn
107