# cdfPoissonInv¶

## Purpose¶

Computes the quantile or inverse Poisson cumulative distribution function.

## Format¶

x = cdfPoissonInv(p, lambda)
Parameters: p (NxK matrix) – Probabilities at which to compute the Poisson inverse cumulative distribution function. $$0 < p < 1$$. lambda (ExE conformable with p) – The mean parameter. x (NxK matrix, Nx1 vector or scalar) – each value of x is the smallest integer such that the Poisson cumulative distribution function is equal to or exceeds the corresponding value of p.

## Examples¶

Suppose that a hospital emergency department sees an average of 200 patients during the Friday evening shift. If the hospital wants to have enough staff on hand to handle the patient load on 95% of Friday evenings, how many patients do they need staff on hand for?

// Probability
p = 0.95;

// The average observations
lambda = 200;

// Call cdfPoissonInv
x = cdfPoissonInv(p, lambda);


After running above code, the hospital should expect to see 224 or few patients on 95% of Friday evenings.

x = 224


## Remarks¶

For invalid inputs, cdfPoissoninv() will return a scalar error code which, when its value is assessed by function scalerr(), corresponds to the invalid input. If the first input is out of range, scalerr() will return a 1; if the second is out of range, scalerr() will return a 2; etc.
{"ft_lang_label":"__label__en","ft_lang_prob":0.68563545,"math_prob":0.9581901,"size":1411,"snap":"2020-45-2020-50","text_gpt3_token_len":365,"char_repetition_ratio":0.112295665,"word_repetition_ratio":0.034632035,"special_character_ratio":0.24096386,"punctuation_ratio":0.125,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9851464,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-12-04T11:56:46Z\",\"WARC-Record-ID\":\"<urn:uuid:57e48434-d7d8-4153-9ea7-202fc8c29e34>\",\"Content-Length\":\"23521\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:33148cfb-faf9-43c7-921f-54f057632697>\",\"WARC-Concurrent-To\":\"<urn:uuid:37daf2ab-27dc-4c47-a829-0e19578f0b4b>\",\"WARC-IP-Address\":\"104.27.178.233\",\"WARC-Target-URI\":\"https://docs.aptech.com/gauss/cdfpoissoninv.html\",\"WARC-Payload-Digest\":\"sha1:XJBJIQLYUWUY3AX5C4VBLJY2IFP2HPND\",\"WARC-Block-Digest\":\"sha1:UMGDZI7RGHN5IGMIXF2JEGUCZS2ADJKN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141735600.89_warc_CC-MAIN-20201204101314-20201204131314-00132.warc.gz\"}"}