Mathematica Simplify this expression with Mathematica

AI Thread Summary
The discussion centers on a challenge with integrating a product of probability density functions (PDFs) of normal distributions in Mathematica to achieve a Gaussian distribution. The user is struggling to simplify the integral expression and seeks advice on how to proceed. Suggestions include using FullSimplify on specific parts of the expression and gradually reintroducing components to identify simplification issues. Clarification is provided regarding the variable "n," which represents the upper limit of the product index, indicating that setting n to 1 simplifies the expression but does not reflect the original intent. The final simplified form of the integral is presented, which results in a Gaussian distribution expression.
dabd
Messages
25
Reaction score
0
I know this expression should return a Gaussian distribution but I can't get Mathematica to simplify the integral. What am I missing?

<br /> \text{Simplify}\left[\frac{\text{Product}\left[\text{PDF}\left[\text{NormalDistribution}[y,\sigma ],x_i\right],\{i,n\}\right]\text{PDF}[\text{NormalDistribution}[\mu ,\phi ],y]}{\text{Integrate}\left[\text{Product}\left[\text{PDF}\left[\text{NormalDistribution}[y,\sigma ],x_i\right],\{i,n\}\right]\text{PDF}[\text{NormalDistribution}[\mu ,\phi ],y],\{y,-\text{Infinity},\text{Infinity}\},\text{Assumptions}\to \{\sigma &gt;0,\phi &gt;0\}\right]},\{\sigma &gt;0,\phi &gt;0\}\right]<br />
 
Physics news on Phys.org
Kinda' messy dab. Runs right off the right side of my computer. Try FullSimplify and just on the part you need to simplify. Then start adding things back to the expression one by one to see if that helps.
 
Ok, so I am trying to integrate this with no success

FullSimplify[
Integrate[
Product[PDF[NormalDistribution[y, \[Sigma]], Subscript[x, i]], {i,
n}]

PDF[NormalDistribution[\[Mu], \[Phi]], y],
{y, -Infinity, Infinity},
Assumptions -> {\[Sigma] >= 0, \[Phi] >= 0}]]
 
Im not sure what "n" is, but if its 1, what you need to do is change the greater than equals signs to just greater than signs, I get:

Code:
n = 1
Integrate[
  Product[PDF[NormalDistribution[y, \[Sigma]], Subscript[x, i]], {i, 
     n}] PDF[NormalDistribution[\[Mu], \[Phi]], y], {y, -Infinity, 
   Infinity}, 
  Assumptions -> {\[Sigma] > 0, \[Phi] > 0}] // FullSimplify

<br /> \frac{e^{-\frac{\left(\mu -x_1\right){}^2}{2 \left(\sigma ^2+\phi ^2\right)}}}{\sqrt{2 \pi } \sqrt{\sigma ^2+\phi ^2}}<br />
 
By letting n=1 you eliminate the product and that is not what I meant.
n is simply the upper limit of the product, i.e., 'i' goes from 1 to 'n'.

Thanks.
 

Similar threads

Replies
3
Views
1K
Replies
2
Views
2K
Replies
1
Views
3K
Replies
1
Views
2K
Replies
20
Views
1K
Replies
3
Views
3K
Replies
10
Views
1K
Replies
2
Views
1K
Replies
1
Views
2K
Back
Top