Integrate a bivariate normal distribution over y when x is fixed

조회 수: 3 (최근 30일)
Apurva Patil
Apurva Patil 2021년 4월 18일
편집: Paul 2021년 4월 18일
I have a bivariate normal distribution f(x,y). I want to integrate f(x=a, y) over y, say from y1 to y2. Is there any direct/simpler way to do this without using the integral function?
Thank you.

채택된 답변

Paul
Paul 2021년 4월 18일
편집: Paul 2021년 4월 18일
One simple approach is to evaluate f(a,y) for vector of y from y1 to y2 and then use cumtrapz() or trapz() on the result.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by