spec defines a decision's specificity value (or correct rejection rate):
The conditional probability of the decision being negative
if the condition is FALSE.
Details
Understanding or obtaining the specificity value spec:
Definition:
specis the conditional probability for a (correct) negative decision given that the condition isFALSE:spec = p(decision = negative | condition = FALSE)or the probability of correctly detecting false cases (
condition = FALSE).Perspective:
specfurther classifies the subset ofcond_falseindividuals by decision (spec = cr/cond_false).Alternative names: true negative rate (
TNR), correct rejection rate,1 - alphaRelationships:
a.
specis the complement of the false alarm ratefart:spec = 1 - fartb.
specis the opposite conditional probability – but not the complement – of the negative predictive valueNPV:NPV = p(condition = FALSE | decision = negative)In terms of frequencies,
specis the ratio ofcrdivided bycond_false(i.e.,fa + cr):spec = cr/cond_false = cr/(fa + cr)Dependencies:
specis a feature of a decision process or diagnostic procedure and a measure of correct decisions (true negatives).However, due to being a conditional probability, the value of
specis not intrinsic to the decision process, but also depends on the condition's prevalence valueprev.
References
Consult Wikipedia for additional information.
See also
comp_spec computes spec as the complement of fart;
prob contains current probability information;
comp_prob computes current probability information;
num contains basic numeric parameters;
init_num initializes basic numeric parameters;
comp_freq computes current frequency information;
is_prob verifies probabilities.
Other probabilities:
FDR,
FOR,
NPV,
PPV,
acc,
err,
fart,
mirt,
ppod,
prev,
sens
Examples
spec <- .75 # sets a specificity value of 75%
spec <- 75/100 # (decision = negative) for 75 out of 100 people with (condition = FALSE)
is_prob(spec) # TRUE
#> [1] TRUE
