this post was submitted on 11 Oct 2023
8 points (100.0% liked)

The R Project for Statistical Computing

21 readers
1 users here now

Everything about the R programming language.

Rules

  1. No bigotry

Check out

founded 4 years ago
MODERATORS
 

P values?
Do they account solely for sampling error (therefore irrelevant when population data is available) OR do they serve to asses the likelihood of something being due to chance in other ways (therefore relevant for studies with population data)?

Any links or literature are welcome :)

@rstats @phdstudents @datascience @socialscience @org_studies

top 10 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago (1 children)

It really depends on what you mean by "population data". If you mean that you have data on every person (or object, or whatever your research is about) in the population you are interested about, then the is no need for p-values. The mean you calculate IS the actual population mean and there is no room for error (assuming each measurement is correct). If you just mean "a big dataset from the population" the inference statistics can still make sense.

One thing to consider is that mathematically a t- or z-test always assumes that the population is infinitely large (the confidence interval reaches zero at infinity), while in reality, as described above, your confidence interval should already be zero when your sample size is equal to the actual population size.

Hope that helps. ;)

[–] [email protected] 0 points 1 year ago (2 children)

@arandomthought
I read some similar comments online, but there were also positions contrary, but I think this makes sense.

And I didn't know about the infinite population thing, that is interesting.

If I may a follow up: despite p values, regression models and correlation tests can still be interesting to apply to census data to measure effect sizes and such, right?

[–] sailingbythelee 3 points 1 year ago (2 children)

Look up super-population theory. It is based on the idea that even a perfect census is only a point-in-time estimate of the theoretical "super-population" that the point-in-time population is derived from. In large, real world populations, people are constantly coming and going. If we assume that this coming and going is random and the relevant super-population parameters do not change over time, it is easy to see a census population as a sample instance from a larger super-population. While somewhat theoretical, this is a useful model when estimating relationships between variables in census data and leads to the use of standard frequentist confidence intervals and, yes, even p-values.

[–] [email protected] 1 points 1 year ago

@sailingbythelee I've seen this argument around, but not with reference to a formalized theory. Now I've got something to look up and see if it makes sense for my research, thank you so much!

[–] [email protected] 1 points 1 year ago

That's a very cool way to look at it. You're basically taking "a sample in time" and will never be able to sample across time (assuming we don't invent time machines... ever), so you will always be looking at a super-population that is technically infinite. =)

[–] [email protected] 1 points 1 year ago (1 children)

Sure, even if you had all the data on your whole population (and therefore p-values "wouldn't make sense") a regression could still tell you something useful about that population. It can for example let you estimate how strongly variable X influences variable Y (or at least how strongly they are related. Causality is a separate issue), or what value of Y we would expect for someone new in the population with a certain value of X.

[–] [email protected] 1 points 1 year ago

@arandomthought that's very helpful, thank you so much!

[–] [email protected] 1 points 1 year ago (1 children)

@Jey_snow @rstats @phdstudents @datascience @socialscience @org_studies

P-values can be generated from various statistical tests, so a P-value gives no indication of whether the appropriate test was used to analyze the data.

Here are a couple of papers on P-values:

https://pubmed.ncbi.nlm.nih.gov/29566133

https://pubmed.ncbi.nlm.nih.gov/26545564

[–] [email protected] 1 points 1 year ago (1 children)

@MarcusMuench @rstats @phdstudents @datascience @socialscience @org_studies
According to the second article:
"...A p value should be interpreted in terms of what would happen if you repeated the measurement multiple times with different samples..."
If I have a census, I would expect zero difference for repeating measurements due to random sampling. Therefore p values are irrelevant for census data.

Thanks for the references!

[–] [email protected] 1 points 1 year ago

Careful there. If you had a census of ALL the people in your population then you would not expect any variation, as you wrote. But not because of random sampling, but because next time you sample, you would just sample the exact same people (your whole population). And since the sample stays the same, so do the numbers.

If you however truly took a random sample of the population, then the next time you take a new random sample you ask different people and would therefore also get slightly different numbers. And there p-values are useful, because they are based on exactly this question of "well what if I took another random sample, and then another, and then another and so on".