# Maximum likelihood

**URL:** <https://community.deeplearning.ai/t/maximum-likelihood/289411>\
**Category:** Supervised ML: Regression and Classification\
**Tags:** week-module-3\
**Created:** [March 13, 2023, 2:10am UTC](https://community.deeplearning.ai/t/maximum-likelihood/289411 "2023-03-13T02:10:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![peachans](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@peachans](https://community.deeplearning.ai/u/peachans)\
**Post date:** [March 13, 2023, 2:10am UTC](https://community.deeplearning.ai/t/maximum-likelihood/289411/1 "2023-03-13T02:10:13Z")

</div>

Just want to make sure that is the logistic loss function or binary cross entropy are derived from maximum likelihood estimation? And cross entropy with more than two categories is softmax? Does softmax derived from maximum likelihood too?

---

<div class="post-metadata">

**Author:** ![AbdElRhaman\_Fakhry](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/abdelrhaman_fakhry/32/65768_2.png) [@AbdElRhaman\_Fakhry](https://community.deeplearning.ai/u/AbdElRhaman_Fakhry)\
**Post date:** [March 13, 2023, 3:48am UTC](https://community.deeplearning.ai/t/maximum-likelihood/289411/2 "2023-03-13T03:48:11Z")

</div>

Hi @peachans

The logistic regression you classify between 1 class or 2 classes… if 1 class you classify if it happen(occurred) or in the other words if the probability of this class is larger than the threshold you choose that this is happened(occurred like yes or no)  
**BUT**

If you classify more than 2 classes all possible cases can be add include null .you take the class with the highest probability

Best Regards,  
Abdelrahman

---

<div class="post-metadata">

**Author:** ![peachans](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@peachans](https://community.deeplearning.ai/u/peachans)\
**Post date:** [March 13, 2023, 2:21pm UTC](https://community.deeplearning.ai/t/maximum-likelihood/289411/3 "2023-03-13T14:21:54Z")

</div>

Appreciate your answer. But i just want to make sure that the cross entropy function is derived from maximum likelihood estimation?

---

<div class="post-metadata">

**Author:** ![Ali\_Moghaddam](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@Ali\_Moghaddam](https://community.deeplearning.ai/u/Ali_Moghaddam)\
**Post date:** [March 13, 2023, 2:39pm UTC](https://community.deeplearning.ai/t/maximum-likelihood/289411/4 "2023-03-13T14:39:19Z")

</div>

> [@peachans](#):
>
> binary cross entropy

Well, what can be shown for sure is that “maximizing likelihood” is equivalent to “minimizing the cross-entropy” even in softmax case. The equivalence is very generic and thus the answer to your quesion is yes. But I personally prefer not to say one of them is derived from the other which may cause falling in the loop of axiomatic formulation of probability and statistics theory.

---

<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:** [March 13, 2023, 8:42pm UTC](https://community.deeplearning.ai/t/maximum-likelihood/289411/5 "2023-03-13T20:42:57Z")

</div>

Hello @peachans,

Yes, we can derive the crossentropy loss by MLE.

Cheers,  
Raymond
