สถิติเบื้องต้นใน R
Maggie Matsui
Content Developer, DataCamp
ความน่าจะเป็นของเวลาระหว่างเหตุการณ์ Poisson
ตัวอย่าง
ใช้ lambda (อัตรา) เช่นเดียวกัน
ต่อเนื่อง (เวลา)


$P(\text{wait} < \text{1 min})$ =
pexp(1, rate = 0.5)
0.3934693
$P(\text{wait} > \text{4 min})$ =
pexp(4, rate = 0.5, lower.tail = FALSE)
0.1353353
$P(\text{1 min} < \text{wait} < \text{4 min})$ =
pexp(4, rate = 0.5) - pexp(1, rate = 0.5)
0.4711954
ในแง่ของอัตรา (Poisson):
ในแง่ของเวลา (เอกซ์โพเนนเชียล):


ตัวแปรที่ logarithm มีการแจกแจงแบบปกติ
ตัวอย่าง:

สถิติเบื้องต้นใน R