# What is the link (discrepancy?) between these PDF/CDF and p-value distributions?

I have created a mixed distribution model comprising 80% $H_0$ plus 20% $H_1$ to illustrate the link between the expected proportions of true and false positives and negatives in the PDF, CDF and p-value distributions.

When the effect size is small (25% increase in expected correlations vs $H_0$), everything looks consistent:

However, when I increase the effect size to 75% by separating $H_1$ from $H_0$, things don't seem to add up because I get apparent false negatives (grey area) in the p-value distribution, which are no longer there in the PDF and CDF distributions:

Conversely, when I reduce the effect size to 0% (so that $H_1$ = $H_0$), the grey area disappears altogether from the p-value distribution, whereas it is even more prominent in the PDF and CDF distributions:

Now, I'm sure I have done all the maths right and the actual distribution curves are correct and consistent, but perhaps I am misinterpreting the areas between these curves?

What do these four different coloured areas mean in each chart, and how do they relate to the expected proportions of true and false positives and negatives?

How can I show the link between these proportions in the three distributions, and why don't they correspond with each other as shown?

• Could you maybe explain what you were trying to do, mathematically, with those charts? I think I get the first two, but the one on the right has me scratching my head a little bit. Writing it out explicitly also might help diagnosing any issues in the logic. Also, what software did you use to make them? If that's the default styling, it's very handsome Apr 6 '16 at 12:20
• Hi ssdecontrol. Yes, essentially I created this mixed distribution model to understand and illustrate the mathematical link between all these elements (PDF, CDF, p-values, alpha, effect size, as well as the expected proportions of true and false positives and negatives - both for my own benefit, and for the benefit of my colleagues (once I can reconcile this problem). I'm trying to illustrate these relationships graphically, because pictures are more intuitive for myself and other non-statisticians to understand. Apr 6 '16 at 12:25
• Ah, I understand the problem now. What happens when you run a simple cross-tab of the possibilities? It would be a good demonstration anyway. But the fact that charts six and four disagree so strongly suggests a coding error, and looking at a simple cross tab might help open up the guts of the issue Apr 6 '16 at 12:30
• In principle, since you generated this data, you ought to know approximately how many should fall in each category Apr 6 '16 at 12:30
• It's strange, because the p-value curves themselves seem correct, thus I suspect that my interpretation of the areas is wrong. I can post the model itself if it helps (and assuming I'm allowed to attach it)? Apr 6 '16 at 12:31