File:Spearman fig1.svg

Size of this PNG preview of this SVG file: 360 × 341 pixels. Other resolutions: 253 × 240 pixels | 507 × 480 pixels | 811 × 768 pixels | 1,081 × 1,024 pixels | 2,162 × 2,048 pixels.
Original file (SVG file, nominally 360 × 341 pixels, file size: 56 KB)
File information
Structured data
Captions
Captions
Add a one-line explanation of what this file represents
Summary
editDescriptionSpearman fig1.svg |
English: Scatterplot comparing Spearman and Pearson correlation. |
Date | |
Source | Own work |
Author | Skbkekas |
Other versions |
[edit]
|
SVG development InfoField | ![]() This plot was created with Matplotlib. |
Source code InfoField | Python codeimport matplotlib.pyplot as plt
import numpy as np
X = np.random.uniform(size=100)
Y = np.log(X/(1-X))
Y = np.sign(Y)*np.abs(Y)**1.4
cc = np.cov(X,Y)
cc = cc[0,1]/np.sqrt(cc[0,0]*cc[1,1])
plt.clf()
plt.figure(figsize=(4,3.8))
plt.axes([0.17,0.12,0.8,0.75])
plt.plot(X, Y, 'o', color='orange')
plt.grid(True)
plt.title("Spearman correlation=1\nPearson correlation=%.2f" % cc)
plt.xlabel("X", size=16)
plt.ylabel("Y", size=16)
plt.xlim(-0.05,1.05)
plt.savefig("spearman_fig1.pdf")
plt.savefig("spearman_fig1.svg")
|
Licensing
editI, the copyright holder of this work, hereby publish it under the following license:



This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 15:16, 18 December 2009 | ![]() | 360 × 341 (56 KB) | Skbkekas (talk | contribs) | {{Information |Description={{en|1=Scatterplot comparing Spearman and Pearson correlation.}} |Source={{own}} |Author=Skbkekas |Date=2009-12-18 |Permission= |other_versions= }} Category:Statistical charts |
You cannot overwrite this file.
File usage on Commons
The following 3 pages use this file:
File usage on other wikis
The following other wikis use this file:
- Usage on ar.wikipedia.org
- Usage on de.wikipedia.org
- Usage on el.wikipedia.org
- Usage on en.wikipedia.org
- Usage on fa.wikipedia.org
- Usage on fi.wikipedia.org
- Usage on fr.wikipedia.org
- Usage on it.wikipedia.org
- Usage on ko.wikipedia.org
- Usage on pt.wikipedia.org
- Usage on sv.wikipedia.org
- Usage on tl.wikipedia.org
- Usage on uk.wikipedia.org
- Usage on zh.wikipedia.org