File:GaussianScatterPCA.svg
Original file (SVG file, nominally 720 × 720 pixels, file size: 515 KB)
Captions
Captions
Contents
Summary[edit]
| DescriptionGaussianScatterPCA.svg |
English: A scatter plot of samples that are distributed according a multivariate (bivariate) Gaussian distribution centered at (1,3) with a standard deviation of 3 in the (0.866, 0.5) direction and of 1 in the orthogonal direction. The directions represent the Principal Components (PC) associated with the distribution.
Español: Análisis de componentes principales de una distribución normal multivariante centrada en (1,3) con desviación estándar 3 en la dirección (0,864, 0,4.01) y desviación estándar 1 en la dirección perpendicular a la anterior. |
| Date | |
| Source | Own work |
| Author | Nicoguaro |
Creation[edit]
This file was created with Python,NumPy and Matplotlib.
This plot was created with Matplotlib:
Python
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import rcParams
rcParams['font.family'] = 'serif'
rcParams['font.size'] = 16
ang = np.pi/6
mean = np.array([1, 3])
cov = np.array([[9, 0],
[0, 1]])
rot = np.array([[np.cos(ang), -np.sin(ang)],
[np.sin(ang), np.cos(ang)]])
cov = np.dot(rot, np.dot(cov, rot.T))
np.random.seed(seed=1)
data = np.random.multivariate_normal(mean, cov, size=(5000))
x = data[:, 0]
y = data[:, 1]
plt.figure(figsize=(8, 8))
plt.scatter(x, y, c="k", alpha=0.1, lw=0)
plt.arrow(1, 3, 3*np.cos(ang), 3*np.sin(ang), width=0.02, color="k", lw=2,
overhang=0.1)
plt.arrow(1, 3, -np.sin(ang), np.cos(ang), width=0.02, color="k", lw=2,
overhang=0.1)
plt.grid(True)
plt.axis("image")
plt.axis([-8, 10, -6, 12])
plt.savefig("GaussianScatterPCA.svg")
plt.show()
Licensing[edit]
| This file is licensed under the Creative Commons Attribution 4.0 International license. | ||
https://creativecommons.org/licenses/by/4.0 CC BY 4.0 Creative Commons Attribution 4.0 truetrue |
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 06:27, 10 February 2016 | 720 × 720 (515 KB) | OgreBot (talk | contribs) | (BOT): Reverting to most recent version before archival | |
| 06:27, 10 February 2016 | 1,036 × 973 (1.97 MB) | OgreBot (talk | contribs) | (BOT): Uploading old version of file from en.wikipedia; originally uploaded on 2009-05-01 05:37:11 by BenFrantzDale | ||
| 03:24, 9 February 2016 | 720 × 720 (515 KB) | Nicoguaro (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
The following 2 pages use this file:
File usage on other wikis
The following other wikis use this file:
- Usage on ast.wikipedia.org
- Usage on de.wikipedia.org
- Usage on en.wikipedia.org
- Usage on es.wikipedia.org
- Usage on fr.wikipedia.org
- Usage on gl.wikipedia.org
- Usage on hi.wikipedia.org
- Usage on hy.wikipedia.org
- Usage on ja.wikipedia.org
- Usage on ru.wikipedia.org
- Usage on sr.wikipedia.org
- Usage on tr.wikipedia.org
- Usage on uk.wikipedia.org
- Usage on www.wikidata.org
- Usage on zh-yue.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
| Width | 576pt |
|---|---|
| Height | 576pt |