Mathematics/Statistics/Data Characteristics: Difference between revisions

From Dev Wiki
Jump to navigation Jump to search
(Add percentiles and quartiles)
(General page formatting)
Line 1: Line 1:
The following details some basic characteristics of data in statistics.
The following details some basic characteristics of data in statistics. See also [[Statistics - Core Measurements|Core Measurements]].


See also [[Statistics - Core Measurements|Core Measurements]].
Note that all of the following assume an ordered set of items.


{{ ToDo | Expand page. }}


== Min ==
== Min ==
Given a set of items, the Min is the lowest single unique value.
The Min is the lowest single unique value.
  For example, given a set of [1, 1, 2, 2, 3, 3, 4, 4, 5, 5], 1 is the min.
  For example, given a set of [1, 1, 2, 2, 3, 3, 4, 4, 5, 5], 1 is the min.


== Max ==
== Max ==
Given a set of items, the Max is the highest single unique value.
The Max is the highest single unique value.
  For example, given a set of [1, 1, 2, 2, 3, 3, 4, 4, 5, 5], 5 is the max.
  For example, given a set of [1, 1, 2, 2, 3, 3, 4, 4, 5, 5], 5 is the max.


== Percentile ==
== Percentile ==
Given a set of items, a Percentile is the value that marks 25%, 50% or 75% in your data.
A Percentile is the value that marks 25%, 50% or 75% in your data.


In other words, find the [[Statistics - Core Measurements#Median | median]] of your data. This marks the 50th percentile.<br>
In other words, find the [[Statistics - Core Measurements#Median | median]] of your data. This marks the 50th percentile.<br>
Line 27: Line 27:


== Quantiles ==
== Quantiles ==
Given a set of items, a Quartile is a segment of the data when split up into four chunks. Note that the set must be ordered for this.
A Quartile is a segment of the data when split up into four chunks. Note that the set must be ordered for this.


There are four distinct quartiles with unique names:<br>
There are four distinct quartiles with unique names:<br>
Line 54: Line 54:
  50th - 6
  50th - 6
  75th - 9
  75th - 9
 
&nbsp;
  If including, we first split into [1, 2, 3, 4, 5, 6] and [6, 7, 8, 9, 10, 11].
  If including, we first split into [1, 2, 3, 4, 5, 6] and [6, 7, 8, 9, 10, 11].
  Then we split again to get our quartiles.
  Then we split again to get our quartiles.
Line 61: Line 61:
  Q3 - [6, 7, 8]
  Q3 - [6, 7, 8]
  Q4 - [9, 10, 11]
  Q4 - [9, 10, 11]
 
&nbsp;
  If excluding, we first split into [1, 2, 3, 4, 5] and [7, 8, 9, 10, 11].
  If excluding, we first split into [1, 2, 3, 4, 5] and [7, 8, 9, 10, 11].
  Then we split again to get our quartiles:
  Then we split again to get our quartiles:
Line 68: Line 68:
  Q3 - [7, 8]
  Q3 - [7, 8]
  Q4 - [10, 11]
  Q4 - [10, 11]


== Outliers ==
== Outliers ==
Given a set of items, an outlier is an item that does not fit in with the rest. It's usually extremely low or extremely high, compared to the other values in the set.
An outlier is an item that does not fit in with the rest. It's usually extremely low or extremely high, compared to the other values in the set.
  For example, given a set of [1, 2, 3, 4, 50], 50 is an outlier, as it's much higher than the rest of the values.
  For example, given a set of [1, 2, 3, 4, 50], 50 is an outlier, as it's much higher than the rest of the values.

Revision as of 11:49, 12 May 2020

The following details some basic characteristics of data in statistics. See also Core Measurements.

Note that all of the following assume an ordered set of items.


Min

The Min is the lowest single unique value.

For example, given a set of [1, 1, 2, 2, 3, 3, 4, 4, 5, 5], 1 is the min.


Max

The Max is the highest single unique value.

For example, given a set of [1, 1, 2, 2, 3, 3, 4, 4, 5, 5], 5 is the max.


Percentile

A Percentile is the value that marks 25%, 50% or 75% in your data.

In other words, find the median of your data. This marks the 50th percentile.
This splits your data into two halves. At which point you find the median for each half, giving you the 25th and 75th percentile.

For example, given a set of [1, 2, 3, 4, 5, 6], we have the following percentiles:
25th - 2
50th - 3.5
75th - 5

Quantiles

A Quartile is a segment of the data when split up into four chunks. Note that the set must be ordered for this.

There are four distinct quartiles with unique names:
Quartile 1 (Q1) - The lowest 25% of numbers in the set.
Quartile 2 (Q2) - The second lowest 25% of numbers in the set.
Quartile 3 (Q3) - The second highest 25% of numbers in the set.
Quartile 4 (Q4) - The highest 25% of numbers in the set.

In other words, sort your data and divide it into quarters. Each quarter is a quartile, with Q1 being the lowest values and Q4 being the highest.

For example, given a set of [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], we have the following quartiles:
Q1 - [1, 2, 3]
Q2 - [4, 5, 6]
Q3 - [7, 8, 9]
Q4 - [10, 11, 12]

While the above example splits neatly, not all sets will perfectly divide into fourths.
In these cases, a more scientific approach is to find the percentiles, and then use these as the boundaries for the quartiles.
In instances where an odd number of values are being split (so the percentile could arguably be in either quartile), one of two methods are common:

  1. Include the percentile value in both quartiles.
  2. Exclude the percentile value from both quartiles.

For example, consider this:

Given a set of [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], we have the following percentiles:
25th - 3
50th - 6
75th - 9
 
If including, we first split into [1, 2, 3, 4, 5, 6] and [6, 7, 8, 9, 10, 11].
Then we split again to get our quartiles.
Q1 - [1, 2, 3]
Q2 - [4, 5, 6]
Q3 - [6, 7, 8]
Q4 - [9, 10, 11]
 
If excluding, we first split into [1, 2, 3, 4, 5] and [7, 8, 9, 10, 11].
Then we split again to get our quartiles:
Q1 - [1, 2]
Q2 - [4, 5]
Q3 - [7, 8]
Q4 - [10, 11]


Outliers

An outlier is an item that does not fit in with the rest. It's usually extremely low or extremely high, compared to the other values in the set.

For example, given a set of [1, 2, 3, 4, 50], 50 is an outlier, as it's much higher than the rest of the values.