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
```python | |
from matplotlib.pyplot import figure, subplots, show, rc, rcdefaults | |
from numpy.random import default_rng | |
from numpy import linspace, atleast_2d | |
from pandas import DataFrame | |
from scipy.stats import gaussian_kde | |
from seaborn import stripplot, rugplot | |
rcdefaults() | |
rc('font', size=14) |
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
from functools import partial | |
from textwrap import fill | |
from scipy.stats import norm, uniform, skewnorm, gaussian_kde, triang | |
from numpy import ( | |
array, linspace, quantile, histogram, atleast_2d, mean, std, add | |
) | |
from numpy.lib.stride_tricks import sliding_window_view | |
from matplotlib.pyplot import subplots, show, rc |
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
from pandas import DataFrame | |
from numpy.random import default_rng | |
from numpy import linspace, sin, cos | |
from matplotlib.pyplot import ( | |
rcdefaults, rc, show, ion, figure, | |
pause, ioff, rcParams, waitforbuttonpress, | |
imread | |
) |
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
from scipy.stats import norm, uniform, gamma | |
from matplotlib.pyplot import rc, rcdefaults, subplots, imread, show | |
from matplotlib.lines import Line2D | |
from matplotlib.ticker import MultipleLocator | |
from matplotlib.transforms import blended_transform_factory | |
from matplotlib.offsetbox import VPacker, TextArea, AnchoredOffsetbox, DrawingArea | |
from matplotlib.image import BboxImage | |
from numpy.random import default_rng |
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
#!/usr/bin/env python3 | |
from pathlib import Path | |
from numpy import sqrt, loadtxt, isclose | |
from pandas import read_table | |
from scipy.stats import t | |
def ttest(sample1, sample2): | |
vn1, vn2 = [s.var() / s.size for s in [sample1, sample2]] |
OlderNewer