Professional Documents
Culture Documents
Data Types
There are two types of data:
1. Qualitative data: non-numeric data. (Favorite color, favorite animal, etc)
2. Quantitative data: numeric data.
- Continuous data: can take on any value within a range (weight, height, etc)
- Discrete data: can only take on specific values within a range (number of children in a family)
• If set A, of size n1, has mean x̄1 and set B, of size n 2, has mean x̄ 2 then the mean of the combined set of A
n1 x̄1 + n 2 x̄ 2
and B is x̄ =
n1 + n 2
Median
• First find the rank by divide the number of items with 2.
n
• If is a whole number, take nth and (n + 1)th values, and add them and divide by 2 to get median.
2
• If n is not a whole number, round up and take the nth value to get median.
Mode
• Mode is the most frequently occurring data in the dataset.
Other Measures of Location (Quartiles and Percentiles)
Quartiles
• Lower Quartile (Q1) is one-quarter of the way through the dataset.
• Median (Q2) is halfway through the dataset.
• Upper Quartile (Q3) is three-quarter of the way through the dataset.
• If r is a whole number, take r-th and (r + 1)-th values, and add them and divide by 2 to get the
corresponding quartile.
• If r is not a whole number, round up and take the r-th value to get median.
Percentiles
• Percentiles split the data into 100 parts.
• The 10-th percentile lies one-tenth of the way through the dataset.
r − rbegin v − vbegin
=
rend − rbegin vend − vbegin
Where,
• v is the percentile or the quartile we want, and r is the rank.
• rbegin and rend are the class boundaries (first column).
• vbegin and vend are the cumulative frequencies of the classes (second column).
Coding
• Coding is a way of simplifying statistical calculation.
x −a
• A frequently used coding method is to transform each value x into y = . Then
b
x̄ = b ȳ + a
σx = bσy
Comment on the…
When the question asks to comment on the data between two values (for example, “comment on the mean
between two datasets),
1. Say which one is higher,
2. State what that means.