Book Image

R Object-oriented Programming

By : Kelly Black
Book Image

R Object-oriented Programming

By: Kelly Black

Overview of this book

Table of Contents (19 chapters)
R Object-oriented Programming
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
4
Calculating Probabilities and Random Numbers
Package Management
Index

Chapter 4. Calculating Probabilities and Random Numbers

In this chapter, we provide a broad overview of the functions related to probability distributions. This includes functions associated with probability distributions, Random Number Generation, and issues associated with sampling. The chapter is divided into five parts:

  • Distribution functions: This section gives you a brief overview of the ideas and concepts behind random variables and approximating the height of a probability mass function of a probability density function for a given distribution

  • The cumulative distribution function: This section gives you an overview of how to approximate the cumulative distribution for a given distribution

  • The inverse cumulative distribution function: This section gives you an overview of how to approximate the inverse cumulative distribution function for a given distribution

  • Random Number Generation (RNG): This section gives you an overview of how R generates pseudorandom numbers with examples of how...