This code simulates test parameters and test results in some common situations. The simulation is based on Item Response Theory (IRT) model and typical parameters' values. If the exam is used for selection of candidates (i.e., for university admission or jobs), we always have some very capable candidates who failed the test because of the test imperfection as well as those less capable who succeeded because of the same imperfection and their successful guessing. Short multiple-choice tests are quite bad solution for such a selection. Exam administrators want to decrease ratio of these false negative and false positive cases. The scatter plot and confusion matrix show how many of them we have at this simulated test.
![exam-simulation](https://private-user-images.githubusercontent.com/37896013/302219443-59904f31-9c12-4f0a-8ede-26098bb8886f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwNjEzMDUsIm5iZiI6MTcyNDA2MTAwNSwicGF0aCI6Ii8zNzg5NjAxMy8zMDIyMTk0NDMtNTk5MDRmMzEtOWMxMi00ZjBhLThlZGUtMjYwOThiYjg4ODZmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE5VDA5NTAwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQxNDMxOWVjZjZkYjg5NjBkZjE4ZWE1ZjAyYTM2YjlkN2NhN2M0YWNjOTNjOWU5NTNiZTE5OWQ3MTQ4MmUwYWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HK2NE92FvCOUktVhNSbwi3gHZBaw96q59LKMlzeYkNI)
R Shiny simulation is available online on Shiny Apps portal at https://srdjan-verbic.shinyapps.io/Exam_simulation/.