Ask Your Question
3

What is the method to compute this particular CDF using R?

asked 2023-05-08 23:53:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-09 00:07:02 +0000

david gravatar image

Without specific details about the probability distribution, it is difficult to provide a specific method to compute the cumulative distribution function (CDF) using R. However, in general, R provides built-in functions to compute the CDF for various probability distributions such as normal, binomial, Poisson, exponential, etc.

For example, to compute the CDF of the standard normal distribution up to a value of 1.96, you can use the pnorm() function in R as follows:

pnorm(1.96)

This will give you the probability that a random variable from the standard normal distribution is less than or equal to 1.96.

Similarly, to compute the CDF of a binomial distribution with 10 trials and a probability of success of 0.5 up to a value of 5, you can use the pbinom() function in R as follows:

pbinom(5, size = 10, prob = 0.5)

This will give you the probability of getting 5 or fewer successes in 10 independent Bernoulli trials with a probability of success of 0.5.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-08 23:53:00 +0000

Seen: 11 times

Last updated: May 09 '23