Unit 14: Statistical Tools and Techniques - Practice Quiz

ECAP790 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 In Bayesian statistics, what does a prior distribution represent?

Bayesian Concepts Easy
A. Results obtained after analyzing the sample
B. The complete distribution of the observed sample values
C. Errors produced while collecting the data
D. Beliefs about a parameter before observing data

2 What is the posterior distribution in Bayesian analysis?

Bayesian Concepts Easy
A. The distribution of raw sample values
B. The distribution selected before collecting data
C. The distribution containing only measurement errors
D. The updated distribution after observing data

3 Which quantity describes how probable the observed data are for different parameter values?

Bayesian Concepts Easy
A. Loss function
B. Prior
C. Likelihood
D. Posterior

4 Bayes' theorem is commonly written as . What does represent?

Bayesian Concepts Easy
A. The prior probability of event
B. The joint probability calculated by adding all possible outcomes involving and
C. The conditional probability of given
D. The marginal probability of event

5 What is the main purpose of Bayesian inference?

Bayesian Inferences Easy
A. To calculate results without using any probability model
B. To update beliefs using observed evidence
C. To arrange observations in alphabetical order
D. To remove all uncertainty from a model

6 Which two components are combined to obtain a posterior distribution?

Bayesian Inferences Easy
A. Range and variance
B. Sample size and maximum
C. Prior and likelihood
D. Mean and median

7 What does a Bayesian credible interval describe?

Bayesian Inferences Easy
A. A range containing no uncertain quantities
B. An interval that always includes the population mean regardless of the model or observed data
C. A list of every observed sample value
D. A range of plausible parameter values

8 If new evidence strongly supports a parameter value, what generally happens to its posterior probability?

Bayesian Inferences Easy
A. It is replaced by the sample range
B. It remains exactly unchanged
C. It always becomes zero
D. It generally increases

9 In Bayesian decision theory, what does a loss function measure?

Bayes Estimates Using Decision Theory Framework Easy
A. The total number of observations collected
B. The difference between the largest and smallest values in a sample
C. The probability assigned before observing evidence
D. The cost of a decision or estimation error

10 A Bayes estimate is commonly selected to minimize which quantity?

Bayes Estimates Using Decision Theory Framework Easy
A. Observed sample size
B. Prior probability alone
C. Maximum possible data value
D. Posterior expected loss

11 Under squared-error loss, which posterior summary is the Bayes estimate?

Bayes Estimates Using Decision Theory Framework Easy
A. Posterior mode
B. Posterior range calculated after removing all values below the first quartile
C. Posterior mean
D. Posterior median

12 Which Microsoft Excel function calculates the arithmetic mean of selected cells?

Microsoft Excel Easy
A. STDEV.S
B. MEDIAN
C. COUNT
D. AVERAGE

13 Which symbol normally begins a formula in Microsoft Excel?

Microsoft Excel Easy
A. @
B. &
C. #
D. =

14 Which Excel feature is commonly used to create a visual representation of data?

Microsoft Excel Easy
A. Chart
B. Password
C. A workbook protection rule that prevents every user from viewing the selected worksheet
D. Comment

15 What is RStudio primarily used for?

RStudio Easy
A. Working with the R programming language
B. Designing printed circuit boards for electronic devices
C. Managing operating-system user passwords
D. Editing videos and audio recordings

16 Which R function calculates the mean of a numeric vector x?

RStudio Easy
A. sort(x)
B. mean(x)
C. length(x)
D. sum(x)

17 In RStudio, where can commands be entered and executed interactively?

RStudio Easy
A. The package installation history window that permanently stores every command from all previous projects
B. Files pane
C. Console
D. Plots pane

18 What does SPSS primarily help users perform?

SPSS Easy
A. Automatic translation of every document into multiple languages
B. Statistical data analysis
C. Computer hardware repair
D. Digital image illustration

19 In SPSS, which view displays observations in rows and variables in columns?

SPSS Easy
A. Data View
B. Syntax Editor
C. Output Viewer
D. Variable View

20 In SPSS, which view is used to define variable names, types, and labels?

SPSS Easy
A. The Output Viewer used to display all completed statistical tables and graphs from an analysis
B. Chart Editor
C. Variable View
D. Data View

21 A disease has prevalence . A diagnostic test has sensitivity and a false-positive rate of . What is the probability that a person has the disease given a positive result?

Bayesian Concepts Medium
A.
B.
C.
D.

22 The probability of success has a prior. Before observing any data, what is the prior predictive probability of success on the next trial?

Bayesian Concepts Medium
A.
B.
C.
D.

23 The prior odds in favor of model over are . If the likelihood ratio in favor of is , what are the posterior odds?

Bayesian Concepts Medium
A.
B.
C.
D.

24 A 95% Bayesian credible interval for is . Which interpretation is appropriate?

