Questions tagged [truncated-normal]

The truncated normal distribution is a normal (Gaussian) distribution that as been "cut off" at one or both ends.

61 questions
Filter by
Sorted by
Tagged with
25 views

How do I find the standard deviation that results in a specific probability coverage in a truncated normal distribution?

Given a truncated normal distribution $X$ with mean $\mu$, lower limit $a$, and upper limit $b$. How can I pick a standard deviation $\sigma$ such that $P(\mu -x\leq X \leq \mu+x)=y$ for some ...
19 views

Precision issues using truncnorm in R [closed]

I'm facing some precision issues with truncnorm, particularly the ptruncnorm() function in R. Here's an example where I find the cdf up to $q= 2$, where the truncation point is $1.9$, for several ...
32 views

74 views

How do I calculate $s$ from $\mathbb P(X+Y>u\mid X<s)=q$

Suppose $X,Y$ are (not necessarily independently) normally distributed, how can one calculate the maximal limit $s$ that $X$ may reach such that the probability of the sum $X+Y$ overshooting a given ...
32 views

24 views

d to r conversion for extremely high versus extremely low groups

Context Suppose I am performing a meta-analysis on the relationship between two variables (say depression and life satisfaction). Unfortunately, many studies in the prior literature do not report ...
9 views

Bayesian experimental design choosing the support of the distribution

I am not an expert on these topics so any help is very much appreciated. I'm not even sure if this question is trivial. If so, please let me know. General Setup: Consider the problem posed in this ...
38 views

Dealing with measurements falling outside of the theoretical range/boundaries of the data

