0

Let's say I have the following data:

x=np.random.normal(10, size=(100))
y=np.random.normal(15, size=(100))

sns.displot(data=[x,y], kind="kde")

This generates these distributions:

enter image description here

So, what I want to do is: Find the area that is a product of the interception of both curves that accomplish this:

P(x>10) & P(y<15)

and then fill it.

I don't if it is possible but any help would be appreciated

I tried using the fill_betweenbut didn't have anny luck. Also I don't know how to fit the distributions so I get the area that I want.

gapb2708
  • 3
  • 2

0 Answers0