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

Clash 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.
hypothesis-testing mean sample population
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.
add a comment |Â
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.
hypothesis-testing mean sample population
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
add a comment |Â
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.
hypothesis-testing mean sample population
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
hypothesis-testing mean sample population
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.
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
add a comment |Â
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
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
3
down vote
accepted
This seems completely reasonable to me. It is what I would have done.
add a comment |Â
up vote
0
down vote
It depends on what you're really trying to do.
One thing that immediately comes to mind is that hotel prices depend heavily on location. So the price of a hotel room in NYC is apt to be much higher than the price of a hotel in Bismark, ND.
So a better statistic might be to do a paired T test, where the price for each of your hotels is compared to a comparable hotel in the same market place.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
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.
add a comment |Â
up vote
3
down vote
accepted
This seems completely reasonable to me. It is what I would have done.
add a comment |Â
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.
This seems completely reasonable to me. It is what I would have done.
answered 4 hours ago
Peter Flomâ¦
72.8k11103197
72.8k11103197
add a comment |Â
add a comment |Â
up vote
0
down vote
It depends on what you're really trying to do.
One thing that immediately comes to mind is that hotel prices depend heavily on location. So the price of a hotel room in NYC is apt to be much higher than the price of a hotel in Bismark, ND.
So a better statistic might be to do a paired T test, where the price for each of your hotels is compared to a comparable hotel in the same market place.
add a comment |Â
up vote
0
down vote
It depends on what you're really trying to do.
One thing that immediately comes to mind is that hotel prices depend heavily on location. So the price of a hotel room in NYC is apt to be much higher than the price of a hotel in Bismark, ND.
So a better statistic might be to do a paired T test, where the price for each of your hotels is compared to a comparable hotel in the same market place.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
It depends on what you're really trying to do.
One thing that immediately comes to mind is that hotel prices depend heavily on location. So the price of a hotel room in NYC is apt to be much higher than the price of a hotel in Bismark, ND.
So a better statistic might be to do a paired T test, where the price for each of your hotels is compared to a comparable hotel in the same market place.
It depends on what you're really trying to do.
One thing that immediately comes to mind is that hotel prices depend heavily on location. So the price of a hotel room in NYC is apt to be much higher than the price of a hotel in Bismark, ND.
So a better statistic might be to do a paired T test, where the price for each of your hotels is compared to a comparable hotel in the same market place.
answered 31 secs ago
MaxW
25027
25027
add a comment |Â
add a comment |Â
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.
tuspazio is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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