MATLAB script to calculate chance and significance levels for a classifier's accuracy, based on the procedure published in (1). Supports uneven classes. Returns chance level, its confidence interval, and the minimum number of correct classifications required to reach significance.
(1) Mueller-Putz, G. R., Scherer, R., Brunner, C., Leeb, R., & Pfurtscheller, G. (2008). Better than random? A closer look on BCI results. International Journal of Bioelectromagnetism, 10(1), 52-55.