Stuck on AI4M C3W1 # UNQ_C4

@Mubsi can you please have a look at my logic in UNQ_C4? I am having problems with calculating the treatment probability.

(Solution code removed, as posting it publicly is against the honour code of this community)


Hi @edgarbc ,

Regarding p_trtmt, why do you think the probability is log of odds_trtmt?

Review this approach and try to come up with a different way of calculating the new probability.

Hint: Look at the 2nd Hint for this exercise :slight_smile:

Please let me know how it goes.

Hi @Juan_Olano,

thanks for checking. Got it thank you!

p_treatment = odds_trtmt / (1+odds_trtmt)

Excellent! Iā€™m glad you got it!

Good luck with the rest of the course!


1 Like

Thanks for stepping in and helping @Juan_Olano!