![](https://cos-cdn.shuashuati.com/pipixue-wap/2020-1230-1107-56/ti_inject-812ce.png)
It is a discrete variable whose values can only be 0 or 1. For example, there is a variable X that used to determine whether a student has passed the exam. When the score of one student is smaller than 60, the X equals to 0 which means the student has not passed, otherwise, X equals to 1 which means the student has passed.