Data Science Questions and Answers Part-23

1. Which of the following package by Yihui is built in to RStudio environment?
a) rpy2
b) knitr
c) ggplot2
d) none of the mentioned

Answer: b
Explanation: It can be exported to pdf and html.

2. Literate program code is live-automatic “regression test” when building a document.
a) True
b) False

Answer: a
Explanation: Data and results are automatically updated to reflect external changes.

3. Which of the following is the probability calculus of beliefs, given that beliefs follow certain rules?
a) Bayesian probability
b) Frequency probability
c) Frequency inference
d) Bayesian inference

Answer: a
Explanation: Data scientists tend to fall within shades of gray of these and various other schools of inference.

4. Point out the correct statement.
a) Bayesian inference is the use of Bayesian probability representation of beliefs to perform inference
b) NULL is the standard missing data marker used in S
c) Frequency inference is the use of Bayesian probability representation of beliefs to perform inference
d) None of the mentioned

Answer: a
Explanation: Frequency probability is the long run proportion of times an event occurs in independent, identically distributed repetitions.

5. Which of the following can be considered as random variable?
a) The outcome from the roll of a die
b) The outcome of flip of a coin
c) The outcome of exam
d) All of the mentioned

Answer: d
Explanation: The probability distribution of a discrete random variable is a list of probabilities associated with each of its possible values.

6. Which of the following random variable that take on only a countable number of possibilities?
a) Discrete
b) Non Discrete
c) Continuous
d) All of the mentioned

Answer: a
Explanation: Continuous random variable can take any value on some subset of the real line.

7. Point out the wrong statement.
a) A random variable is a numerical outcome of an experiment
b) There are three types of random variable
c) Continuous random variable can take any value on the real line
d) None of the mentioned

Answer: b
Explanation: There are two types of random variable-continuous and discrete.

8. Which of the following is also referred to as random variable?
a) stochast
b) aleatory
c) eliette
d) all of the mentioned

Answer: b
Explanation: Random variable is also known as stochastic variable.

9. Bayesian inference uses frequency interpretations of probabilities to control error rates.
a) True
b) False

Answer: b
Explanation: Frequency inference uses frequency interpretations of probabilities to control error rates.

10. Which of the following condition should be satisfied by function for pmf?
a) The sum of all of the possible values is 1
b) The sum of all of the possible values is 0
c) The sum of all of the possible values is infinite
d) All of the mentioned

Answer: a
Explanation: A probability mass function evaluated at a value corresponds to the probability that a random variable takes that value.