Probability: Sample Space Characterization

Description Usage Arguments Details Value Note Author(s) References Examples

Description

Use permutations and combinations to count outcomes

Usage

1
2
3
4
5
nPr(n,r): permute r items from a set of n distinct items

nCr(n,r): select r items from a set of n items where order does not matter

SimPerm(n_vec): permute n items when they are not totally distinct

Arguments

n

total n itmes

r

select r

n_vec

a vector of (n_1, n_2,...,n_r)

Details

Permutation, Combination, and Permutation of similar items

Value

nPr(n,r) provides the number of different ways to permute r items from a set of n distinct items.

nCr(n,r) provides the number of different ways to select r items from a set of n items where order does not matter.

SimPerm(n_vec) provides the number of different ways to permute n items when they are not totally distinct.

Note

deweiwang@stat.sc.edu

Author(s)

Dewei Wang

References

Section 2.2 of the textbook "Applied Statistics and Probability for Engineers" 7th edition

Examples

1
2
3
4
nPr(8,4)
nCr(3,2)
nCr(47,4)
SimPerm(c(2,3,2))

Harrindy/StatEngine documentation built on Nov. 19, 2021, 1:10 p.m.