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
InfoField
Source code
InfoField

Python code

import 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")
Category:Correlation

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution
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.
Category:CC-BY-3.0#Correlation%20significance.svgCategory:Self-published work
Category:Images with Python source code
Category:CC-BY-3.0 Category:Correlation Category:Images with Python source code Category:Self-published work Category:Valid SVG created with Matplotlib code