makeQA_ConditionalProbability: Generate conditional probability question

Description Usage Arguments Value Examples

Description

Generate conditional probability question

Usage

1
2
makeQA_ConditionalProbability(proportion = NULL, condprob = NULL,
  type = NULL)

Arguments

proportion

Splits the population into 3 groups with this proportion. Must sum to 1

condprob

Gives a conditional probability for each group

type

(1, 2). 1: Total probability question 2: Bayes Theorem question

Value

a vector with first element as question, second element as correct answer, and other elements as other answer choices.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
makeQA_ConditionalProbability(type = 2)
 "A company buys resistors from vendor companies A, B, and C.
 30% come from company A  40% come from comapny B, and 30% come
 from company C.  If a resistor comes from company A, there is a
 67% chance that it is within tolerance.  If a resistor comes from
 company B, there is a 57% chance that it is within tolerance.
 If a resistor comes from company C, there is a 82% chance that
 it is within tolerance.  If a randomly selected resistor is
 within tolerance, what is the probability it came from company A?"
 "0.298"
 "0.67"
 "0.675"
 "0.687"
 "2.06"

kristynpantoja/statexams documentation built on June 3, 2019, 5:25 a.m.