This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from scipy import stats | |
def permutation_t_test(sample1: list, sample2: list, n: int =10000) -> float: | |
""" | |
Conduct a permutation T-test using n iterations and p-value. The higher the p-value, the more likely that sample1 | |
and sample2 are sampled from the same distribution | |
:param sample1: Sample of continuous observations |
NewerOlder