# Ceteris Lab downloadable Python script
# Course: Fundamentals of Python for Financial Econometrics

import pandas as pd
from scipy import stats

x = pd.Series([10, 11, 12, 13, 55])
print({
    "mean": x.mean(),
    "median": x.median(),
    "std": x.std(),
    "iqr": stats.iqr(x),
})

import numpy as np
from scipy import stats

rng = np.random.default_rng(13)
returns = rng.standard_t(df=5, size=5_000)
print(round(stats.skew(returns), 3))
print(round(stats.kurtosis(returns, fisher=True), 3))
