Lead Data Scientist Question:

Do you know what is the difference between rnorm and runif functions?

Tweet Share WhatsApp

Answer:

rnorm function-

Basically, it generates “n” normal random numbers. That is totally based on the mean and standard deviation arguments passed to the function.

Syntax of rnorm function –

rnorm(n, mean = , sd = )

runif function-

Basically, it generates “n” unform random numbers in the interval. That is of minimum and maximum values passed to the function.

Syntax of runif function –

runif(n, min = , max = )

Download Lead Data Scientist PDF Read All 60 Lead Data Scientist Questions
Previous QuestionNext Question
Tell us how would you validate a model you created to generate a predictive model of a quantitative outcome variable using multiple regression?Explain me for loop control statement in R?