How do I compare means when I have a sample and the whole population?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
2
down vote

favorite












Scenario



I have the avg room price for all the hotels of my chain (32 observations of the 32 hotels). Then I have the avg room price for a sample of competitors (60 observations taken from a larger population).



Problem



I would like to understand whether the avg room price of the hotels of my chain is equal to that of the competitors



Proposed solution



First, I computed the average room price across all the hotels of my chain $p_a$. Since the entire population is known, I would say that there is no uncertainty here, this is the exact average.



Then I computed the average room price of the sample of competitors and the related std deviation ($barp_c$ and $tildesigma_c$).



I performed a hypothesis testing with the null $H_0: p_c = p_a$ against the alternative $H_1: p_c neq p_a$. The test statistic is then ($n=60$):
$$
t = fracbarp_c-p_afractildesigma_csqrtn
$$

If the associated p-value is sufficently low, I reject the null hypothesis.



Basically here I'm considering that the average room price of the hotels of my chain is known and well-established, hence I'm doing the hypothesis testing for a single population mean (the competitors' population). Do you think this is the right approach or shall I test a hypothesis about two population mean (this is the alternative that comes to my mind)



Thanks for any help, T.










share|cite|improve this question







New contributor




tuspazio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1




    The hypothesis testing for a single population mean is good. Need to pay attention to the calculation of std deviation if the total number of hotels from competitors is limited, for example less than 500.
    – a_statistician
    2 hours ago










  • Thanks a lot, @a_statistician. What should I exactly pay attention to if the population is limited? How does this affect the computation of the std deviation? Thx, T.
    – tuspazio
    2 hours ago










  • It is called The finite population correction. See eq. 3.19 on page 3-15 of ph.ucla.edu/epi/rapidsurveys/RScourse/RSbook_ch3.pdf
    – a_statistician
    2 hours ago










  • Ah understood, thanks for the suggestion!
    – tuspazio
    1 hour ago
















up vote
2
down vote

favorite












Scenario



I have the avg room price for all the hotels of my chain (32 observations of the 32 hotels). Then I have the avg room price for a sample of competitors (60 observations taken from a larger population).



Problem



I would like to understand whether the avg room price of the hotels of my chain is equal to that of the competitors



Proposed solution



First, I computed the average room price across all the hotels of my chain $p_a$. Since the entire population is known, I would say that there is no uncertainty here, this is the exact average.



Then I computed the average room price of the sample of competitors and the related std deviation ($barp_c$ and $tildesigma_c$).



I performed a hypothesis testing with the null $H_0: p_c = p_a$ against the alternative $H_1: p_c neq p_a$. The test statistic is then ($n=60$):
$$
t = fracbarp_c-p_afractildesigma_csqrtn
$$

If the associated p-value is sufficently low, I reject the null hypothesis.



Basically here I'm considering that the average room price of the hotels of my chain is known and well-established, hence I'm doing the hypothesis testing for a single population mean (the competitors' population). Do you think this is the right approach or shall I test a hypothesis about two population mean (this is the alternative that comes to my mind)



Thanks for any help, T.










share|cite|improve this question







New contributor




tuspazio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1




    The hypothesis testing for a single population mean is good. Need to pay attention to the calculation of std deviation if the total number of hotels from competitors is limited, for example less than 500.
    – a_statistician
    2 hours ago










  • Thanks a lot, @a_statistician. What should I exactly pay attention to if the population is limited? How does this affect the computation of the std deviation? Thx, T.
    – tuspazio
    2 hours ago










  • It is called The finite population correction. See eq. 3.19 on page 3-15 of ph.ucla.edu/epi/rapidsurveys/RScourse/RSbook_ch3.pdf
    – a_statistician
    2 hours ago










  • Ah understood, thanks for the suggestion!
    – tuspazio
    1 hour ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











Scenario



I have the avg room price for all the hotels of my chain (32 observations of the 32 hotels). Then I have the avg room price for a sample of competitors (60 observations taken from a larger population).



Problem



I would like to understand whether the avg room price of the hotels of my chain is equal to that of the competitors



Proposed solution



First, I computed the average room price across all the hotels of my chain $p_a$. Since the entire population is known, I would say that there is no uncertainty here, this is the exact average.



Then I computed the average room price of the sample of competitors and the related std deviation ($barp_c$ and $tildesigma_c$).



I performed a hypothesis testing with the null $H_0: p_c = p_a$ against the alternative $H_1: p_c neq p_a$. The test statistic is then ($n=60$):
$$
t = fracbarp_c-p_afractildesigma_csqrtn
$$

If the associated p-value is sufficently low, I reject the null hypothesis.



Basically here I'm considering that the average room price of the hotels of my chain is known and well-established, hence I'm doing the hypothesis testing for a single population mean (the competitors' population). Do you think this is the right approach or shall I test a hypothesis about two population mean (this is the alternative that comes to my mind)



Thanks for any help, T.










share|cite|improve this question







New contributor




tuspazio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Scenario



I have the avg room price for all the hotels of my chain (32 observations of the 32 hotels). Then I have the avg room price for a sample of competitors (60 observations taken from a larger population).



Problem



I would like to understand whether the avg room price of the hotels of my chain is equal to that of the competitors



Proposed solution



First, I computed the average room price across all the hotels of my chain $p_a$. Since the entire population is known, I would say that there is no uncertainty here, this is the exact average.



Then I computed the average room price of the sample of competitors and the related std deviation ($barp_c$ and $tildesigma_c$).



I performed a hypothesis testing with the null $H_0: p_c = p_a$ against the alternative $H_1: p_c neq p_a$. The test statistic is then ($n=60$):
$$
t = fracbarp_c-p_afractildesigma_csqrtn
$$

If the associated p-value is sufficently low, I reject the null hypothesis.



Basically here I'm considering that the average room price of the hotels of my chain is known and well-established, hence I'm doing the hypothesis testing for a single population mean (the competitors' population). Do you think this is the right approach or shall I test a hypothesis about two population mean (this is the alternative that comes to my mind)



Thanks for any help, T.







hypothesis-testing mean sample population






share|cite|improve this question







New contributor




tuspazio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|cite|improve this question







New contributor




tuspazio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|cite|improve this question




share|cite|improve this question






New contributor




tuspazio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 5 hours ago









tuspazio

1133




1133




New contributor




tuspazio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





tuspazio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






tuspazio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 1




    The hypothesis testing for a single population mean is good. Need to pay attention to the calculation of std deviation if the total number of hotels from competitors is limited, for example less than 500.
    – a_statistician
    2 hours ago










  • Thanks a lot, @a_statistician. What should I exactly pay attention to if the population is limited? How does this affect the computation of the std deviation? Thx, T.
    – tuspazio
    2 hours ago










  • It is called The finite population correction. See eq. 3.19 on page 3-15 of ph.ucla.edu/epi/rapidsurveys/RScourse/RSbook_ch3.pdf
    – a_statistician
    2 hours ago










  • Ah understood, thanks for the suggestion!
    – tuspazio
    1 hour ago












  • 1




    The hypothesis testing for a single population mean is good. Need to pay attention to the calculation of std deviation if the total number of hotels from competitors is limited, for example less than 500.
    – a_statistician
    2 hours ago










  • Thanks a lot, @a_statistician. What should I exactly pay attention to if the population is limited? How does this affect the computation of the std deviation? Thx, T.
    – tuspazio
    2 hours ago










  • It is called The finite population correction. See eq. 3.19 on page 3-15 of ph.ucla.edu/epi/rapidsurveys/RScourse/RSbook_ch3.pdf
    – a_statistician
    2 hours ago










  • Ah understood, thanks for the suggestion!
    – tuspazio
    1 hour ago







1




1




The hypothesis testing for a single population mean is good. Need to pay attention to the calculation of std deviation if the total number of hotels from competitors is limited, for example less than 500.
– a_statistician
2 hours ago




The hypothesis testing for a single population mean is good. Need to pay attention to the calculation of std deviation if the total number of hotels from competitors is limited, for example less than 500.
– a_statistician
2 hours ago












Thanks a lot, @a_statistician. What should I exactly pay attention to if the population is limited? How does this affect the computation of the std deviation? Thx, T.
– tuspazio
2 hours ago




Thanks a lot, @a_statistician. What should I exactly pay attention to if the population is limited? How does this affect the computation of the std deviation? Thx, T.
– tuspazio
2 hours ago












It is called The finite population correction. See eq. 3.19 on page 3-15 of ph.ucla.edu/epi/rapidsurveys/RScourse/RSbook_ch3.pdf
– a_statistician
2 hours ago




It is called The finite population correction. See eq. 3.19 on page 3-15 of ph.ucla.edu/epi/rapidsurveys/RScourse/RSbook_ch3.pdf
– a_statistician
2 hours ago












Ah understood, thanks for the suggestion!
– tuspazio
1 hour ago




Ah understood, thanks for the suggestion!
– tuspazio
1 hour ago










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










This seems completely reasonable to me. It is what I would have done.






share|cite|improve this answer




















    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',
    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
    );



    );






    tuspazio is a new contributor. Be nice, and check out our Code of Conduct.









     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstats.stackexchange.com%2fquestions%2f375156%2fhow-do-i-compare-means-when-i-have-a-sample-and-the-whole-population%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote



    accepted










    This seems completely reasonable to me. It is what I would have done.






    share|cite|improve this answer
























      up vote
      3
      down vote



      accepted










      This seems completely reasonable to me. It is what I would have done.






      share|cite|improve this answer






















        up vote
        3
        down vote



        accepted







        up vote
        3
        down vote



        accepted






        This seems completely reasonable to me. It is what I would have done.






        share|cite|improve this answer












        This seems completely reasonable to me. It is what I would have done.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered 4 hours ago









        Peter Flom♦

        72.8k11103197




        72.8k11103197




















            tuspazio is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            tuspazio is a new contributor. Be nice, and check out our Code of Conduct.












            tuspazio is a new contributor. Be nice, and check out our Code of Conduct.











            tuspazio is a new contributor. Be nice, and check out our Code of Conduct.













             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstats.stackexchange.com%2fquestions%2f375156%2fhow-do-i-compare-means-when-i-have-a-sample-and-the-whole-population%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            Long meetings (6-7 hours a day): Being “babysat” by supervisor

            Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

            Confectionery