Related Experiment Video
Updated: Apr 24, 2026

Constructing and Visualizing Models using Mime-based Machine-learning Framework
Published on: July 22, 2025
BKT: A Bayesian knowledge tracing package for the R environment
Yuhao Yuan1, Biying Zhou1, Jia Qi1
1Department of Applied Psychology and Human Development, University of Toronto, 252 Bloor St W, Toronto, ON, M5S 1V6, Canada.
None:
Bayesian Knowledge Tracing (BKT) is a popular model in cognitive science and educational technology used to estimate learners' evolving knowledge states over time, widely used due to its interpretability, simplicity, and theoretical alignment with learning processes. However, existing implementations are primarily available in Python or C++, creating accessibility challenges for researchers working in R-a language extensively used in education and psychology. To address this gap, we present the BKT R package, a comprehensive tool that implements the standard BKT model along with five widely used variants: Prior Per Student (PPS), Item Order Effect (IOE), Item Difficulty Effect (IDE), Item Learning Effect (ILE), and Learning and Forgetting Behavior (LFB). The package features parameter estimation via the Expectation-Maximization algorithm, seamless integration with R's data manipulation and visualization tools, and support for example datasets and streamlined model output. We validate the package through simulation studies and application to real-world data from the Cognitive Tutor system, demonstrating high fidelity with existing Python implementations and robust parameter recovery across scenarios. This work enhances the accessibility, reproducibility, and flexibility of BKT modeling for R users in behavioral sciences.
Related Concept Videos
Biostatistics: Overview
Discrete variables are...
Introduction to R
Distributions to Estimate Population Parameter
Interpreting R Charts
An R chart plots the range of subsets of measurements collected from a process. Each point on the chart represents the range—defined as the difference between the maximum and minimum...
Statistical Software for Data Analysis and Clinical Trials
Propagation of Uncertainty from Systematic Error

