# What distribution does my data has?

I have total tickets sold data from a single movie theater at a daily level. Its 2 years daily data for every single show date. I did Anderson-Darling test using ad.test() in nortest package in R and it results came significant which means this is not normal distribution as per this tutorial. Is it binomial by any chance? Or what is it?

This is QQplot

This is density plot

This is a simple plot of data using qplot function from ggplot package in R

Can anyone suggest what distribution this variable has? To a naked eye, second and third plot looks like a right skewed/right tailed distribution. I want to use this for regression and want to be sure of the distribution so that i can proceed further.

Edit: I found an R package fitdistrplus and used fitdist() to test different distributions. Below is how qqplot looks like in each distribution and below are aic values

library(fitdistrplus)
#gamma distribution
fit.fg <- fitdist(data$Tot_ticket_sold, "gamma") #log normal fit.fln <- fitdist(data$Tot_ticket_sold, "lnorm")
#weibull
fit.fw <- fitdist(data$Tot_ticket_sold, "weibull") #normal fit.fn <- fitdist(data$Tot_ticket_sold, "norm")


## check qqplot and emperical and theoritical density to see what fits best

plot(fit.fg)
plot(fit.fln)
plot(fit.fw)
plot(fit.fn)


## find lowest aic

> fit.fg$aic [1] 656590.6 > fit.fln$aic
[1] 664127.3
> fit.fw$aic [1] 656753.2 > fit.fn$aic
[1] 691545.8


It looks like a gamma distribution.

• Gamma and log normal are very similar distributions. There is a great post on CV by Glen_b. Sep 14, 2016 at 5:32
• Here Sep 14, 2016 at 5:35
• Excellent work (I just had my phone last time we talked...). Can you share the estimated parameters if we were to assume a log-normal? Sep 14, 2016 at 13:35
• If this is count data we know it can't actually be gamma or lognormal or any other continuous distribution. If it has low minimum counts (especially if you can observe 0's or even 1's), I'd avoid continuous approximations. 1. What's wrong with discrete distributions as models for discrete data? 2. Why do you need a simple-functional form as a distributional model at all? Sep 15, 2016 at 7:57
• Hi @Glen_b, is there any test to identify the data is discrete or not. Also, it if it is indeed discrete, what modelling approach can i take? i assume an glm model? Please suggest. Sep 19, 2016 at 6:47