Skip to content

Latest commit

 

History

History
32 lines (31 loc) · 1.07 KB

[M]-Normal-Distribution_Probability-for-a-Single-New-Observation.md

File metadata and controls

32 lines (31 loc) · 1.07 KB

[ND] Probability for A Single New Observation

Using Sample Statistics

Actual Code
Sample Task 1

The distribution for customer demand (units per month) is normal with mean = 750 and standard deviation = 100.
Find the probability that demand will be at most 900 units/month.

pnorm(900, 750, 100)
Sample Task 2

The distribution for customer demand (units per month) is normal with mean = 750 and standard deviation = 100.
Find the probability that demand will exceed 700 units/month.

Method 1

1 - pnorm(700, 750, 100)

Method 2

pnorm(700, 750, 100, lower.tail = FALSE)
Sample Task 3

The distribution for customer demand (units per month) is normal with mean = 750 and standard deviation = 100.
Find the probability that demand will be between 700 and 900 units/month.

pnorm(900, 750, 100) - pnorm(700, 750, 100)

Using Sample Data

Actual Code
Sample Task 1

Find the probability that mtcars$hp exceeds 300.

m.filtered <- mtcars %>% filter(hp > 300)
nrow(m.filtered)/nrow(mtcars)