Skip to main content
edited tags
Link
Glen_b
  • 290.4k
  • 37
  • 652
  • 1.1k
Tweeted twitter.com/StackStats/status/683455614580842496
spacing added
Source Link
mac
  • 143
  • 6

Wikipedia shows how to generate Triangular-distributed random variates using a variate $U$ drawn from the uniform distribution.

A "Double Triangular" distribution is a special case of a mixture of two triangular distributions. Specifically, it is determined by three numbers $a \lt c \lt b$ and a proportion $p$ with $0 \lt p \lt 1$. It is supported on the interval $[a, b]$. On

On the interval $[a,c]$ its density function is given by

$$f(x) = \lambda(x-a)$$

where $\lambda(c-a)^2 = 2p$.

On the interval $[c, b]$ its density function is given by

$$f(x) = \mu(b-x)$$

where $\mu(b-c)^2 = 2(1-p)$.

What would be a good approach to generating Double-Triangular-distributed random variates?

Wikipedia shows how to generate Triangular-distributed random variates using a variate $U$ drawn from the uniform distribution.

A "Double Triangular" distribution is a special case of a mixture of two triangular distributions. Specifically, it is determined by three numbers $a \lt c \lt b$ and a proportion $p$ with $0 \lt p \lt 1$. It is supported on the interval $[a, b]$. On the interval $[a,c]$ its density function is given by

$$f(x) = \lambda(x-a)$$

where $\lambda(c-a)^2 = 2p$.

On the interval $[c, b]$ its density function is given by

$$f(x) = \mu(b-x)$$

where $\mu(b-c)^2 = 2(1-p)$.

What would be a good approach to generating Double-Triangular-distributed random variates?

Wikipedia shows how to generate Triangular-distributed random variates using a variate $U$ drawn from the uniform distribution.

A "Double Triangular" distribution is a special case of a mixture of two triangular distributions. Specifically, it is determined by three numbers $a \lt c \lt b$ and a proportion $p$ with $0 \lt p \lt 1$. It is supported on the interval $[a, b]$.

On the interval $[a,c]$ its density function is given by

$$f(x) = \lambda(x-a)$$

where $\lambda(c-a)^2 = 2p$.

On the interval $[c, b]$ its density function is given by

$$f(x) = \mu(b-x)$$

where $\mu(b-c)^2 = 2(1-p)$.

What would be a good approach to generating Double-Triangular-distributed random variates?

added two tags
Link
Christoph Hanck
  • 34.8k
  • 3
  • 78
  • 137
Post Reopened by whuber
added 386 characters in body
Source Link
whuber
  • 333.5k
  • 63
  • 792
  • 1.3k
Loading
Post Closed as "Needs details or clarity" by whuber
Source Link
mac
  • 143
  • 6
Loading