# Questions tagged [inverse-cdf]

Inverse cumulative distribution function, known also as quantile function, for a given probability returns the value at which the probability of observing some outcome from the random variable is less than or equal to the given probability.

49 questions
29 views

### Normal Quantile Function With a lower bound not equal to infinity

I was recently at a statistics competition and a question came up as follows: They drew a normal distribution with $\mu=7$ and the area between the values $7.75$ and $8.25$ equal to $0.12$. No other ...
26 views

### VaR/inverse cdf of transformation of normal variables

I have the following exercise to solve as good preparation for an exam: NOTE: $VaR_p(X)$ = Value at risk = $F^{-1}_X(p)$ Consider the bivariate normal random vector $(X_1, X_2)$. The marginals are ...
98 views

68 views

### Expected value of joint quantile functions

Consider a population of individuals (not a sample). We are interested in two variables, $X$ and $Y$, which are independent. $X$ distributes with pdf $f(x)$ and CDF $F(x)$, and $Y$ distributes with ...
16 views

### Integral of the inverse of a CDF is the mean of the PDF? [duplicate]

While doing some calculations, I got this interesting result. Consider the CDF of the log-normal: $$y(x) = \dfrac{1}{2}\left[1+erf\left(\dfrac{\ln\left(x\right)-\mu}{\sigma\sqrt{2}}\right)\right]$$ ...
48 views

### Confidence distribution for $\mu$ [closed]

