This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A starter example is centering a matrix | |
```{python} | |
import numpy as np | |
X = np.random.normal(size=(3, 3)) # random 3 by 3 matrix | |
mu = X.mean(axis = 0) # array (vector) of column means | |
print("Original matrix") |