Distribution of A Single Variable
Distribution of A Single Variable
Variable
Variable
A variable is a characteristic that may take on different values at different
times, places or situations. Age, sex, business income and expenses,
country of birth, capital expenditure, class grades, and vehicle type are
examples of variables.
Continuous variable can take any value between a certain set of real
numbers. The value given a continuous variable can include values as small as the
instrument of measurement allows. Examples of continuous variables include
height, time, age, and temperature.
Discrete variable can take a value based on a count from a set of distinct whole
values. Examples of discrete variables include the number of registered cars,
number of business locations, and number of children in a family, all of which
measured as whole units (i.e. 1, 2, 3 cars).
Categorical variables have values that describe a 'quality' or 'characteristic' of a
data unit, like 'what type' or 'which category‘ and fall into mutually exclusive and
exhaustive categories and qualitative variables. This is further divide in two
categories
Ordinal variable can take a value that can be logically ordered or ranked. Examples
of ordinal categorical variables include academic grades (i.e. A, B, C), clothing size
(i.e. small, medium, large, extra large) and attitudes (i.e. strongly agree, agree,
disagree, strongly disagree).
Examples:
The first step, in the construction of histogram, is to take the observations and
split them into logical series of intervals called bins. X-axis indicates, independent
variables i.e. classes while the y-axis represents dependent variables i.e.
occurrences. Rectangle blocks i.e. bars are depicted on the x-axis, whose area
depends on the classes.
Bar Graph
A bar graph is a chart that graphically represents the comparison between
categories of data. It displays grouped data by way of parallel rectangular bars of
equal width but varying the length. Each rectangular block indicates specific
category and the length of the bars depends on the values they hold. The bars in
a bar graph are presented in such a way that they do not touch each other, to
indicate elements as separate entities.
Bar diagram can be horizontal or vertical, where a horizontal bar graph is used
to display data varying over space whereas the vertical bar graph represents
time series data. It contains two axis, where one axis represents the categories
and the other axis shows the discrete values of the data.
Key Differences b/w Histogram and Bar graph
The width of rectangular blocks in a histogram may or may not be same while the
width of the bars in a bar graph is always same.
The histogram is drawn in such a way that there is no gap between the bars. On
the other hand, there is proper spacing between bars in a bar graph that indicates
discontinuity.
Pie Chart
Pie charts are specific types of data presentation where the data is represented in
the form of a circle. In a pie chart, a circle is divided into various sections or
segments such that each sector or segment represents a certain proportion or
percentage of the total.
In such a diagram, the total of all the given items is equated to 360 degrees and
the degrees of angles, representing different items, are calculated
proportionately. The entire diagram looks like a pie and its components resemble
slices cut from a pie. The pie chart is used to show the break-up of one
continuous variable into its component parts.