I know my question is probably very basic but I have been blocked for 2 days on this... I need to compute a waiting time distribution for passengers in Matlab, like this one. I have the following data:
- WT, a vector of waiting times of length L
- PAX, a vector of the passengers who experienced waiting time, of length L also. PAX(i) experienced waiting time WT(i), e.g. 3 passengers experienced 1.2 minutes. Passengers are uniformly distributed.
Manually I see how to do it (create bins for WT, to group similar waiting times, and deduce the probability of a passenger having to wait for this specific waiting time) but when I try in Matlab I am blocked. Edit: should I use histcounts?
Thanks a lot,
Anne