Data discretization by histogram analysis

A histogram is a graphical representation of a numerical distribution, showing the shape of a distribution. It consists of adjacent rectangles (bins), whose bases are aligned on an axis oriented and equipped with a unit of measure (the axis assumes the unit of measure of the character and can be safely understood as the x axis). The adjacency of the rectangles reflects the continuity of the character. Each rectangle has a base length equal to the width of the corresponding class; the height is calculated as a frequency density, so it is equal to the ratio between the frequencies (absolute) associated with the class and the amplitude of the class.

Thus, in a histogram, the values are partitioned according ...

Get Regression Analysis with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.