r:probability
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| r:probability [2019/10/04 01:20] – hkimscil | r:probability [2026/04/14 23:24] (current) – [Normal distribution functions] hkimscil | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| | Chi-squared (Chisquare) | | Chi-squared (Chisquare) | ||
| | Exponential | | Exponential | ||
| - | | F | f | df1 and df2 = degrees of freedom | + | | <fc # |
| | Gamma | gamma | rate; either rate or scale | | | Gamma | gamma | rate; either rate or scale | | ||
| | Log-normal (Lognormal) | | Log-normal (Lognormal) | ||
| | Logistic | | Logistic | ||
| | Normal | | Normal | ||
| - | | Student’s t (TDist) | + | | <fc # |
| | Uniform | | Uniform | ||
| | Weibull | | Weibull | ||
| Line 39: | Line 39: | ||
| Assume that the test scores of a college entrance exam fits a normal distribution. Furthermore, | Assume that the test scores of a college entrance exam fits a normal distribution. Furthermore, | ||
| - | > pnorm(72, mean=72, sd=15.2, lower.tail=FALSE) | + | < |
| [1] 0.5 | [1] 0.5 | ||
| + | |||
| + | > pnorm(1.96) | ||
| + | [1] 0.9750021 | ||
| + | |||
| + | > pnorm(1.96)-pnorm(-1.96) | ||
| + | [1] 0.9500042 | ||
| + | |||
| + | > pnorm(c(1.96, | ||
| + | [1] 0.9750021 0.0249979 | ||
| > pnorm(84, mean=72, sd=15.2, lower.tail=FALSE) | > pnorm(84, mean=72, sd=15.2, lower.tail=FALSE) | ||
| Line 47: | Line 56: | ||
| > qnorm(.2149176, | > qnorm(.2149176, | ||
| [1] 84 | [1] 84 | ||
| - | </ | + | </ |
| ===== rnorm ===== | ===== rnorm ===== | ||
| Random samples from a normal distribution | Random samples from a normal distribution | ||
| Line 85: | Line 94: | ||
| > qt(c(0.025, 0.975), df=50) | > qt(c(0.025, 0.975), df=50) | ||
| [1] -2.008559 | [1] -2.008559 | ||
| + | |||
| + | . . . . . . | ||
| + | |||
| + | > qt(c(0.025, 0.975), df=50000) | ||
| + | [1] -1.960011 | ||
| + | |||
| </ | </ | ||
| </ | </ | ||
r/probability.1570152044.txt.gz · Last modified: by hkimscil