Imagine I am measuring a bounded variable (with a maximum possible value above which the data doesn't make sense) and I end up with the following dataset with my measurements and measurement errors as ...
307 views

Compute truncated normal distribution with specific mean and variance

I have a simple setting: I simulate demand patterns that are distributed according to a truncated normal distribution with a given mean and variance after truncation. The truncation is from the left ...
129 views

Linear Mixed Effects Models for Truncated Normal Distribution

I would like to analyze amplitude differences of discrete oscillations that were detected in a time-series using a thresholding method between three different conditions. The number of discrete events ...
434 views

Calculating the expected value of truncated normal

Using the mills ratio result, let $X \sim N(\mu, \sigma^2)$, then $E(X| X<\alpha) = \mu - \sigma\frac{\phi(\frac{a- \mu}{\sigma})}{\Phi(\frac{a-\mu}{\sigma})}$ However, when calculating it in R. ...
23 views

Variance of squared truncated normal

What is $$\text{var}\left[v+\frac{1}{2} X \left(\frac{v-\mu}{\sigma}\right)^2 \mid v \leq \mu \right],$$ where $v$ is normally distributed $\mathcal{N}(\mu,\sigma)$ and $X>0$?
46 views

Correlation between normal RV and truncated normal RV

If I have two normally distributed random variables $a\sim\mathcal{N}\left(\mu_a,\sigma_a\right)$ and $b\sim\mathcal{N}\left(\mu_b,\sigma_b\right)$ with correlation $\rho$, is there a closed form for ...
119 views

IRLS for truncated normal GLM

I have data for which responses fall in $y \in [0,\infty)$ for which, it seems, the standard GLMs based on, say, gamma or inverse-Gaussian fail since they don't allow responses with values equal to 0. ...
29 views

How can I test if a permutation hypothesis test produces valid results based on the probability distribution used?

I'm using the Join Count statistics to get insight if there is spatial autocorrelation in a categorical feature. I would like to test if the pseudo p-value returned comes from a valid hypothesis test ...
41 views

How to sample a vector from Multivariate normal with the last element constraint to positive?

I'm doing MCMC simulation and a posterior is hard to sample. Suppose I need to sample a vector $\beta \sim N(M_{\beta} , \Sigma_{\beta})1_{\beta_{K}>0}$, which mean $\beta$ is a vector with length ...
197 views

Is the truncated normal distribution symmetric?

I am running a Metropolis-Hastings MCMC to find the distribution of a parameter that takes real, positive values. I was considering using the truncated normal distribution, and was wondering if I have ...
211 views

What is the distribution of min{0,X} when X follows some general normal distribution?

What is the distribution of $\min\{0, X\}$ when $X$ follows some general normal distribution?
477 views

Expectation of truncated normal

Suppose I have a bivariate normal $(x,y)\sim \mathcal N(0,\Sigma)$ . Is there an easy formula for the expectation $\mathrm E(x\mid y>0)$ ?
31 views

Can I consider this as a truncated normal distribution?

I have a variable whose maximum value is fixed (maximum number of days in the observation period). In some plots, the histogram of the log-transformed variable peaks near the maximum, but not at the ...
204 views

Bayesian prior and posterior computation for a truncated normal

I have to deal with data in a Bayesian framework, ultimately devising a Gibbs sampler for inferring all my distributions parameters. Specifically, suppose I observe some univariate data distributed ...
254 views

Estimate parameters from truncated normal sample [duplicate]

I have a question like this, $X \sim N(\mu,\sigma^2)$ with unknown parameters. Now, a sample of size $m$ generated from X, but filter by X < T, i.e., any number larger than T will be ignored and ...
249 views

Truncated mulitvariate normal: first two moments

Let $X\in \mathbb{R}$ be a univariate random varible for which it holds that $$X \sim N(\mu,\sigma^2).$$ where $\mu\in \mathbb{R}$ gives the expected value and $\sigma^2>0$ is the variance. If ...
173 views

Numerical computation of the means and covariance in a truncated bivariate normal distribution

How can I compute the means and covariance of a truncated bivariate normal distribution? I am particularly worried about the case when the truncation occurs very far from the mean. Is there a robust ...
143 views

Linear combination of truncated normals

I am trying to calculate the following expression: $$Z = \mathbb{E}\left[\left| \langle \mathbf{a}, u \rangle \right| \right] = \left| \sum_{i=1}^d a_i u_i \right|, \quad \left\| u \right\| = 1$$ ...
100 views

How to find the mean of all z scores above a cutoff

I would like to find the mean of all z-scores above a z-score cutoff. For example, what is the mean of all z scores above a z of 1.96 in a distribution N(0,1). (My calculus skills are modest.)
351 views

72 views

Swiss Cheese Distributions

I am curious about a normal distribution with no probability mass in certain regions, sort of like the complement of the truncated normal. In particular, it will have zero mass in a circular region. ...
958 views

346 views

How to analyze random variables with non normal distribution

I'm wondering how random variables can be analyzed using parametric methods if the distribution is not normal. For example if a variable Y is normal distributed but I'm interested only on values Y2 ...
44 views

Support of sum of dependent truncated distributions

In case of independent truncated distributions, we can know the support of their sums from their convolutions. How about the dependent counterparts? In my case, I sum 9 dependent truncated ...
196 views

How do you sample $\mathcal N(\mu, \sigma^2)$ from a range?

How can we generate a sample in the interval $[a,b]$ based on a Gaussian distribution? If we have a Gaussian random generator, just by mapping the number to the range and pruning (ignoring) the ...
1k views

Sampling from Truncated Normal

I am trying to sample from a truncated normal using the standard probability integral transform as described on wikipedia with  x = \Phi^{-1} ( \Phi(\alpha) + U*( \Phi(\beta) - \Phi(\alpha)))*\sigma ...
149 views

Generate data if parameters for population are known [duplicate]

I know the mean and standard deviation of a population, and its minimum and maximum value. How can I generate each data value from those parameters (using R) with the assumption that the data is ...
282 views

Partly truncated and not truncated data

In some places 100 km races stop to count time if a certain time limit has been passed, for example 15 hours. It is difficult, respective, not possible to distinguish which finisher or site was ...
770 views

Why is the output weights matrix initialized in a different way as the word embedding matrix in word2vec?

I was plagued by this problem while reading the tensorflow tutorial. There the word embedding is intialized as follows: ...
4k views

Fitting truncated distributions using fitdistrplus with a lower bound of zero

I have been working to fit a normal distribution to data that is truncated to only be zero or greater. Given my data, which I have at the bottom, I previously used the following code: ...