Could you calculate the variance of data using the median or something other than the mean?How would you explain covariance to someone who understands only the mean?When does a distribution not have a mean or a variance?How to calculate the variance for mean of means?Is the mean smaller than the medianUsing the median for calculating VarianceIs the sample mean a better point estimate of the population median than the sample median?Higher variance in sample mean or sample median?Calculate variance from mean and variance of binsusing Mean or MedianHow to calculate the variance for the mean of means of binomial only i.d. variables?Mean and variance of the median estimatorCould you derive the mean and variance in this theorem?

What is the difference between "behavior" and "behaviour"?

How can a function with a hole (removable discontinuity) equal a function with no hole?

How to run a prison with the smallest amount of guards?

Avoiding estate tax by giving multiple gifts

Do sorcerers' Subtle Spells require a skill check to be unseen?

Go Pregnant or Go Home

Is there a good way to store credentials outside of a password manager?

How to check is there any negative term in a large list?

Two monoidal structures and copowering

What can we do to stop prior company from asking us questions?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

How did Doctor Strange see the winning outcome in Avengers: Infinity War?

Why are there no referendums in the US?

What does "I’d sit this one out, Cap," imply or mean in the context?

What is paid subscription needed for in Mortal Kombat 11?

How easy is it to start Magic from scratch?

Opposite of a diet

Tiptoe or tiphoof? Adjusting words to better fit fantasy races

Increase performance creating Mandelbrot set in python

Why escape if the_content isnt?

Term for the "extreme-extension" version of a straw man fallacy?

Failed to fetch jessie backports repository

How do I find the solutions of the following equation?

Pole-zeros of a real-valued causal FIR system



Could you calculate the variance of data using the median or something other than the mean?


How would you explain covariance to someone who understands only the mean?When does a distribution not have a mean or a variance?How to calculate the variance for mean of means?Is the mean smaller than the medianUsing the median for calculating VarianceIs the sample mean a better point estimate of the population median than the sample median?Higher variance in sample mean or sample median?Calculate variance from mean and variance of binsusing Mean or MedianHow to calculate the variance for the mean of means of binomial only i.d. variables?Mean and variance of the median estimatorCould you derive the mean and variance in this theorem?













7












$begingroup$


Could we calculate the variance without using the mean as the 'base' point?










share|cite|improve this question











$endgroup$







  • 3




    $begingroup$
    Given $mathbbE(X^2)<infty$, the variance is given by $sigma^2 = mathbbE((X-mathbbE(X))^2)$ by definition. The formular simplifies to $sigma^2 =mathbbE(X^2) - mathbbE(X)^2$. I.e., for the variance you need $mathbbE(X)$. Of course you could define your own dispersion measure using some other statistic...or use one from the answers.
    $endgroup$
    – BloXX
    yesterday







  • 5




    $begingroup$
    Short answer: Lots of other ways to summarize variability (dispersion, spread, scale) but none of the others would be the variance. (In fact, the variance can be defined without reference to the mean.)
    $endgroup$
    – Nick Cox
    yesterday






  • 3




    $begingroup$
    Yes: given data $X,$ compute the covariance of $(X,X)$ as described at stats.stackexchange.com/a/18200/919. This method never computes the mean.
    $endgroup$
    – whuber
    yesterday















7












$begingroup$


Could we calculate the variance without using the mean as the 'base' point?










share|cite|improve this question











$endgroup$







  • 3




    $begingroup$
    Given $mathbbE(X^2)<infty$, the variance is given by $sigma^2 = mathbbE((X-mathbbE(X))^2)$ by definition. The formular simplifies to $sigma^2 =mathbbE(X^2) - mathbbE(X)^2$. I.e., for the variance you need $mathbbE(X)$. Of course you could define your own dispersion measure using some other statistic...or use one from the answers.
    $endgroup$
    – BloXX
    yesterday







  • 5




    $begingroup$
    Short answer: Lots of other ways to summarize variability (dispersion, spread, scale) but none of the others would be the variance. (In fact, the variance can be defined without reference to the mean.)
    $endgroup$
    – Nick Cox
    yesterday






  • 3




    $begingroup$
    Yes: given data $X,$ compute the covariance of $(X,X)$ as described at stats.stackexchange.com/a/18200/919. This method never computes the mean.
    $endgroup$
    – whuber
    yesterday













