11. In R, how do you compute the mean of a numeric variable named variable? A. mean(variable) B. calculate_mean(variable) C. average(variable) D. compute(variable, "mean") Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
12. What function is used to calculate the cumulative distribution function (CDF) of a distribution in R? A. cdf() B. cumulative_distribution() C. pbinom() D. cumsum() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
13. How do you generate a normal probability plot in R for a numeric variable values? A. qnorm(values) B. plot_normal_prob(values) C. qqnorm(values) D. create_normal_prob_plot(values) Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
14. What is the purpose of the boxplot() function in R? A. Creates a box-and-whisker plot for a numeric variable B. Plots a box-shaped figure with user-defined dimensions C. Estimates the probability density function of a variable D. Generates a random sample from a box-shaped distribution Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
15. In R, how do you compute the median of a numeric variable named variable? A. median(variable) B. calculate_median(variable) C. median_value(variable) D. compute(variable, "median") Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
16. What does the qqline() function in R do when used with a quantile-quantile plot? A. Adds a line to the quantile-quantile plot B. Plots the quantile-quantile line C. Generates a random sample from a normal distribution D. Evaluates the quantiles of a distribution Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
17. How do you generate a random sample from a binomial distribution in R with parameters n and p? A. rbinom(n, p) B. binomial_sample(n, p) C. sample_binomial(n, p) D. generate_binomial(n, p) Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
18. What function is used to calculate the standard deviation of a numeric variable named variable in R? A. stdev(variable) B. calculate_sd(variable) C. sd_value(variable) D. compute(variable, "sd") Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
19. How do you create a quantile-quantile plot for a numeric variable values against a theoretical distribution in R? A. qqplot(values, dist) B. geom_qqplot(mapping = aes(sample = values), dist) C. qqnorm(values, dist) D. create_qqplot(values, dist) Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
20. 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 & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board