Introduction to Distributions in R Draw random numbers from various types of distributions

Plot random number distributions and understand how changes to the various distribution parameters affect their shape and characteristics

1 hour

This project is aimed at beginners who have a basic familiarity with the statistical programming language R and the RStudio environment, or people with a small amount of experience who would like to review the fundamentals of generating random numerical data from distributions in R.

您要培養的技能

• query documentation

• generate sampling distribution

• draw random numbers from distribution

• run for loop

• plot histogram

分步進行學習

1. Draw random numbers from a uniform distribution and plot them in a histogram. Learn how to use the Set Seed function to recover previously generated random numbers for replicability.

2. Draw random numbers from a binomial distribution, as well and use a binomial to draw random numbers from a Bernoulli distribution.

3. Draw random numbers from the Poisson distribution.

4. Draw random numbers from the Normal distribution and from multiple normal distributions simultaneously by using a vector of values for the distribution parameter arguments rather than a single value.

5. Use random number drawing from a distribution to solve a real world question.

指導項目工作原理 