Skip to content

arriagajorge/Copula3dPlots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Copulas 3D Plots

Using Plot3dCopulas.py

import numpy as np
import matplotlib.pyplot as plt

plt.style.use('seaborn-v0_8-pastel')
cmap = plt.get_cmap('coolwarm')
plt.set_cmap(cmap)

import statsmodels.distributions.copula.api as cp
import Plot3dCopulas as cop

# copula gaussina corr=0.5
gc = cp.GaussianCopula(corr=0.5)

#Plot3D CFD & PDF
cop.PDF3d(gc, title="Cópula Gaussiana")

PDF Plot

cop.CFD3d(gc, title="Cópula Gaussiana")

CFD Plot

The functions are made in such a way that you can modify parameters e.g. resolution, cmap, fontsize, etc.

Issues: CFD cannot be plotted from t-student copula.

About

A 3D Plot from copulas in python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages