arriagajorge / Copula3dPlots

A 3D Plot from copulas in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Python 100.0%