Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Transform a statistical distribution by applying the same function to all of its arguments
ResourceFunction["MappedTransformedDistribution"][f,dist] creates a transformed distribution for which the function f is mapped over all of the arguments. |
Compute the CDF of a product distribution of two binomial distributions in which 1 has been added to each of the arguments:
In[1]:= |
Out[1]= |
Compute the CDF of a lognormal distribution in which the argument has been negated:
In[2]:= |
Out[2]= |
Compute the SurvivalFunction of a binomial distribution in which the square root is applied to its argument:
In[3]:= |
Out[3]= |
Compute the mean of a mapped transformed distribution of a multivariate discrete distribution:
In[4]:= |
Out[4]= |
Compute the characteristic function of a mapped transformed distribution of a multivariate symbolic continuous distribution:
In[5]:= |
Out[5]= |
Compute the mean of a mapped transformed distribution of a copula distribution of two binomial distributions:
In[6]:= |
Out[6]= |
Plot the CDF of a copula distribution whose components are binomial and each argument of which has been transformed by adding 1 to it:
In[7]:= |
Out[7]= |
If the function mapped over the arguments to a continuous distribution is negation, that is, -#&, the roles of CDF and SurvivalFunction are effectively exchanged:
In[8]:= |
Out[8]= |
The SurvivalFunction of a discrete distribution evaluated at x is the same as the CDF of the mapped transform distribution evaluated at -(x+1), where the mapped function is -#& and the distribution is defined over integers:
In[9]:= |
Out[9]= |
Compute the probability that a person alive at age 61 will be dead before age 71 given that their mortality is determined by a discretized variant of a Gompertz–Makeham mortality function:
In[10]:= |
In[11]:= |
Out[11]= |
This work is licensed under a Creative Commons Attribution 4.0 International License