why do we need to normalize data in matlab? what is the purpose?

16 views (last 30 days)
I need a short but meaningful answer.
Thanks

Accepted Answer

Jan
Jan on 9 Jul 2017
Edited: Jan on 9 Jul 2017
Normalization of an array is applied, if data in a specific range is required.
If you e.g. want to create a gray scale image with the maximum range, shifting and scaling the data to the range [0.0, 1.0] is used. Sounds can be normalized to [-1.0, 1.0], to give the full range. If you normlize the X values to be centered around 0 and have a standard deviation of 1.0, the resulting linear equations for a polinomial fit (see polyfit) are stable (the matrix is not ill-conditioned).
You see, a short but meaningful answer depends on the topic you are working in. The more specific the question, the crispier is the answer.
  5 Comments
Image Analyst
Image Analyst on 9 Jul 2017
Well, you may know something is wrong, but you may not know normalization is the cure. Case in point: this recent question
John D'Errico
John D'Errico on 9 Jul 2017
Yes, but they SHOULD have known in that case. :) Good point though.

Sign in to comment.

More Answers (1)

John D'Errico
John D'Errico on 9 Jul 2017
Edited: John D'Errico on 9 Jul 2017
Not that this will help...
Normalization is simply a linear transformation of your problem, usually made necessary because of the limits imposed due to floating point arithmetic. There are an uncountable number of places where it may be necessary.
You normalize data because the scaling of the data is a numerical problem. This is often may be simply an issue of poorly chosen units. For example, maybe you used femto-meters, instead of kilometers on one or more variables.
So normalize the data to avoid the numerical problems. On some problems, normalization is no problem at all, such as computing a correlation, which is scale invariant. Or scale may not matter to you, but double precision computations may fail due to scaling issues.
At the end, it may be necessary to re-transform the problem, post-solution to undo the normalizations.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!