I am modeling a hydrogen refueling station with an average of 2.5 cars arriving per day. This can be modeled using a Poisson distribution.
Each car has the following (discrete) probability distribution for the amount of hydrogen that it refuels. This probability distribution is based on a histogram derived from historical data.
How can I create a probability distribution for the total amount of hydrogen tanked per day?
I have been thinking how I can "add" probability distributions but cannot find a sensible way to do this. I assume it has something to do with the convolution of a Poisson distribution with another distribution.
The purpose is to create a discrete probability distribution and use it as an input to the Stochastic Dual Dynamic Programming (SDDP) algorithm implemented in SDDP.jl in order to optimize an energy system. So, my desired outcome is something like this, but then of course with correct data (i.e. no uniform distribution).
The resulting distribution is a discrete compound Poisson distribution.
The python code below can create the distribution. Be aware that this code is not specific to the Poisson process but can take any distribution for the amount of cars per day.