Skip to content

Instantly share code, notes, and snippets.

View ilkayisik's full-sized avatar

Ilkay Isik ilkayisik

View GitHub Profile
@zhiyzuo
zhiyzuo / pearsonr_ci.py
Last active January 4, 2023 06:19
calculate Pearson correlation along with the confidence interval using scipy and numpy
import numpy as np
from scipy import stats
def pearsonr_ci(x,y,alpha=0.05):
''' calculate Pearson correlation along with the confidence interval using scipy and numpy
Parameters
----------
x, y : iterable object such as a list or np.array
Input for correlation calculation
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #