Examveda

In R, what is the purpose of the hist() function with the argument probability = TRUE?

A. Computes the probability density function of a numeric variable

B. Plots a histogram with probabilities as heights

C. Generates a random sample from a probability distribution

D. Creates a probability plot for a numeric variable

Answer: Option B


Join The Discussion

Related Questions on Statistical Analysis with R (Distributions, Graphics)

What does the qqnorm() function in R do?

A. Plots a quantile-quantile plot for normality assessment

B. Generates a random sample from a normal distribution

C. Creates a normal probability plot

D. Quantifies the normal distribution of a variable