Mathematics/Statistics/Normalization: Difference between revisions

From Dev Wiki
Jump to navigation Jump to search
(Add normalization methods)
 
(2 intermediate revisions by the same user not shown)
Line 26: Line 26:
Also known as "z-score normalization".
Also known as "z-score normalization".


Zero-Mean Normalization normalizes attribute values based on the mean and standard deviation.
Zero-Mean Normalization normalizes attribute values based on the mean and standard deviation.<br>
In other words, this calculates how many standard deviations a value is above or below the mean.


  <math>new\_value = \frac{old\_value - \bar{x}}{\sigma}</math>
  <math>new\_value = \frac{old\_value - \bar{x}}{\sigma}</math>
Line 34: Line 35:
* <math>\bar{x}</math> is the attribute [[Statistics/Core_Measurements#Mean|mean]].
* <math>\bar{x}</math> is the attribute [[Statistics/Core_Measurements#Mean|mean]].
* <math>\sigma</math> is the attribute [[Statistics/Core_Measurements#Standard Deviation|standard deviation]].
* <math>\sigma</math> is the attribute [[Statistics/Core_Measurements#Standard Deviation|standard deviation]].
For further explanation, see [https://youtu.be/5S-Zfa-vOXs this youtube video].




== Normalization by Decimal Scaling ==
== Normalization by Decimal Scaling ==
{{ ToDo | Fill in section. }}
{{ ToDo | Fill in section. }}

Latest revision as of 17:21, 25 October 2020

Normalization is a method to make values fall within a "common range".
For example, in Data Mining and Neural Networks, it's common to normalize values so that they fall into the (inclusive) range of [-1, 1] or [0, 1].

Normalization keeps the ratio of values in an attribute, while ensuring that no single attribute has a significantly larger range than the others. Discrepancy in the ranges an attribute spans may cause one attribute to have more weight (and thus importance) in statistical analysis than other attributes, even when no such correlation should otherwise be expected to exist.

For example, if trying to run analysis with "weight" and "height" attributes for a population of individuals, the unit of measurement used will implicitly change how much importance each attribute has in the analysis. Alternatively, we can normalize them both to a range between [0, 1], so that both attributes have equal importance in analysis, regardless of units of measurement.

Below are some common normalization types.

Min-Max Normalization

Min-max normalization is a form of simple linear transformation, where values are simply scaled down to the desired interval.

Warn: This form of normalization will result in errors if a value added at a later date falls outside of the original data range. In such a case, it's important to re-normalize the entire dataset, using the original data.

Where:

  • is the original value of the item to adjust.
  • is the original minimum of the given attribute.
  • is the original maximum of the given attribute.
  • is the new minimum to use for the given attribute.
  • is the new maximum to use for the given attribute.


Zero-Mean Normalization

Also known as "z-score normalization".

Zero-Mean Normalization normalizes attribute values based on the mean and standard deviation.
In other words, this calculates how many standard deviations a value is above or below the mean.


Where:

  • is the original value of the individual dataset item to adjust.
  • is the attribute mean.
  • is the attribute standard deviation.


For further explanation, see this youtube video.


Normalization by Decimal Scaling

Template:ToDo