amartino44
New member
- Joined
- Apr 6, 2015
- Messages
- 13
Hello. I'm reading a book on creating random numbers. If I'm trying to come up with units per week with an average of 100, why would I use the poisson distribution vs. the normal distribution?
Item sales are in unit counts, so we use the Poisson distribution to generate countdata: rpois(n, lambda), where n is the number of draws and lambda is themean value of units per week. We draw a random Poisson count for each row(nrow(store.df), and set the mean sales (lambda) of Product 1 to be higherthan that of Product 2:
Item sales are in unit counts, so we use the Poisson distribution to generate countdata: rpois(n, lambda), where n is the number of draws and lambda is themean value of units per week. We draw a random Poisson count for each row(nrow(store.df), and set the mean sales (lambda) of Product 1 to be higherthan that of Product 2: