Lesson 4 of 4 · Conditional counting tests
Test a counting model
24 minute lesson · 3 checks along the way
Your goal for this lessonDerive a conditional no-source counting test and interpret its upper-tail probability without turning it into a source-existence probability.
In this lesson 3 sections · 3 checks
Read & understand
Specify the null and the planned test
Take a separate fictional observation: N=4 source-region counts and B=4 background-region counts, with known α=1/4. Before examining these counts, specify an upper-tail test for excess events in the source region. Under a no-source null, let N be Poisson with mean αμ and B independent Poisson with mean μ, where μ is the unknown expected background-region count.
The null includes more than the phrase no source. It also includes the matched background, independent regions and known relative area/exposure scaling. A background gradient or an aperture chosen after seeing a bright fluctuation changes the problem. We are defining a simple test from first principles, not reconstructing the maximum-likelihood quantities stored in the ROSAT catalog.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Condition away the unknown background mean
Condition on the observed total n=N+B=8. Under the null, the source-region count then follows a binomial distribution with n trials and probability p=α/(1+α)=1/5. To see why, divide the joint Poisson probability for N=k and B=n−k by the Poisson probability for their sum n. The exponential factors and powers of μ cancel, leaving choose(n,k)pᵏ(1−p)ⁿ⁻ᵏ.
For this observation, sum the binomial masses from k=4 through k=8. The exact conditional upper tail is 4397/78125=0.0562816. The calculation includes the observed outcome and every more source-heavy allocation at the same total. Independent enumeration of all 390625 equally likely eight-draw outcomes with one of five labels assigned to the source region reproduces the same fraction.
Condition on the total, then sum the tail
All bars share a zero origin and650pixels per probability unit. Tiny probabilities retain their true subpixel heights; exact values are in the accessible table. The gold tail is conditional on the specified independent matched-background null, not a source posterior.
Open full-size diagram in a new tab: Condition on the total, then sum the tailRead diagram data as a table
| Source-region k | Background-region count | Exact conditional mass | Included in upper tail |
|---|---|---|---|
| 0 | 8 | 65536/390625 | No |
| 1 | 7 | 131072/390625 | No |
| 2 | 6 | 114688/390625 | No |
| 3 | 5 | 57344/390625 | No |
| 4 | 4 | 3584/78125 | Yes |
| 5 | 3 | 3584/390625 | Yes |
| 6 | 2 | 448/390625 | Yes |
| 7 | 1 | 32/390625 | Yes |
| 8 | 0 | 1/390625 | Yes |
All bars share a zero origin and650pixels per probability unit. Tiny probabilities retain their true subpixel heights; exact values are in the accessible table. The gold tail is conditional on the specified independent matched-background null, not a source posterior.
Check 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
State what the probability answers
The tail is the probability, under this specified no-source model and conditional on the total, of an allocation at least as source-heavy as the observed one. It is not a 5.62816 percent probability that no source exists, nor a complementary probability that a source exists. Those are different questions requiring a model for comparing hypotheses and, for posterior probabilities, prior information.
An upper-tail test targets excess counts, not every possible mismatch. Searching many positions, trying several apertures or selecting the energy band after seeing the data changes the testing procedure; a single predeclared tail does not automatically account for that search. Conditioning removes one nuisance mean. It does not validate the background assumptions, establish the source’s spectrum or supply a catalog-independent detection rule.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.
- Read: HEASARC: ROSAT NEP X-ray catalogEquivalent on-axis exposure differs from field-of-view time;net rate is vignetting corrected. This catalog clips negative net band counts before hardness ratios. Flux conversion depends on spectral assumptions. Do not generalize clipping to all ROSAT catalogs or equate catalog likelihood with proposed toy significance. Numerical count examples are fictional teaching models with explicitly stated assumptions, not ROSAT measurements or catalog detection likelihoods.
- Read: ROSAT handbook: PSPC backgroundMultiple background components vary with time;some external diffuse X-rays cannot be removed solely through event discrimination. Numerical count examples are fictional teaching models with explicitly stated assumptions, not ROSAT measurements or catalog detection likelihoods.