|
SOLUTIONS
|
Mathematica
>
Data Manipulation
>
Statistical Data Analysis
>
Probability & Statistics
>
Random Variables
>
Statistical Moments and Generating Functions
>
CentralMoment
BUILT-IN MATHEMATICA SYMBOL
CentralMoment
CentralMoment[list, r]
gives the r
central moment of the elements in list with respect to their mean.
CentralMoment[dist, r]
gives the r
central moment of the symbolic distribution dist.
CentralMoment[r]
represents the r
formal central moment.
DetailsDetails
- CentralMoment is also known as a moment about the mean.
- CentralMoment handles both numerical and symbolic data.
- For the list
, the 
central moment is given by
, where
is the mean of the list. - CentralMoment[{{x1, y1, ...}, ..., {xn, yn, ...}}, {rx, ry, ...}] gives
. - CentralMoment works with SparseArray objects.
- For a symbolic distribution dist, the r
central moment is given by Expectation[(x-Mean[dist])r, x
dist]. - For a multivariate symbolic distribution dist, the

central moment is given by Expectation[(x1-
1)r1(x2-
2)r2
, {x1, x2, ...}
dist] and {
1,
2, ...}==Mean[dist]. - CentralMoment[r] can be used in functions such as MomentConvert and MomentEvaluate, etc.
ExamplesExamplesopen allclose all
Basic Examples (5)Basic Examples (5)
Compute central moments from data:
| In[1]:= |
| In[2]:= |
| Out[2]= |
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= | ![]() |
Compute the second central moment of a continuous univariate distribution:
| In[1]:= |
| Out[1]= |
The central moment
of a discrete univariate distribution:
| In[1]:= |
| Out[1]= |
The central moment
of a multivariate distribution:
| In[1]:= |
| Out[1]= |
Find the relation of a formal central moment to cumulants:
| In[1]:= |
| Out[1]= |
Evaluate for a particular distribution:
| In[2]:= |
| Out[2]= |
| In[3]:= |
| Out[3]= |
New in 6 | Last modified in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

