adplus-dvertising
frame-decoration

Question

What will be the output of the following R code?
> set.seed(20)
> x <- rnorm(100)
> e <- rnorm(100, 0, 2)
> y <- 0.5 + 2 * x + e 
> summary(y)

a.

Min. 1st Qu. Median Mean 3rd Qu. Max.
-6.4080 -1.5400 0.6789 0.6893 2.9300 6.5050

b.

Min. 1st Qu. Median Mean 3rd Qu. Max.
-6.4080 -10.5400 0.6789 5.6893 2.9300 6.5050

c.

Min. 1st Qu. Median Mean 3rd Qu. Max.
-1.4080 -6.5400 0.6789 0.6893 2.9300 6.5050

d.

Error

Answer: (a).Min. 1st Qu. Median Mean 3rd Qu. Max.
-6.4080 -1.5400 0.6789 0.6893 2.9300 6.5050

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the following R code?

Similar Questions

Discover Related MCQs

Q. ________ is a systematic way to examine how much time is spent in different parts of a program.

Q. Point out the correct statement?

Q. R comes with a ________ to help you optimize your code and improve its performance.

Q. The _______ function computes the time (in seconds) needed to execute an expression.

Q. Point out the correct statement?

Q. system.time function returns an object of class _______ which contains two useful bits of information.

Q. _________ time is time charged to the CPU(s) for the R expression.

Q. The elapsed time may be ________ than the user time if your machine has multiple cores/processors.

Q. Parallel processing is done via __________ package can make the elapsed time smaller than the user time.

Q. You can time ________ expressions by wrapping them in curly braces within the call to system.time().

Q. The profiler can be turned off by passing _________ to Rprof().

Q. Point out the correct statement?

Q. How many methods exist for normalizing the data?

Q. _______ divides the time spend in each function by the total run time.

Q. Point out the correct statement?

Q. Which of the following function actually fits the linear model?

Q. The final bit of output that summaryRprof() provides is the ______ interval and the total runtime.

Q. Which of the following statement gives sampling interval?

Q. Which of the following code is not profiled?

Q. _______ grammar makes a clear distinction between your data and what gets displayed on the screen or page.