# Normalization Formulas

**URL:** <https://community.deeplearning.ai/t/normalization-formulas/268331>\
**Category:** Improving Deep Neural Networks: Hyperparameter tun\
**Tags:** coursera-platform\
**Created:** [February 4, 2023, 4:36pm UTC](https://community.deeplearning.ai/t/normalization-formulas/268331 "2023-02-04T16:36:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavel\_Grobov](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@Pavel\_Grobov](https://community.deeplearning.ai/u/Pavel_Grobov)\
**Post date:** [February 4, 2023, 4:36pm UTC](https://community.deeplearning.ai/t/normalization-formulas/268331/1 "2023-02-04T16:36:37Z")

</div>

Hi,  
I need to clarify about normalizing formula.

Dr Andrew wrote that sigma^2 = 1/m \* sum(x(i) ^ 2) and then X = X/sigma ^ 2.  
But in clarification it is X = X/sigma.

So what is the right formula ?

Another thing is about sigma^2 formula it is 1/m \* sum(x(i)^2) ot it is  
1/m \* sum(x(i) - mean)^2 ?

---

<div class="post-metadata">

**Author:** ![rmwkwok](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rmwkwok/32/126977_2.png) [@rmwkwok](https://community.deeplearning.ai/u/rmwkwok)\
**Post date:** [February 5, 2023, 4:01am UTC](https://community.deeplearning.ai/t/normalization-formulas/268331/2 "2023-02-05T04:01:27Z")

</div>

> [@Pavel\_Grobov](#):
>
> So what is the right formula ?

Hello @Pavel_Grobov, the clarification page has the correct formula: X = X/sigma.

> [@Pavel\_Grobov](#):
>
> Another thing is about sigma^2 formula it is 1/m \* sum(x(i)^2) ot it is  
> 1/m \* sum(x(i) - mean)^2 ?

 ![image](https://global.discourse-cdn.com/dlai/original/3X/e/9/e914d54e8779e80ac7295ee9e82897d8201a32a2.jpeg)

step 3 is based on the outcome of the step 2, and step 2 already centered the X, so we don’t need to do it again in step 3.

Cheers,  
Raymond

---

<div class="post-metadata">

**Author:** ![Pavel\_Grobov](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@Pavel\_Grobov](https://community.deeplearning.ai/u/Pavel_Grobov)\
**Post date:** [February 6, 2023, 7:02am UTC](https://community.deeplearning.ai/t/normalization-formulas/268331/3 "2023-02-06T07:02:05Z")

</div>

Thank you very much @rmwkwok ! 🙂

---

<div class="post-metadata">

**Author:** ![rmwkwok](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rmwkwok/32/126977_2.png) [@rmwkwok](https://community.deeplearning.ai/u/rmwkwok)\
**Post date:** [February 6, 2023, 7:04am UTC](https://community.deeplearning.ai/t/normalization-formulas/268331/4 "2023-02-06T07:04:22Z")

</div>

You are welcome @Pavel_Grobov!
