필터 지우기
필터 지우기

How to plot contour for gaussian copula (etc.)

조회 수: 11 (최근 30일)
Chen Yu Yuan
Chen Yu Yuan 2024년 2월 25일
댓글: Mathieu NOE 2024년 2월 27일
From matlab help center, I can generate Gaussian copula random variables and plot it like this:
n = 500;
rng('default') % for reproducibility
U = copularnd('Gaussian',[1 .8; .8 1],n);
plot(U(:,1),U(:,2),'.')
title('{\it\rho} = 0.8')
xlabel('U1')
ylabel('U2')
The question is, how could i plot the "contour plots" of bivariate copula models like this (the right pic):
It may probabilily be marginally normalized, but i don't know how to do it by function "contour".
Thanks for your helping!!
  댓글 수: 2
Mann Baidi
Mann Baidi 2024년 2월 25일
Hi,
Have you tried 'copulapdf' function? If not, you can refer to the following link:
Mathieu NOE
Mathieu NOE 2024년 2월 27일
you can make a contour plot from scattered data using this Fex submission :

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Probability Distributions에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by