# Bayesian Knowledge Tracing

Bayesian Knowledge Tracing is an algorithm used in many intelligent tutoring systems to model each learner's mastery of the knowledge being tutored.

It models student knowledge in a Hidden Markov Model as a latent variable, updated by observing the correctness of each student's interaction in which they apply the skill in question.

BKT assumes that student knowledge is represented as a set of binary variables, one per skill, where the skill is either mastered by the student or not. Observations in BKT are also binary: a student gets a problem/step either right or wrong. Intelligent tutoring systems often use BKT for mastery learning and problem sequencing. In its most common implementation, BKT has only skill-specific parameters.

## Method

There are 4 model parameters used in BKT:

• $p(L_{0})$ or $p$ -$init$ , the probability of the student knowing the skill beforehand.
• $p(T)$ or $p$ -$transit$ , the probability of the student demonstrating knowledge of the skill after an opportunity to apply it
• $p(S)$ or $p$ -$slip$ , the probability the student makes a mistake when applying a known skill
• $p(G)$ or $p$ -$guess$ , the probability that the student correctly applies an unknown skill (has a lucky guess)

Assuming that these parameters are set for all skills, the following formulas are used as follows: The initial probability of a student $u$ mastering skill $k$ is set to the p-init parameter for that skill equation (a). Depending on whether the student $u$ learned and applies skill $k$ correctly or incorrectly, the conditional probability is computed by using equation (b) for correct application, or by using equation (c) for incorrect application. The conditional probability is used to update the probability of skill mastery calculated by equation (d). To figure out the probability of the student correctly applying the skill on a future practice is calculated with equation (e).

Equation (a):

$p(L_{1})_{u}^{k}=p(L_{0})^{k}$ Equation (b):

$p(L_{t}|obs=correct)_{u}^{k}={\frac {p(L_{t})_{u}^{k}\cdot (1-p(S)^{k})}{p(L_{t})_{u}^{k}\cdot (1-p(S)^{k})+(1-p(L_{t})_{u}^{k})\cdot p(G)^{k}}}$ Equation (c):

$p(L_{t}|obs=wrong)_{u}^{k}={\frac {p(L_{t})_{u}^{k}\cdot p(S)^{k}}{p(L_{t})_{u}^{k}\cdot p(S)^{k}+(1-p(L_{t})_{u}^{k})\cdot (1-p(G)^{k})}}$ Equation (d):

$p(L_{t+1})_{u}^{k}=p(L_{t}|obs)_{u}^{k}+(1-p(L_{t}|obs)_{u}^{k})\cdot p(T)^{k}$ Equation (e):

$p(C_{t+1})_{u}^{k}=p(L_{t+1})_{u}^{k}\cdot (1-p(S)^{k})+(1-p(L_{t+1})_{u}^{k})\cdot p(G)^{k}$ 