Bayesian Concepts Medium
A. The sample mean lies in the interval with probability .
B. The interval contains 95% of all possible parameter values.
C. The posterior probability that lies in the interval is .
D. Exactly 95% of future observations lie in the interval.

25 A binomial success probability has prior . After observing 8 successes and 2 failures, what is the posterior distribution?

Bayesian Inferences Medium
A.
B.
C.
D.

26 Using the posterior , what is the posterior predictive probability that the next trial is a success?

Bayesian Inferences Medium
A.
B.
C.
D.

27 Suppose . A sample of size has mean , and the known observation variance is . What is the posterior mean of ?

Bayesian Inferences Medium
A.
B.
C.
D.

28 A Bayes factor is obtained when comparing model with model . What does this value indicate?

Bayesian Inferences Medium
A. The parameter estimate under is 8 times larger.
B. The data are 8 times as probable under as under .
C. The prior probability of is 8 times that of .
D. The posterior probability of is exactly .

29 If the posterior distribution is , what is the Bayes estimate of under squared-error loss?

Bayes Estimates Using Decision Theory Framework Medium
A.
B.
C.
D.

30 A posterior distribution assigns probabilities , , and to , , and , respectively. What is the Bayes estimate under absolute-error loss?

Bayes Estimates Using Decision Theory Framework Medium
A.
B.
C.
D.

31 A posterior distribution assigns probabilities , , and to parameter values , , and . What is the Bayes estimate under zero-one loss?

Bayes Estimates Using Decision Theory Framework Medium
A.
B.
C.
D.

32 For a binary decision, a false positive costs and a false negative costs . If , when should action be selected?

Bayes Estimates Using Decision Theory Framework Medium
A. When
B. When
C. When
D. When

33 Which Excel formula calculates the probability of exactly 7 successes in 10 independent trials when the success probability is ?

Microsoft Excel Medium
A. =NORM.DIST(7,10,0.6,FALSE)
B. =BINOM.DIST(7,10,0.6,FALSE)
C. =BINOM.INV(10,0.6,7)
D. =BINOM.DIST(7,10,0.6,TRUE)

34 Values of a response variable are in cells B2:B21, and matching predictor values are in A2:A21. Which formula returns the least-squares slope?

Microsoft Excel Medium
A. =SLOPE(A2:A21,B2:B21)
B. =SLOPE(B2:B21,A2:A21)
C. =CORREL(B2:B21,A2:A21)
D. =INTERCEPT(B2:B21,A2:A21)

35 A right-tailed test produces a test statistic of with degrees of freedom. Which Excel formula returns its p-value?

Microsoft Excel Medium
A. =T.INV.RT(2.1,14)
B. =T.DIST.2T(2.1,14)
C. =T.DIST.RT(2.1,14)
D. =T.DIST(2.1,14,TRUE)

36 A data frame named survey contains variables score and hours. Which R command fits the model ?

RStudio Medium
A. glm(score + hours, data = survey)
B. cor(score ~ hours, data = survey)
C. lm(score ~ hours, data = survey)
D. lm(hours ~ score, data = survey)

37 A simulation in R gives different results each time it is run. Which command should be placed before the simulation to make the random results reproducible?

RStudio Medium
A. setwd(123)
B. options(seed = 123)
C. set.seed(123)
D. sample.seed(123)

38 An R vector named draws contains simulated values from a posterior distribution. Which command computes an equal-tailed 95% credible interval?

RStudio Medium
A. quantile(draws, c(0.025, 0.975))
B. quantile(draws, c(0.05, 0.95))
C. range(draws, c(0.025, 0.975))
D. mean(draws) + c(-1, 1) * sd(draws)

39 A researcher wants to compare the mean exam scores of two unrelated teaching groups in SPSS. Which procedure is most appropriate?

SPSS Medium
A. Analyze > Correlate > Bivariate Correlations
B. Analyze > Compare Means > Paired-Samples T Test
C. Analyze > Nonparametric Tests > Related Samples
D. Analyze > Compare Means > Independent-Samples T Test

40 In an SPSS multiple regression output, a predictor has coefficient and Sig. = 0.03. At significance level , which conclusion is appropriate?

SPSS Medium
A. The predictor has a statistically significant positive association with the response.
B. The response decreases by for each predictor-unit increase.
C. The predictor has a statistically significant negative association with the response.
D. The predictor has no statistically significant association with the response.

41 For Bernoulli observations with successes in trials, consider the improper Haldane prior . Under which condition is the posterior distribution proper?

Bayesian Concepts Hard
A.
B. regardless of
C. and
D. or

42 A disease has prevalence . A diagnostic test has sensitivity and specificity . Assuming these values apply to the tested population, what is the posterior probability of disease after a positive result?

Bayesian Concepts Hard
A.
B.
C.
D.

43 Two sampling designs produce likelihoods satisfying , where does not depend on . If the same proper prior is used, which conclusion follows from the likelihood principle?

