File:Correlation significance.svg
Summary
| Description |
English: Plot showing the minimum value of Pearson's sample correlation coefficient that would be significant at the 0.05 level for a given sample size. |
| Date | |
| Source | Own work |
| Author | Skbkekas |
| SVG development | |
| Source code | Python codeimport numpy as np
import matplotlib.pyplot as plt
N = np.arange(10,250,1)
Z = 1.96/np.sqrt(N-3)
R = (np.exp(2*Z)-1)/(np.exp(2*Z)+1)
plt.clf()
plt.figure(figsize=(4,3.4))
plt.axes([0.15,0.15,0.8,0.8])
plt.grid(True)
plt.plot(N, R, '-', color='orange', lw=3)
plt.xlabel("Sample size", size=18)
plt.ylabel("Pearson correlation", size=18)
plt.savefig("correlation_significance.pdf")
plt.savefig("correlation_significance.svg")
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution 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.