Skip to content
/ tskew Public

Numba-compiled implementation of skew-t distribution.

Notifications You must be signed in to change notification settings

efvega/tskew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tskew

This package contains an implementation of the the skew-t distribution of Azzalini (link). Its PDF is given by

where

.

Here we limit our attention to the 1-D version. A simplified description of the parameters goes like

- Location parameter (not necessarily the mean).

- Scale parameter (not necessarily the variance or standard deviation).

- Skewness parameter (not necessarily the skewness itself).

- Tailedness parameter (influences kurtosis).

Exploring the code

After cloning the repository, use the following commands to install the necessary requirements:

pip install -r path/to/cloned/repo/requirements.txt

Then, run the demo script via

python -i tskew_demo.py

The generated images will be similar to

PDF_and_CDF Exponential_fit

The -i flag makes the script run in interactive mode so that the plots do not immediately close on program termination. A simplified use-case might look like

from tskew.tskew import fit_tskew
loc_est, scale_est, df_est, skew_param_est = fit_tskew(my_data)

About

Numba-compiled implementation of skew-t distribution.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages