Warning: Inverse CDF calculation did not converge for p

조회 수: 6 (최근 30일)
Alexandra
Alexandra 2016년 1월 8일
편집: Torsten 2016년 1월 11일
Hi,
I run a simulation using ksdensity and copulas. In the end I get the following warning:
Warning: Inverse CDF calculation did not converge for p
Anyone knows what it means?
Thanks,
  댓글 수: 1
Torsten
Torsten 2016년 1월 11일
편집: Torsten 2016년 1월 11일
It means that the solver could not calculate F^(-1)(p) where F is the estimated CDF for your inputs.
Best wishes
Torsten.

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

답변 (1개)

jgg
jgg 2016년 1월 8일
It sounds like you're trying to estimate the inverse CDF function in kdensity.
This is basically done in two steps in Matlab:
  1. Using the kernel density estimation, compute an initial inverse CDF
  2. Use Newton's method to refine this estimation based on the change in the function value and grid size
It tries to make this roughly less than 1e-6 in terms of total change, and gives itself 100 iterations of Newton's method to do this.
The warning you are seeing indicates that kdensity tried to do this, but wasn't confident it was able to find a sufficiently good approximation within the 100 iterations. This is a non-fatal error. I would suggest two things:
  1. You could compute the empirical CDF, and the inverse CDF, then compare the two and see how good you think the inverse CDF is. If it's acceptable, you can ignore this warning.
  2. You can try excluding outliers, centering, or adding data to the estimation to help the estimation do a better job of computing the CDF.
  댓글 수: 1
Alexandra
Alexandra 2016년 1월 11일
Hi, Thanks for the help. I only work on the basics of statistics so it is not that clear to me your solution. 1. Your first suggestion is doing a regular histogram of the logaritmic returns and comparing to an histogram of the kernel simulated distribution to see if is very different? 2. What would be centering? Subtracting the mean? Would this help?
Thanks a lot,

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

카테고리

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