Lead Data Scientist Question:
Download Job Interview Questions and Answers PDF
Do you know what is the difference between rnorm and runif functions?
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 = )
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