The question is, will you come to school tday?
Do you have a presentation to give?
Will there be a good topic in the AI class?
Were you up late at night last night?
Give presentation? | Interesting topic today? | Had late night? | Come to class? |
N | N | N | N |
N | N | Y | N |
N | Y | N | Y |
N | Y | Y | N |
Y | N | N | Y |
Y | N | Y | Y |
Y | Y | N | Y |
Y | Y | Y | Y |
Here's another made-up dataset we'll be looking at, with 5 features, not all of them binary:
ID | Answer | A? | B? | who? | D? | E? |
1 | Y | N | N | Fred | P | 100 |
2 | Y | N | N | Fred | P | 100 |
3 | Y | Y | N | Fred | Q | 101 |
4 | Y | Y | N | Voldy | R | 102 |
5 | N | Y | Y | Hermione | P | 100 |
6 | N | Y | Y | Hermione | Q | 101 |
7 | N | N | Y | Hermione | P | 100 |
8 | N | N | Y | Voldy | S | 103 |