SplicedDistribution

SplicedDistribution[{w1,w2,,wn},{c0,c1,,cn},{dist1,dist2,,distn}]
represents the distribution obtained by splicing the distributions , , truncated on the intervals , , with weights , , .

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Define a spliced distribution with a normal body and a Pareto tail:

In[1]:=
Click for copyable input

Probability density function:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

Find the mean and variance of a spliced distribution:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Compare with the values obtained by using a random sample:

In[3]:=
Click for copyable input
In[4]:=
Click for copyable input
Out[4]=
Introduced in 2012
(9.0)