Skip to content

Instantly share code, notes, and snippets.

@shandou
Created May 30, 2018 05:58
Show Gist options
  • Save shandou/177a1ef4499554eaedd0185cc7694626 to your computer and use it in GitHub Desktop.
Save shandou/177a1ef4499554eaedd0185cc7694626 to your computer and use it in GitHub Desktop.
pearson_r_confidence_interval
import scipy.stats
import numpy as np
alpha = 0.05 / 2 # Two-tail test
z_critical = scipy.stats.norm.ppf(1 - alpha)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment