Calculating the variance of sample, knowing the mean of population












4












$begingroup$


Suppose that I somehow know the mean of the population. And I want to calculate the variance of a sample.
Should I subtract population mean or sample mean?
Is there any situation in which I should use population mean?










share|cite|improve this question











$endgroup$












  • $begingroup$
    I think the question is somewhat unclear. Do you want to calculate the variance in the sample? Do you want to estimate the expected variance of the sample mean (i.e. variance in the mean if you repeated the sampling procedure)? Or do you want to obtain the best possible estimate for the population variance given your observed sample and prior knowledge of the population mean?
    $endgroup$
    – Jacob Socolar
    Dec 25 '18 at 15:29










  • $begingroup$
    I want to calculate the variance in the sample with respect to the population mean. I am considering a situation in which sample mean is very low, while population mean is very high. So, I thought that if I used population mean, I may conclude or have and indicator that the sample is abnormal, by comparing using sample mean (this is the objective). Honestly I am not sure if this approach is "good". Maybe I should look at the means only, keeping things simple.
    $endgroup$
    – Ali Slais
    Dec 26 '18 at 6:23


















4












$begingroup$


Suppose that I somehow know the mean of the population. And I want to calculate the variance of a sample.
Should I subtract population mean or sample mean?
Is there any situation in which I should use population mean?










share|cite|improve this question











$endgroup$












  • $begingroup$
    I think the question is somewhat unclear. Do you want to calculate the variance in the sample? Do you want to estimate the expected variance of the sample mean (i.e. variance in the mean if you repeated the sampling procedure)? Or do you want to obtain the best possible estimate for the population variance given your observed sample and prior knowledge of the population mean?
    $endgroup$
    – Jacob Socolar
    Dec 25 '18 at 15:29










  • $begingroup$
    I want to calculate the variance in the sample with respect to the population mean. I am considering a situation in which sample mean is very low, while population mean is very high. So, I thought that if I used population mean, I may conclude or have and indicator that the sample is abnormal, by comparing using sample mean (this is the objective). Honestly I am not sure if this approach is "good". Maybe I should look at the means only, keeping things simple.
    $endgroup$
    – Ali Slais
    Dec 26 '18 at 6:23
















4












4








4





$begingroup$


Suppose that I somehow know the mean of the population. And I want to calculate the variance of a sample.
Should I subtract population mean or sample mean?
Is there any situation in which I should use population mean?










share|cite|improve this question











$endgroup$




Suppose that I somehow know the mean of the population. And I want to calculate the variance of a sample.
Should I subtract population mean or sample mean?
Is there any situation in which I should use population mean?







variance mean sample average population






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 25 '18 at 11:46







Ali Slais

















asked Dec 25 '18 at 8:26









Ali SlaisAli Slais

233




233












  • $begingroup$
    I think the question is somewhat unclear. Do you want to calculate the variance in the sample? Do you want to estimate the expected variance of the sample mean (i.e. variance in the mean if you repeated the sampling procedure)? Or do you want to obtain the best possible estimate for the population variance given your observed sample and prior knowledge of the population mean?
    $endgroup$
    – Jacob Socolar
    Dec 25 '18 at 15:29










  • $begingroup$
    I want to calculate the variance in the sample with respect to the population mean. I am considering a situation in which sample mean is very low, while population mean is very high. So, I thought that if I used population mean, I may conclude or have and indicator that the sample is abnormal, by comparing using sample mean (this is the objective). Honestly I am not sure if this approach is "good". Maybe I should look at the means only, keeping things simple.
    $endgroup$
    – Ali Slais
    Dec 26 '18 at 6:23




















  • $begingroup$
    I think the question is somewhat unclear. Do you want to calculate the variance in the sample? Do you want to estimate the expected variance of the sample mean (i.e. variance in the mean if you repeated the sampling procedure)? Or do you want to obtain the best possible estimate for the population variance given your observed sample and prior knowledge of the population mean?
    $endgroup$
    – Jacob Socolar
    Dec 25 '18 at 15:29










  • $begingroup$
    I want to calculate the variance in the sample with respect to the population mean. I am considering a situation in which sample mean is very low, while population mean is very high. So, I thought that if I used population mean, I may conclude or have and indicator that the sample is abnormal, by comparing using sample mean (this is the objective). Honestly I am not sure if this approach is "good". Maybe I should look at the means only, keeping things simple.
    $endgroup$
    – Ali Slais
    Dec 26 '18 at 6:23


















$begingroup$
I think the question is somewhat unclear. Do you want to calculate the variance in the sample? Do you want to estimate the expected variance of the sample mean (i.e. variance in the mean if you repeated the sampling procedure)? Or do you want to obtain the best possible estimate for the population variance given your observed sample and prior knowledge of the population mean?
$endgroup$
– Jacob Socolar
Dec 25 '18 at 15:29




$begingroup$
I think the question is somewhat unclear. Do you want to calculate the variance in the sample? Do you want to estimate the expected variance of the sample mean (i.e. variance in the mean if you repeated the sampling procedure)? Or do you want to obtain the best possible estimate for the population variance given your observed sample and prior knowledge of the population mean?
$endgroup$
– Jacob Socolar
Dec 25 '18 at 15:29












$begingroup$
I want to calculate the variance in the sample with respect to the population mean. I am considering a situation in which sample mean is very low, while population mean is very high. So, I thought that if I used population mean, I may conclude or have and indicator that the sample is abnormal, by comparing using sample mean (this is the objective). Honestly I am not sure if this approach is "good". Maybe I should look at the means only, keeping things simple.
$endgroup$
– Ali Slais
Dec 26 '18 at 6:23






$begingroup$
I want to calculate the variance in the sample with respect to the population mean. I am considering a situation in which sample mean is very low, while population mean is very high. So, I thought that if I used population mean, I may conclude or have and indicator that the sample is abnormal, by comparing using sample mean (this is the objective). Honestly I am not sure if this approach is "good". Maybe I should look at the means only, keeping things simple.
$endgroup$
– Ali Slais
Dec 26 '18 at 6:23












2 Answers
2






active

oldest

votes


















3












$begingroup$

No one would like to use sample estimator, when population parameter is known. So, if population mean is given, then use population mean, but then use $n$ in denominators instead of $n-1$ because no degree of freedom will be lost in this case.



So, sample variance (when population mean is not known)
$$s^2 = frac{1}{n-1}sum_{i = 1}^{n}left(X_i - bar X right)^2$$



So, sample variance (when population mean is known)
$$s^2 = frac{1}{n}sum_{i = 1}^{n}left(X_i - mu right)^2$$
where, $mu$ is population mean.






share|cite|improve this answer











$endgroup$





















    0












    $begingroup$

    The true answer is vague: it depends on your prior model of the data. If you assumed the data to be normally distributed with a known mean, you could use the gamma distribution as the conjugate prior for Bayesian inference. Maybe use moment-matching estimates rather than using optimizing procedures for simplicity.



    The Bayesian approach might sound like overkill in such a simple context, but frequentist statistics depend a lot more on best-practices-like procedures that don't extend in a simple fashion to nonstandard problems like the one you're posing.






    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%2f384415%2fcalculating-the-variance-of-sample-knowing-the-mean-of-population%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









      3












      $begingroup$

      No one would like to use sample estimator, when population parameter is known. So, if population mean is given, then use population mean, but then use $n$ in denominators instead of $n-1$ because no degree of freedom will be lost in this case.



      So, sample variance (when population mean is not known)
      $$s^2 = frac{1}{n-1}sum_{i = 1}^{n}left(X_i - bar X right)^2$$



      So, sample variance (when population mean is known)
      $$s^2 = frac{1}{n}sum_{i = 1}^{n}left(X_i - mu right)^2$$
      where, $mu$ is population mean.






      share|cite|improve this answer











      $endgroup$


















        3












        $begingroup$

        No one would like to use sample estimator, when population parameter is known. So, if population mean is given, then use population mean, but then use $n$ in denominators instead of $n-1$ because no degree of freedom will be lost in this case.



        So, sample variance (when population mean is not known)
        $$s^2 = frac{1}{n-1}sum_{i = 1}^{n}left(X_i - bar X right)^2$$



        So, sample variance (when population mean is known)
        $$s^2 = frac{1}{n}sum_{i = 1}^{n}left(X_i - mu right)^2$$
        where, $mu$ is population mean.






        share|cite|improve this answer











        $endgroup$
















          3












          3








          3





          $begingroup$

          No one would like to use sample estimator, when population parameter is known. So, if population mean is given, then use population mean, but then use $n$ in denominators instead of $n-1$ because no degree of freedom will be lost in this case.



          So, sample variance (when population mean is not known)
          $$s^2 = frac{1}{n-1}sum_{i = 1}^{n}left(X_i - bar X right)^2$$



          So, sample variance (when population mean is known)
          $$s^2 = frac{1}{n}sum_{i = 1}^{n}left(X_i - mu right)^2$$
          where, $mu$ is population mean.






          share|cite|improve this answer











          $endgroup$



          No one would like to use sample estimator, when population parameter is known. So, if population mean is given, then use population mean, but then use $n$ in denominators instead of $n-1$ because no degree of freedom will be lost in this case.



          So, sample variance (when population mean is not known)
          $$s^2 = frac{1}{n-1}sum_{i = 1}^{n}left(X_i - bar X right)^2$$



          So, sample variance (when population mean is known)
          $$s^2 = frac{1}{n}sum_{i = 1}^{n}left(X_i - mu right)^2$$
          where, $mu$ is population mean.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Dec 25 '18 at 14:04

























          answered Dec 25 '18 at 10:41









          NeerajNeeraj

          1,206819




          1,206819

























              0












              $begingroup$

              The true answer is vague: it depends on your prior model of the data. If you assumed the data to be normally distributed with a known mean, you could use the gamma distribution as the conjugate prior for Bayesian inference. Maybe use moment-matching estimates rather than using optimizing procedures for simplicity.



              The Bayesian approach might sound like overkill in such a simple context, but frequentist statistics depend a lot more on best-practices-like procedures that don't extend in a simple fashion to nonstandard problems like the one you're posing.






              share|cite|improve this answer









              $endgroup$


















                0












                $begingroup$

                The true answer is vague: it depends on your prior model of the data. If you assumed the data to be normally distributed with a known mean, you could use the gamma distribution as the conjugate prior for Bayesian inference. Maybe use moment-matching estimates rather than using optimizing procedures for simplicity.



                The Bayesian approach might sound like overkill in such a simple context, but frequentist statistics depend a lot more on best-practices-like procedures that don't extend in a simple fashion to nonstandard problems like the one you're posing.






                share|cite|improve this answer









                $endgroup$
















                  0












                  0








                  0





                  $begingroup$

                  The true answer is vague: it depends on your prior model of the data. If you assumed the data to be normally distributed with a known mean, you could use the gamma distribution as the conjugate prior for Bayesian inference. Maybe use moment-matching estimates rather than using optimizing procedures for simplicity.



                  The Bayesian approach might sound like overkill in such a simple context, but frequentist statistics depend a lot more on best-practices-like procedures that don't extend in a simple fashion to nonstandard problems like the one you're posing.






                  share|cite|improve this answer









                  $endgroup$



                  The true answer is vague: it depends on your prior model of the data. If you assumed the data to be normally distributed with a known mean, you could use the gamma distribution as the conjugate prior for Bayesian inference. Maybe use moment-matching estimates rather than using optimizing procedures for simplicity.



                  The Bayesian approach might sound like overkill in such a simple context, but frequentist statistics depend a lot more on best-practices-like procedures that don't extend in a simple fashion to nonstandard problems like the one you're posing.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Dec 25 '18 at 11:42









                  user8948user8948

                  1205




                  1205






























                      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%2f384415%2fcalculating-the-variance-of-sample-knowing-the-mean-of-population%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

                      Wiesbaden

                      Marschland

                      Dieringhausen