Question
I have a sample of data (~250 values) which I think is geometrically distributed. Is there any statistical test that I can use to check if it is indeed geometrically distributed? Ideally included in a python library.
Things I have tried / considered so far
- I have done a probplot, which looks promising. However this does not allow me to do hypothesis testing or does it?
- I have considered transforming it into another distribution, but not sure which one and if this can be done. Poisson should be possible, though that will decrease my amount of data a lot.
- I looked into tests to compare distributions, and then compare it to the same number of variables sampled from e.g.
numpy.random.geometric
. However I only found thez-test
which seems to only work for normally distributed values? Or does it work for all? And if it does, is this a valid approach? - I looked into
kolmogorov smirnov test
but it seems to only work for continuous distributions, however mine is discrete. Could I still use the exponential distribution and treat my discrete values like they are continuous?
Edit
To be a bit more concise in what I am doing. I am modeling an auction based electricity market. If there are any problems in the grid, these auctions may be called.
To borrow from this question, it looks a bit like this:
|------------------------------------------------------------------------------------|
[---] [-----] [-] [--------] [-----] [--] [-] [---]
The auctions are called, then have some duration, and then end. I have checked a variety of data sources if they correlate with when this auction is called and could not find much. Instead, I have done some investigations, and done stuff like a probplot which seems to show relatively well that indeed both the interarrival times between auctions and the duration of auctions seem to be geometrically distributed. However a probplot
is visual and I was interested if there was some way I could formulate a hypothesis or some statistical test to underline the findings of this probplot.
Lastly, the reason I am so eager in attributing the observed data to some particular distribution is because I am developing a model to simulate said market. 'Knowing' the underlying distribution is thus very useful in developing said model.