Results 1 to 2 of 2

Math Help - calculating variance for a bunch of random variables -- (n-1) or (n)?

  1. #1
    Junior Member
    Joined
    Jun 2009
    Posts
    68

    calculating variance for a bunch of random variables -- (n-1) or (n)?

    We're learning about distributions (binomial etc.), and we were assigned a program where we have to generate m random binomial variables + calculate its standard deviation and expectation. Then, compare that with the standard deviation and expectation for the probability mass function itself.

    In my book, we are ALWAYS calculating variance etc. for PMFs. For this reason, i'm confused about the two different ways i'm finding to calculate variance for a bunch of actual data. In fact, I wouldn't have even been aware of the other way except for I checked my code with matlab's built in var(x) function (which uses the other way! the one where you divide by (n-1) instead of n.)

    So which way do you think I'm supposed to calculate variance for this project with? What's the difference between the two ways to calculate the variance?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Flow Master
    mr fantastic's Avatar
    Joined
    Dec 2007
    From
    Zeitgeist
    Posts
    16,948
    Thanks
    5
    Quote Originally Posted by 1005 View Post
    We're learning about distributions (binomial etc.), and we were assigned a program where we have to generate m random binomial variables + calculate its standard deviation and expectation. Then, compare that with the standard deviation and expectation for the probability mass function itself.

    In my book, we are ALWAYS calculating variance etc. for PMFs. For this reason, i'm confused about the two different ways i'm finding to calculate variance for a bunch of actual data. In fact, I wouldn't have even been aware of the other way except for I checked my code with matlab's built in var(x) function (which uses the other way! the one where you divide by (n-1) instead of n.)

    So which way do you think I'm supposed to calculate variance for this project with? What's the difference between the two ways to calculate the variance?
    Calculating Variance - Deviation Score Method

    Variance -- from Wolfram MathWorld
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Variance, Means and Random Variables.
    Posted in the Statistics Forum
    Replies: 2
    Last Post: January 31st 2011, 11:58 AM
  2. Marginal variance with two random variables
    Posted in the Advanced Statistics Forum
    Replies: 2
    Last Post: October 20th 2010, 06:43 AM
  3. What is the variance of the division of 2 random variables?
    Posted in the Advanced Statistics Forum
    Replies: 4
    Last Post: March 23rd 2010, 01:23 PM
  4. Covariance/variance with two random variables
    Posted in the Advanced Statistics Forum
    Replies: 2
    Last Post: March 2nd 2009, 02:12 PM
  5. random variables and variance
    Posted in the Advanced Statistics Forum
    Replies: 2
    Last Post: November 26th 2008, 02:25 AM

Search Tags


/mathhelpforum @mathhelpforum