7












7








7


1



$begingroup$


Could we calculate the variance without using the mean as the 'base' point?










share|cite|improve this question











$endgroup$




Could we calculate the variance without using the mean as the 'base' point?







mathematical-statistics variance mean median scale-estimator






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited yesterday









Ferdi

3,86742355




3,86742355










asked yesterday









WillWill

411




411







  • 3




    $begingroup$
    Given $mathbbE(X^2)<infty$, the variance is given by $sigma^2 = mathbbE((X-mathbbE(X))^2)$ by definition. The formular simplifies to $sigma^2 =mathbbE(X^2) - mathbbE(X)^2$. I.e., for the variance you need $mathbbE(X)$. Of course you could define your own dispersion measure using some other statistic...or use one from the answers.
    $endgroup$
    – BloXX
    yesterday







  • 5




    $begingroup$
    Short answer: Lots of other ways to summarize variability (dispersion, spread, scale) but none of the others would be the variance. (In fact, the variance can be defined without reference to the mean.)
    $endgroup$
    – Nick Cox
    yesterday






  • 3




    $begingroup$
    Yes: given data $X,$ compute the covariance of $(X,X)$ as described at stats.stackexchange.com/a/18200/919. This method never computes the mean.
    $endgroup$
    – whuber
    yesterday












  • 3




    $begingroup$
    Given $mathbbE(X^2)<infty$, the variance is given by $sigma^2 = mathbbE((X-mathbbE(X))^2)$ by definition. The formular simplifies to $sigma^2 =mathbbE(X^2) - mathbbE(X)^2$. I.e., for the variance you need $mathbbE(X)$. Of course you could define your own dispersion measure using some other statistic...or use one from the answers.
    $endgroup$
    – BloXX
    yesterday







  • 5




    $begingroup$
    Short answer: Lots of other ways to summarize variability (dispersion, spread, scale) but none of the others would be the variance. (In fact, the variance can be defined without reference to the mean.)
    $endgroup$
    – Nick Cox
    yesterday






  • 3




    $begingroup$
    Yes: given data $X,$ compute the covariance of $(X,X)$ as described at stats.stackexchange.com/a/18200/919. This method never computes the mean.
    $endgroup$
    – whuber
    yesterday







3




3




$begingroup$
Given $mathbbE(X^2)<infty$, the variance is given by $sigma^2 = mathbbE((X-mathbbE(X))^2)$ by definition. The formular simplifies to $sigma^2 =mathbbE(X^2) - mathbbE(X)^2$. I.e., for the variance you need $mathbbE(X)$. Of course you could define your own dispersion measure using some other statistic...or use one from the answers.
$endgroup$
– BloXX
yesterday





$begingroup$
Given $mathbbE(X^2)<infty$, the variance is given by $sigma^2 = mathbbE((X-mathbbE(X))^2)$ by definition. The formular simplifies to $sigma^2 =mathbbE(X^2) - mathbbE(X)^2$. I.e., for the variance you need $mathbbE(X)$. Of course you could define your own dispersion measure using some other statistic...or use one from the answers.
$endgroup$
– BloXX
yesterday





5




5




$begingroup$
Short answer: Lots of other ways to summarize variability (dispersion, spread, scale) but none of the others would be the variance. (In fact, the variance can be defined without reference to the mean.)
$endgroup$
– Nick Cox
yesterday




$begingroup$
Short answer: Lots of other ways to summarize variability (dispersion, spread, scale) but none of the others would be the variance. (In fact, the variance can be defined without reference to the mean.)
$endgroup$
– Nick Cox
yesterday




3




3




$begingroup$
Yes: given data $X,$ compute the covariance of $(X,X)$ as described at stats.stackexchange.com/a/18200/919. This method never computes the mean.
$endgroup$
– whuber
yesterday




