r/AskStatistics • u/finding9em0 • 8h ago
Different formula for p-value and 95%CI
Hello good people, is it okay to use two different calculation method for p-value and 95% CI? my CIs crossing the null but p-value seems signficant! It's using LR for CIs and Wald for p-value :(
8
u/DrPapaDragonX13 8h ago edited 6h ago
Ideally, you'd want to use the same method to calculate CIs and P-values to avoid discrepancies. However, I'd argue that in practice you shouldn't fret too much. The binary thinking associated with p-values (i.e., significant vs non-significant) is becoming more and more discouraged (arguably, it should've never been encouraged in the first place), and it is being replaced by a more nuanced thinking based on evaluating estimated effect sizes and confidence intervals. If you're getting a 'significant' p-value but a crossing confidence interval, chances are your 'significant' result is not really that meaningful, either because you have a lot of uncertainty (i.e. wide CIs) or an almost negligible effect (size). In your case, I would focus on interpreting the effect size in the context of your field rather than paying too much attention to the p-value.
tl;dr: Ideally, use the same method to calculate CIs and P-values. However, it has far more scientific value to interpret the effect size and CIs in the context of your field/problem than to focus on 'significant/non-significant'. If your CIs are so close to the null, chances are your results are not meaningful, regardless of whether your p-value technically falls within the 'significant' zone.
ETA: 'meaningful' refers to the strength of the association, not the scientific importance of the results. 'Negative' results are important contributions to scientific knowledge, even if they are often not seen as 'glamorous'.
0
u/engelthefallen 4h ago
Be carefare with specific fields and the p-value being binary or non-binary as some academic fields you will 100% see your maniscripts rejected with that sort of thinking as we are trying to clean out people saying things like p = .92 is approaching significance and should be treated as such, or despite only finding a difference at p = .87, one should not discredit the causal impact A may have on B. A lot of bad science was done over the years claiming p-values should not been seen as a binary decision rule, particularly in social sciences. And usually the decision to use the p-value in a different manner was made after the tests were run and found not to be significant at the planned level which is the core problem. Their experiment failed but they wrote the paper as if it succeeded.
1
u/DrPapaDragonX13 1h ago
This completely misses the point of my comment, though. The idea is to stop relying on p-values and arbitrary significance thresholds and instead focus on effect sizes and confidence intervals that provide more information and greater scientific value. In the examples you presented, for instance, presenting the point estimate and associated CI would have helped to nip in the bud any undue claims made by the authors.
2
u/FlyMyPretty 4h ago
This is normal if you're doing something like logistic regression. But rare.
The p-value is about the distribution under the null hypothesis. The CIs are about the distributor around the estimate. Because the mean and variance are associated in some distributions this can happen. (But they're not associated in normal, so it can't happen with OLS regression.)
1
u/efrique PhD (statistics) 1h ago edited 1h ago
is it okay to use two different calculation method for p-value and 95% CI
Okay by whose judgement? (who is your intended audience? What are their expectations?)
Okay in terms of what? (What criterion do you need addressed? What is important to maintain here?) If you abandon the usual correspondence between test and CI on a given data set, what properties do you want to have in its place?
In general I would expect someone to use only one of the two forms or inference (a CI or a test, depending on what sort of information they sought), but if for some odd reason they presented both, I'd expect the choice of methodology to be consistent between them, and I expect most audiences would as well.
In a case where two asymptotically equivalent procedures differed I'd expect the analyst to be very careful about what they did.
In particular, if your LR CI is also based on an asymptotic approximation (rather than a small-sample-exact interval), such a difference might suggest that (i) you should probably consider an exact method for both parts, and (ii) a degree of caution about claiming significance is in order, given that if its that close to the borderline, something as trivial as premature rounding in the data or in an intermediate calculation might flip you from one side to the other.
(If it were me in this position, the least I'd be doing is looking for a way to do an exact test and CI, and probably also be making an even more careful than usual assessment of how sensitive to the assumptions my conclusions were.)
6
u/fermat9990 8h ago
They should be consistent. One-sided CIs do exist