There are various ways to classify attributes. In the previous sub-section, we have seen nominal, ordinal, and numeric attributes. In this sub-section, we will see another type of attribute classification. Here, we will talk about discrete or continuous attributes. A discrete variable accepts only a countable finite number, such as how many students are present in a class, how many cars are sold, and how many books are published. It can be obtained by counting numbers. A continuous variable accepts an infinite number of possible values, such as the weight and height of students. It can be obtained by measuring.
A discrete variable accepts integral values, while a continuous variable accepts real values. In other words, we can say a discrete variable accepts values whose fraction doesn't make sense, whereas a continuous variable accepts values whose fraction makes sense. A discrete attribute uses a limited number of values, while a continuous...