$begingroup$
Yes: given data $X,$ compute the covariance of $(X,X)$ as described at stats.stackexchange.com/a/18200/919. This method never computes the mean.
$endgroup$
– whuber
yesterday










2 Answers
2






active

oldest

votes


















11












$begingroup$

The median absolute deviation is defined as
$$textMAD(X) = textmedian |X-textmedian(X)|$$
and is considered an alternative to the standard deviation. But this is not the variance. In particular, it always exists, whether or not $X$ allows for moments. For instance, the MAD of a standard Cauchy is equal to one since
$$underbraceX-0_text0 is the median=arctan(1)/pi-arctan(-1)/pi=frac12$$






share|cite|improve this answer











$endgroup$








  • 7




    $begingroup$
    Newcomers to this idea should watch out also for mean absolute deviation from the mean (mean deviation, often) and median absolute deviation from the mean. I don't recall mean absolute deviation from the median, but am open to examples. The abbreviation MAD, unfortunately, has been applied variously, so trust people's code first, then their algebraic or verbal definition, but use of an abbreviation MAD only not at all. In symmetric distributions, and some others, MAD as defined here is half the interquartile range. (Punning on MAD I resist as a little too obvious.)
    $endgroup$
    – Nick Cox
    yesterday







  • 3




    $begingroup$
    Also, note that software implementations of the median absolute deviation function can scale the MAD value by a constant factor from the form presented in this answer, so that its value coincides with the standard deviation for a normal distribution.
    $endgroup$
    – EdM
    yesterday










  • $begingroup$
    @EdM Excellent point. Personally I dislike that practice unless people use some different term. It's no longer the MAD!
    $endgroup$
    – Nick Cox
    yesterday






  • 1




    $begingroup$
    @NickCox: the appeal of centring on the median is that the quantity always exists, whether or not the distribution enjoys a mean. This is the definition found in Wikipedia.
    $endgroup$
    – Xi'an
    yesterday










  • $begingroup$
    MAD is Mutually Assured Destruction
    $endgroup$
    – kjetil b halvorsen
    yesterday


















3












$begingroup$

There is already a solution for this question on Math.stackexchange:



I summarize the answers:



  1. You can use that the variance is $overlinex^2 - overline x^2$, which takes only one pass (computing the mean and the mean of the squares simultaneously), but can be more prone to roundoff error if the variance is small compared with the mean.


  1. How about sum of squared pairwise differences ? Indeed, you can check by direct computation that

$$
2v_X = frac1n(n-1)sum_1 le i < j le n(x_i - x_j)^2.
$$




  1. The sample variance without mean is calculated as:
    $$ v_X=frac1n-1left [ sum_i=1^nx_i^2-frac1nleft ( sum_i=1^nx_i right ) ^2right ] $$





share|cite|improve this answer











