Wolfram Language & System 10.0 (2014)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

Fit Nonparametric and Parametric Distributions to Weighted Data

    
Generate random reals from to and weight them according to the PDF of a NormalDistribution using WeightedData:
In[1]:=
Click for copyable input
Create a WeightedData object and compute its mean and variance:
In[2]:=
Click for copyable input
Out[2]=
Fit to a NormalDistribution using maximum likelihood estimation:
In[3]:=
Click for copyable input
Out[3]=
Use HistogramDistribution to create a weighted histogram:
In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=