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 numpy.linalg import solve | |
import logging | |
logging.basicConfig(level = logging.DEBUG) | |
from scipy.stats import moment,norm | |
def fleishman(b, c, d): | |
"""calculate the variance, skew and kurtois of a Fleishman distribution | |
F = -c + bZ + cZ^2 + dZ^3, where Z ~ N(0,1) | |
""" |