Lead Data Scientist Question:

Download Job Interview Questions and Answers PDF

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

Lead Data Scientist Interview Question
Lead Data Scientist Interview Question

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 Interview Questions And Answers PDF

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?