Learn R Programming

kstMatrix (version 2.2-1)

kmassessbayesian: 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)

Value

Updated probability vector

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)

See Also

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

Examples

Run this code
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
                )

Run the code above in your browser using DataLab