$endgroup$












    Your Answer





    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("mathjaxEditing", function ()
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    );
    );
    , "mathjax-editing");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "65"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstats.stackexchange.com%2fquestions%2f399445%2fcould-you-calculate-the-variance-of-data-using-the-median-or-something-other-tha%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    11












    $begingroup$

    The median absolute deviation is defined as
    $$textMAD(X) = textmedian |X-textmedian(X)|$$
    and is considered an alternative to the standard deviation. But this is not the variance. In particular, it always exists, whether or not $X$ allows for moments. For instance, the MAD of a standard Cauchy is equal to one since
    $$underbraceX-0_text0 is the median=arctan(1)/pi-arctan(-1)/pi=frac12$$






    share|cite|improve this answer











    $endgroup$








    • 7




      $begingroup$
      Newcomers to this idea should watch out also for mean absolute deviation from the mean (mean deviation, often) and median absolute deviation from the mean. I don't recall mean absolute deviation from the median, but am open to examples. The abbreviation MAD, unfortunately, has been applied variously, so trust people's code first, then their algebraic or verbal definition, but use of an abbreviation MAD only not at all. In symmetric distributions, and some others, MAD as defined here is half the interquartile range. (Punning on MAD I resist as a little too obvious.)
      $endgroup$
      – Nick Cox
      yesterday







    • 3




      $begingroup$
      Also, note that software implementations of the median absolute deviation function can scale the MAD value by a constant factor from the form presented in this answer, so that its value coincides with the standard deviation for a normal distribution.
      $endgroup$
      – EdM
      yesterday










    • $begingroup$
      @EdM Excellent point. Personally I dislike that practice unless people use some different term. It's no longer the MAD!
      $endgroup$
      – Nick Cox
      yesterday






    • 1




      $begingroup$
      @NickCox: the appeal of centring on the median is that the quantity always exists, whether or not the distribution enjoys a mean. This is the definition found in Wikipedia.
      $endgroup$
      – Xi'an
      yesterday










    • $begingroup$
      MAD is Mutually Assured Destruction
      $endgroup$
      – kjetil b halvorsen
      yesterday















    11












    $begingroup$

    The median absolute deviation is defined as
    $$textMAD(X) = textmedian |X-textmedian(X)|$$
    and is considered an alternative to the standard deviation. But this is not the variance. In particular, it always exists, whether or not $X$ allows for moments. For instance, the MAD of a standard Cauchy is equal to one since
    $$underbraceX-0_text0 is the median=arctan(1)/pi-arctan(-1)/pi=frac12$$






    share|cite|improve this answer











    $endgroup$








    • 7




      $begingroup$
      Newcomers to this idea should watch out also for mean absolute deviation from the mean (mean deviation, often) and median absolute deviation from the mean. I don't recall mean absolute deviation from the median, but am open to examples. The abbreviation MAD, unfortunately, has been applied variously, so trust people's code first, then their algebraic or verbal definition, but use of an abbreviation MAD only not at all. In symmetric distributions, and some others, MAD as defined here is half the interquartile range. (Punning on MAD I resist as a little too obvious.)
      $endgroup$
      – Nick Cox
      yesterday







    • 3




      $begingroup$
      Also, note that software implementations of the median absolute deviation function can scale the MAD value by a constant factor from the form presented in this answer, so that its value coincides with the standard deviation for a normal distribution.
      $endgroup$
      – EdM
      yesterday










    • $begingroup$
      @EdM Excellent point. Personally I dislike that practice unless people use some different term. It's no longer the MAD!
      $endgroup$
      – Nick Cox
      yesterday






    • 1




      $begingroup$
      @NickCox: the appeal of centring on the median is that the quantity always exists, whether or not the distribution enjoys a mean. This is the definition found in Wikipedia.
      $endgroup$
      – Xi'an
      yesterday










    • $begingroup$
      MAD is Mutually Assured Destruction
      $endgroup$
      – kjetil b halvorsen
      yesterday













    11












    11








    11





    $begingroup$

    The median absolute deviation is defined as
    $$textMAD(X) = textmedian |X-textmedian(X)|$$
    and is considered an alternative to the standard deviation. But this is not the variance. In particular, it always exists, whether or not $X$ allows for moments. For instance, the MAD of a standard Cauchy is equal to one since
    $$underbraceX-0_text0 is the median=arctan(1)/pi-arctan(-1)/pi=frac12$$






    share|cite|improve this answer











    $endgroup$



    The median absolute deviation is defined as
    $$textMAD(X) = textmedian |X-textmedian(X)|$$
    and is considered an alternative to the standard deviation. But this is not the variance. In particular, it always exists, whether or not $X$ allows for moments. For instance, the MAD of a standard Cauchy is equal to one since
    $$underbraceX-0_text0 is the median=arctan(1)/pi-arctan(-1)/pi=frac12$$







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited yesterday









    ukemi

    1053




    1053










    answered yesterday









    Xi'anXi'an

    58.9k897364




    58.9k897364







    • 7




      $begingroup$
      Newcomers to this idea should watch out also for mean absolute deviation from the mean (mean deviation, often) and median absolute deviation from the mean. I don't recall mean absolute deviation from the median, but am open to examples. The abbreviation MAD, unfortunately, has been applied variously, so trust people's code first, then their algebraic or verbal definition, but use of an abbreviation MAD only not at all. In symmetric distributions, and some others, MAD as defined here is half the interquartile range. (Punning on MAD I resist as a little too obvious.)
      $endgroup$
      – Nick Cox
      yesterday







    • 3




      $begingroup$
      Also, note that software implementations of the median absolute deviation function can scale the MAD value by a constant factor from the form presented in this answer, so that its value coincides with the standard deviation for a normal distribution.
      $endgroup$
      – EdM
      yesterday










    • $begingroup$
      @EdM Excellent point. Personally I dislike that practice unless people use some different term. It's no longer the MAD!
      $endgroup$
      – Nick Cox
      yesterday






    • 1




      $begingroup$
      @NickCox: the appeal of centring on the median is that the quantity always exists, whether or not the distribution enjoys a mean. This is the definition found in Wikipedia.
      $endgroup$
      – Xi'an
      yesterday










    • $begingroup$
      MAD is Mutually Assured Destruction
      $endgroup$
      – kjetil b halvorsen
      yesterday












    • 7




      $begingroup$
      Newcomers to this idea should watch out also for mean absolute deviation from the mean (mean deviation, often) and median absolute deviation from the mean. I don't recall mean absolute deviation from the median, but am open to examples. The abbreviation MAD, unfortunately, has been applied variously, so trust people's code first, then their algebraic or verbal definition, but use of an abbreviation MAD only not at all. In symmetric distributions, and some others, MAD as defined here is half the interquartile range. (Punning on MAD I resist as a little too obvious.)
      $endgroup$
      – Nick Cox
      yesterday







    • 3




      $begingroup$
      Also, note that software implementations of the median absolute deviation function can scale the MAD value by a constant factor from the form presented in this answer, so that its value coincides with the standard deviation for a normal distribution.
      $endgroup$
      – EdM
      yesterday










    • $begingroup$
      @EdM Excellent point. Personally I dislike that practice unless people use some different term. It's no longer the MAD!
      $endgroup$
      – Nick Cox
      yesterday






    • 1




      $begingroup$
      @NickCox: the appeal of centring on the median is that the quantity always exists, whether or not the distribution enjoys a mean. This is the definition found in Wikipedia.
      $endgroup$
      – Xi'an
      yesterday










    • $begingroup$
      MAD is Mutually Assured Destruction
      $endgroup$
      – kjetil b halvorsen
      yesterday







    7




    7




    $begingroup$
    Newcomers to this idea should watch out also for mean absolute deviation from the mean (mean deviation, often) and median absolute deviation from the mean. I don't recall mean absolute deviation from the median, but am open to examples. The abbreviation MAD, unfortunately, has been applied variously, so trust people's code first, then their algebraic or verbal definition, but use of an abbreviation MAD only not at all. In symmetric distributions, and some others, MAD as defined here is half the interquartile range. (Punning on MAD I resist as a little too obvious.)
    $endgroup$
    – Nick Cox
    yesterday





    $begingroup$
    Newcomers to this idea should watch out also for mean absolute deviation from the mean (mean deviation, often) and median absolute deviation from the mean. I don't recall mean absolute deviation from the median, but am open to examples. The abbreviation MAD, unfortunately, has been applied variously, so trust people's code first, then their algebraic or verbal definition, but use of an abbreviation MAD only not at all. In symmetric distributions, and some others, MAD as defined here is half the interquartile range. (Punning on MAD I resist as a little too obvious.)
    $endgroup$
    – Nick Cox
    yesterday





    3




    3




    $begingroup$
    Also, note that software implementations of the median absolute deviation function can scale the MAD value by a constant factor from the form presented in this answer, so that its value coincides with the standard deviation for a normal distribution.
    $endgroup$
    – EdM
    yesterday




    $begingroup$
    Also, note that software implementations of the median absolute deviation function can scale the MAD value by a constant factor from the form presented in this answer, so that its value coincides with the standard deviation for a normal distribution.
    $endgroup$
    – EdM
    yesterday












    $begingroup$
    @EdM Excellent point. Personally I dislike that practice unless people use some different term. It's no longer the MAD!
    $endgroup$
    – Nick Cox
    yesterday




    $begingroup$
    @EdM Excellent point. Personally I dislike that practice unless people use some different term. It's no longer the MAD!
    $endgroup$
    – Nick Cox
    yesterday




    1




    1




    $begingroup$
    @NickCox: the appeal of centring on the median is that the quantity always exists, whether or not the distribution enjoys a mean. This is the definition found in Wikipedia.
    $endgroup$
    – Xi'an
    yesterday




    $begingroup$
    @NickCox: the appeal of centring on the median is that the quantity always exists, whether or not the distribution enjoys a mean. This is the definition found in Wikipedia.
    $endgroup$
    – Xi'an
    yesterday












    $begingroup$
    MAD is Mutually Assured Destruction
    $endgroup$
    – kjetil b halvorsen
    yesterday




    $begingroup$
    MAD is Mutually Assured Destruction
    $endgroup$
    – kjetil b halvorsen
    yesterday













    3












    $begingroup$

    There is already a solution for this question on Math.stackexchange:



    I summarize the answers:



    1. You can use that the variance is $overlinex^2 - overline x^2$, which takes only one pass (computing the mean and the mean of the squares simultaneously), but can be more prone to roundoff error if the variance is small compared with the mean.


    1. How about sum of squared pairwise differences ? Indeed, you can check by direct computation that

    $$
    2v_X = frac1n(n-1)sum_1 le i < j le n(x_i - x_j)^2.
    $$




    1. The sample variance without mean is calculated as:
      $$ v_X=frac1n-1left [ sum_i=1^nx_i^2-frac1nleft ( sum_i=1^nx_i right ) ^2right ] $$





    share|cite|improve this answer











    $endgroup$

















      3












      $begingroup$

      There is already a solution for this question on Math.stackexchange:



      I summarize the answers:



      1. You can use that the variance is $overlinex^2 - overline x^2$, which takes only one pass (computing the mean and the mean of the squares simultaneously), but can be more prone to roundoff error if the variance is small compared with the mean.


      1. How about sum of squared pairwise differences ? Indeed, you can check by direct computation that

      $$
      2v_X = frac1n(n-1)sum_1 le i < j le n(x_i - x_j)^2.
      $$




      1. The sample variance without mean is calculated as:
        $$ v_X=frac1n-1left [ sum_i=1^nx_i^2-frac1nleft ( sum_i=1^nx_i right ) ^2right ] $$





      share|cite|improve this answer











      $endgroup$















        3












        3








        3





        $begingroup$

        There is already a solution for this question on Math.stackexchange:



        I summarize the answers:



        1. You can use that the variance is $overlinex^2 - overline x^2$, which takes only one pass (computing the mean and the mean of the squares simultaneously), but can be more prone to roundoff error if the variance is small compared with the mean.


        1. How about sum of squared pairwise differences ? Indeed, you can check by direct computation that

        $$
        2v_X = frac1n(n-1)sum_1 le i < j le n(x_i - x_j)^2.
        $$




        1. The sample variance without mean is calculated as:
          $$ v_X=frac1n-1left [ sum_i=1^nx_i^2-frac1nleft ( sum_i=1^nx_i right ) ^2right ] $$





        share|cite|improve this answer











        $endgroup$



        There is already a solution for this question on Math.stackexchange:



        I summarize the answers:



        1. You can use that the variance is $overlinex^2 - overline x^2$, which takes only one pass (computing the mean and the mean of the squares simultaneously), but can be more prone to roundoff error if the variance is small compared with the mean.


        1. How about sum of squared pairwise differences ? Indeed, you can check by direct computation that

        $$
        2v_X = frac1n(n-1)sum_1 le i < j le n(x_i - x_j)^2.
        $$




        1. The sample variance without mean is calculated as:
          $$ v_X=frac1n-1left [ sum_i=1^nx_i^2-frac1nleft ( sum_i=1^nx_i right ) ^2right ] $$






        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited yesterday

























        answered yesterday









        FerdiFerdi

        3,86742355




        3,86742355



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Cross Validated!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstats.stackexchange.com%2fquestions%2f399445%2fcould-you-calculate-the-variance-of-data-using-the-median-or-something-other-tha%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

            Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

            Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.