What distribution to use for a 'lavatorial' problem?

  • Context: Undergrad 
  • Thread starter Thread starter lavoisier
  • Start date Start date
  • Tags Tags
    Distribution
Click For Summary

Discussion Overview

The discussion revolves around modeling the usage of lavatories in a workplace setting, specifically focusing on the probability of cubicle occupancy and waiting times. Participants explore different statistical distributions and queuing theory concepts to address the problem, which involves both theoretical and practical considerations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant suggests that the problem may be modeled using a Poisson distribution, but expresses uncertainty due to the finite number of cubicles and the need for a time interval specification.
  • Another participant introduces the concept of an M/M/4 queue, indicating that arrivals can be modeled as a Poisson process with exponential service times, but does not provide a complete solution.
  • A different viewpoint is presented, proposing that the distribution for the number of employees wanting to use the lavatory is binomial, contingent on knowing how often employees need to go.
  • Further elaboration on the queuing theory model is provided, detailing the parameters of the M/M/c/K/C queue, emphasizing the finite population of employees.
  • A participant poses a simplified version of the original problem, questioning whether removing the cubicle limitation alters the analysis significantly.
  • Another participant responds by highlighting the importance of various factors such as the duration of the day, distribution of visits, and independence of visits, suggesting a binomial distribution with a probability approximation to Poisson under certain conditions.

Areas of Agreement / Disagreement

Participants present multiple competing views on how to model the problem, with no consensus reached on the best approach. The discussion remains unresolved regarding the most appropriate statistical method to apply.

Contextual Notes

Limitations include the need for additional information about employee visit frequency and the distribution of those visits. The assumptions regarding independence and uniformity of visits are also noted as potentially significant factors in the analysis.

lavoisier
Messages
177
Reaction score
24
Suppose you have a lavatory with 4 cubicles, in a company that has 30 employees using that lavatory.
Knowing that on average an employee spends 10 minutes in the cubicle, what is the probability that, at any given time, 0, 1, 2, 3 or 4 cubicles are in use? And what would be the average waiting time, if any?

I thought this would be a Poisson distribution situation, but then I'm not really sure it is the case, because if I'm not mistaken Poisson has no upper limit for the number of events, whereas here we can have at most 4 cubicles in use. And I thought with Poisson you needed to specify an interval of time: here I wouldn't know how to describe 'any given time'.

How would you go about tackling this?
Is this a known type of problem (I guess it would apply to supermarkets, post offices, etc...)?

Thanks!
L
 
Physics news on Phys.org
Assuming that the time the time spent in the cubicle is exponential, then this is an M/M/4 queue, with arrivals as a Poisson process with rate ##\lambda##, and service time exponentially distributed with rate ##1/10##.

I'm in a rush right now, so I can't work out a complete solution, but your problem is part of a field called queuing theory. You can read more about your specific problem here: https://en.wikipedia.org/wiki/M/M/c_queue
 
The distribution for the number of employees wanting to use the lavatory is binomial. One major piece of information needed is how often an employee needs to go.
 
Thank you both! Very interesting.
Surprising how complicated (at least from my point of view as a non-mathematician) the solution of an apparently simple problem can be.
I see there's an R package that handles this kind of problem; I'll give it a go if I find the time.
 
To expand on my previous answer, that fact that you have a finite population (30 employees) makes your problem slightly (but only slightly) more complicated. Your problem is called an M/M/c/K/C = M/M/4/26/30 queue, which means
M = Poisson process arrivals
M = Exponential service times
4 = Number of "service counters" (lavatories)
26 = Number of places in line (there is no size limit for the line, so it's just 30 - 4 lavatories to accommodate everyone)
30 = Population size

I believe the queueing package in R can handle these kinds of problems.
 
Last edited:
I still had no time to try the R thing, sorry.

A simpler (I hope) version of my original question would be: suppose there is a room where people come and go all the time.
30 people frequent this room, they spend on average 10 minutes a day in it, and they go to the room on average 5 times a day.
What is the probability that, looking inside the room at any given time, you find 0, 1, 2, ..., 30 people?

Is it the same kind of problem, or does the fact that I removed the number of cubicles and the queueing change everything?

Tx
L
 
If you remove the cubicles (or make 30 cubicles), you change the whole analysis.

How long is a day? 8 working hours, or 24 hours?
How are those 5 visits distributed?
Are the visits of different persons independent of each other?

If the distribution is reasonably uniform, we can ignore the discrete nature of the visits and just assume that finding a person at a given time is (total time spent there)/(total time), e. g. 1/(6*8) or 1/(6*24).
The distribution is then a binomial distribution with this probability as p, and n=30. You can approximate it as Poisson-distribution if you like.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 18 ·
Replies
18
Views
3K
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K