in my simulation this always prints observed = zeros.
I usually use for a hypothesis test 
```
(pvalues <= q).mean(0)
```