Suppose that we have sample $x_{i}\sim N(\mu,\sigma^{2})\quad i=1,...,n$ and when $\sigma^{2}$ is known. A confidence distribution (CD) for $\mu$ can be written as follows (see, https://en.wikipedia....
72 views

### Is there any relationship between random numbers sampled from some continuous distribution D and the quantile function of D?

I've noticed that when I sample n numbers from a continuous distribution D, sort them, and plot against the quantile function of D, both curves seem very similar. I've tried this for a few ...
268 views

### How to calculate the inverse cdf for a sample with unknown distribution?

I'm stuck with an exercise that I'll just write down first: Based on a sample $x_1,...,x_{47}$, that can be considered coming from an unknown distribution, we study a qq-plot where the empirical ...
75 views

### Using quantiles to estimate the parameters of a distribution: adjusting for unobserved extreme values

I with to estimate the parameters of a specified semi-infinite distributional family based on a sample drawn from that distribution. It is plausible that my sample median converges to the population ...
64 views

### How to generate data that have given conditional mean and conditional quantile using R?

Suppose I want to generate independent data $(y_{i},x_{i})$ such that the conditional mean of $y_{i}$ given $x_{i}$ is a quadratic function in $x_{i}$ and the $.25$ conditional quantile of $y_{i}$ ...
452 views

### Formula for Inverse T-distribution

I am trying to formulate an expression to calculate the critical value of a T-distribution for a given degrees of freedom. I have done so already for the Normal Distribution by considering the TI-84 ...
62 views

### Why do I get 'Inf' value while doing quantile mapping in MATLAB?

I am doing bias correction of rainfall data simulated by Global Climate Model. Since, rainfall data generally follows gamma distribution, I am estimating parameter ...
305 views

### Generate random numbers from a power-law/exponential distribution

I'm working through the paper Power-law distributions in empirical data by Clauset, Newman and Shalizi. On page 12, they generate random numbers from the following distribution: \begin{equation*} p(...
72 views

### How to simplify the derivation of the inverse cdf yielded from l'Hospital rule?

I am currently dealing with a proof of Pauline Barrieu`s Paper "Assessing Financial Model Risk" (page 19). At one point she applys the l'Hospital rule on a limit equation. We have some cumulative ...
49 views

### Nonparametric Quantile Regression for AR(1)-ARCH(1) process

I would like to estimate the conditional scale function $(\sigma_\tau(X_t))$ in a QAR-QARCH model represented by: \begin{equation} Y_t = \mu_\tau(X_t) + \sigma_\tau(X_t)\epsilon_t,\, t = 1,2,\ldots \...
647 views

### Monte Carlo Estimator for a quantile

I am trying to understand how to compute a crude Monte Carlo estimator for an $\alpha-$quantile. I have read the algorithm from the book Monte Carlo Methods and Models in Finance and Insurance, (Korn,...
985 views

39 views

### Generate two distributions of data with consistent differences in quantile values

How can one generate two sets of data which are different at each quantile values (say decile)? Ex: 10th & 80th percentile is 4 & 22 respectively for the first set and the same should be 8 &...
55 views

### What is the formula to calculate the nth percentile of Johnson-S$_U$ distribution with known parameters

I was wondering if there is a closed form to calculate the nth percentile of Johnson-S$_U$ distribution with known parameters? I know R could do this easily, but I want a formula instead so I can use ...
2k views

### How should I inverse of the Normal loss function L(z) to be able to implement this in software?

I have a question related to this question: How to inverse loss function L(z) to normal standard distribution (z) The question wasn't answered since it wasn't clear what was asked. However I know ...
1k views

### Inverse Transformation Sampling with Gaussian

For inverse transform sampling, if you know the CDF of a probability distribution ($f_X$) that you want to sample, you can generate a uniform realization ($U$) from [0,1], and then according to the ...
396 views

### Input to fit a power-law to degree distribution of a network

I would like to use R to test whether the degree distribution of a network behave like a power-law with scale-free property. Nonetheless, I've read diferent people ...
525 views

### Copula Behaviour : Gaussian vs Student T -Numerical Stability

I would like to get your opinion on the following topic: I am comparing the behaviour of Gaussian and Student-t Copulas. I employ the follwing procedure: Simulate N=100,000 samples from a Student ...
2k views

### Generating a sample using inverse CDF method in python [closed]

How can I generate 1000-element sample using inverse CDF method? It should be easy but I'm a complete beginner. I know what it is mathematically but I don't know how to implement it in Python
741 views

### How to convert a Johnson normalized variable back to a marginal variable

Edit after @eric_kernfeld answer. I'd like to do Generate a time-series, for example, from a uniform distribution. Transform of non-normal variable to standard normal distribution. Fit an arima ...
10k views

### What is inverse CDF Normal Distribution Formula

Do anyone know what is Inverse Cumulative Distribution Function of Normal Distribution formula or equation? I am looking at Google but did not find any good answer.
3k views

### What does the inverse Function in R calculate? [closed]

library(GoFKernel) x<-seq(0,1000,33) f <- function(x) pbeta(x, shape1=2, shape2=3) f.inv <- inverse(f,lower=0,upper=1) f.inv(.5)  0.3857168 ...
199 views

### CDF of a Tweedie Distribution

The R package tweedie provides a way to estiamate the density and CDF of Tweedie distribution (using dtweedie and ptweedie, ...
950 views

### What are the advantages of an exponential random generator using the method of Ahrens and Dieter (1972) rather than by inverse transform?

My question is inspired by R's built-in exponential random number generator, the function rexp(). When trying to generate exponentially distributed random ...
276 views

### Does q-function remain the inverse of CDF for any type of distribution? [closed]

I read the the Quantile Function commonly known as q-function is the inverse of the CDF for a normal distribution. $Q(x) = 1 - Q(-x) = 1 - \Phi(x)\,\!,$ where Φ(x)...
95 views

### Quantile function of Singh-Maddala

I am trying to understand how to derive the quantile function from the cdf. The Singh-Maddala cdf is Should i just solve for x ? Thank you
21k views

### Help me understand the quantile (inverse CDF) function

I am reading about the quantile function, but it is not clear to me. Could you provide a more intuitive explanation than the one provided below? Since the cdf $F$ is a monotonically increasing ...
322 views

### solution to mixture CDF / inverse CDF of finite mixture

I am currently numerically solving the follwing equation, which is a convex combination/finite mixture of two marginal CDFs $F(x)$ and $G(x)$ (actually they are joint CDFs but all arguments but x are ...
459 views

### Calculating distribution minimum and maximum values from known p5/mode/p95 values

I am defining triangular and Beta-Pert distributions in MATLAB to produce random samples for Monte Carlo analysis. This is a trivial task if the minimum, maximum and mode are known using: makedist('...
269 views

876 views

### Conditional Expectation via Integral over Quantile Function

Following this thread "Does a univariate random variable's mean always equal the integral of its quantile function?" I tried to do a similar thing for a conditional expectation. It seems like my ...
If $F_Z$ is a CDF, it looks like $F_Z(z)^\alpha$ ($\alpha \gt 0$) is a CDF as well. Q: Is this a standard result? Q: Is there a good way to find a function $g$ with $X \equiv g(Z)$ s.t. \$F_X(x) = ...