Bayesian Concepts Hard
A. The Bayes factors agree only under flat priors
B. The posteriors differ because sample spaces differ
C. The posterior means agree but variances may differ
D. The normalized posterior distributions are identical

44 A Bernoulli probability has prior . After observing successes and failures, what is the posterior predictive probability that both of the next two trials are successes?

Bayesian Inferences Hard
A.
B.
C.
D.

45 Observations are independent variables. The prior is , and a sample of size has mean . What is the posterior distribution of ?

Bayesian Inferences Hard
A.
B.
C.
D.

46 For independent , use a Gamma prior with shape and rate . Four observations have total . What is the posterior predictive mean of one new observation?

Bayesian Inferences Hard
A.
B.
C.
D.

47 Models and have prior probabilities and , respectively. The observed data yield Bayes factor . What is ?

Bayesian Inferences Hard
A.
B.
C.
D.

48 For a continuous posterior distribution of , suppose the loss is when and when . Which posterior summary is the Bayes estimate?

Bayes Estimates Using Decision Theory Framework Hard
A. The posterior th percentile
B. The posterior th percentile
C. The posterior arithmetic mean
D. The posterior th percentile

49 The LINEX loss is . If and , what is the Bayes estimate?

Bayes Estimates Using Decision Theory Framework Hard
A.
B.
C.
D.

50 The posterior probabilities of states and are and . Losses for actions , , and are respectively , , and across those states. Which action is Bayes-optimal?

Bayes Estimates Using Decision Theory Framework Hard
A. Action
B. Action
C. Actions and tie
D. Action

51 A real-valued target has posterior distribution , but the reported action is constrained to . Under squared-error loss, what is the constrained Bayes action?

Bayes Estimates Using Decision Theory Framework Hard
A.
B.
C.
D.

52 A binomial analysis produces posterior . Which Excel formulas return the equal-tailed credible interval?

Microsoft Excel Hard
A. =BETA.INV(0.025,9,6) and =BETA.INV(0.975,9,6)
B. =BETA.INV(0.05,9,6) and =BETA.INV(0.95,9,6)
C. =BETA.DIST(0.025,9,6,TRUE) and =BETA.DIST(0.975,9,6,TRUE)
D. =BETA.INV(0.025,6,9) and =BETA.INV(0.975,6,9)

53 Cells A2:A100 contain very negative log-weights . Which modern Excel formula stably computes while reducing numerical underflow?

Microsoft Excel Hard
A. =LN(MAX(A2:A100)+SUM(EXP(A2:A100)))
B. =LN(SUM(EXP(A2:A100)))+MAX(A2:A100)
C. =MAX(A2:A100)+LN(SUM(EXP(A2:A100-MAX(A2:A100))))
D. =MAX(A2:A100)+SUM(LN(EXP(A2:A100)))

54 In an Excel regression calculation, cell B2 contains a coefficient estimate and C2 its standard error. There are observations and predictors excluding the intercept. Which formula computes the usual two-sided -test p-value?

Microsoft Excel Hard
A. =NORM.S.DIST(ABS(B2/C2),FALSE)
B. =T.DIST.RT(ABS(B2/C2),n-k-1)
C. =T.DIST.2T(ABS(B2/C2),n-k-1)
D. =1-T.DIST.2T(ABS(B2/C2),n-k)

55 In R, lm(y ~ x*g) is fitted with factor level A as the reference for g. The estimated coefficients for x and x:gB are and . What is the fitted slope of when g == "B"?

RStudio Hard
A.
B.
C.
D.

56 For a fitted linear model fit, which R command obtains an interval for a single future response at predictor values stored in newdata, including irreducible observation noise?

RStudio Hard
A. fitted(fit, newdata, interval = "prediction")
B. predict(fit, newdata, interval = "prediction")
C. confint(fit, newdata, level = 0.95)
D. predict(fit, newdata, interval = "confidence")

57 An lm model in R was trained with factor levels A and B. A prediction data frame contains the previously unseen level C. Without manually changing levels or refitting, what normally happens when predict.lm is called?

RStudio Hard
A. It returns NA only for the factor coefficient
B. It averages predictions for levels A and B
C. It silently treats C as the reference level
D. It raises an error for a new factor level

58 SPSS Multiple Imputation produces estimates. The average within-imputation variance is , and the between-imputation variance is . Using Rubin's rules, what is the total variance?

SPSS Hard
A.
B.
C.
D.

59 An SPSS binary logistic model is , where is coded or . What is the odds ratio for a one-unit increase in among cases with ?

SPSS Hard
A.
B.
C.
D.

60 In an SPSS repeated-measures GLM, Mauchly's test is significant for a within-subject factor with more than two levels. Which result should be used for a conservative test of that within-subject effect?

SPSS Hard
A. The multivariate intercept test without the factor
B. The between-subjects effects row for the intercept
C. The uncorrected sphericity-assumed within-subject row
D. The Greenhouse-Geisser-adjusted within-subject row