Code covered by the BSD License  

Highlights from
multstat

Be the first to rate this file! 0 Downloads (last 30 days) File Size: 2.46 KB File ID: #6787

multstat

by Antonio Trujillo-Ortiz

 

24 Jan 2005 (Updated 07 Apr 2005)

Multinomial mean, variance and standard deviation.

| Watch this File

File Information
Description

This m-file returns the mean, variance and standard deviation of the multinomial distribution with parameters N and P. The Expected Value (i.e., averages):

Expected Value = m = Sum(Xi × Pi), the sum is over all i's. Expected value is another name for the mean and (arithmetic) average.

The Variance is:
Variance = s2 = v = Sum[Xi2 × Pi] - m2, the sum is over all i's. The variance is not expressed in the same units as the expected value. So, the variance is hard to understand and to explain as a result of the squared term in its computation. This can be alleviated by working with the square root of the variance, which is called the Standard (i.e., having the same unit as the data have) Deviation:
Standard Deviation = s = (Variance) ½

File needs to input x-vector of the interested values and p-vector of associated probabilities.

It outputs m-multinomial mean value (default), v-multinomial variance value (optional) and s-multinomial standard deviation value (optional).

MATLAB release MATLAB 5.3 (R11)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
26 Jan 2005

It was added an appropriate format to cite this file.

27 Jan 2005

Text was improved.

07 Apr 2005

Text was improved.

Tag Activity for this File
Tag Applied By Date/Time
statistics Antonio Trujillo-Ortiz 22 Oct 2008 07:40:08
probability Antonio Trujillo-Ortiz 22 Oct 2008 07:40:08
multinomial distribution Antonio Trujillo-Ortiz 22 Oct 2008 07:40:08
multinomial statistics Antonio Trujillo-Ortiz 22 Oct 2008 07:40:08
multinomial Antonio Trujillo-Ortiz 22 Oct 2008 07:40:08

Contact us at files@mathworks.com