Ask Your Question

alifacer's profile - activity

2021-08-21 22:43:20 +0200 received badge  Famous Question (source)
2020-03-23 22:50:27 +0200 received badge  Notable Question (source)
2019-05-22 15:20:47 +0200 received badge  Popular Question (source)
2017-11-23 15:03:43 +0200 asked a question Numerical approximation of multiple integral

I want to numerical integrate:

$$\int_{-\infty}^{A_1} \int_{-\infty}^{A_2-x_1} p(x_1)p(x_2)dx_1dx_2 ,$$ where $p(x_i)$ is a random variable that has a normal distribution with mean $\mu_i$ and standard deviation $\sigma_i$.

I faced with several problems:

  1. I can't integrate even this simply integral:

import scipy.stats as st

integrate(st.norm.pdf(x), x)

The result is error: TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

  1. How to integrate multiple integrals with different $A_i$.