kmassessbayesian: Update probability distribution applying Bayesian update

View source: R/kmassessbayesian.R

kmassessbayesianR Documentation

Update probability distribution applying Bayesian update

Description

kmassessbayesian updates a probability distribution over a knowledge structure according to the Bayesian update rule.

Usage

kmassessbayesian(probs, ks, beta, eta, question, response)

Arguments

probs

Probability distribution over the knowledge structure (vector)

ks

Binary matrix of the knowledge structure

beta

Vector of careless error probabilities

eta

Vector of lucky guess probabilities

question

Item that has been posed

response

Correctness of received response (0 or 1)

Value

Updated probability vector

See Also

Other Knowledge assessment: kmassess(), kmassesshalfsplit(), kmassessinformative(), kmassessmentsimulation(), kmassessmultiplicative()

Examples

kmassessbayesian(c(0.02, 0.1, 0.07, 0.01, 0.4, 0.17, 0.07, 0.08, 0.08),
                 xpl$space,
                 rep(0.2,4),
                 rep(0.1,4),
                 3,
                 1
                )


kstMatrix documentation built on Dec. 18, 2025, 5:07 p.m.