Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.4K Views
|
7 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Replace[] malfunction?

Posted 11 years ago

The replacement operation below doesn't work properly, i.e. not all the the sigmas are changed.

enter image description here

Why?

POSTED BY: Sandu Ursu
7 Replies
POSTED BY: Isaac Abraham
Posted 11 years ago

interesting

POSTED BY: Sandu Ursu
POSTED BY: Isaac Abraham
POSTED BY: David Reiss

I am having a hard time posting what I want to. However my suggestion is to see what the FullForm of the expression is. your sigma^2 may not appear in that form in both places, but your replacement rule only covers the specific pattern that you use

POSTED BY: David Reiss
Posted 11 years ago

There is just the likelihood function of the normal distribution with a replacement rule.

I like to work with greeks in Mathematica :), so if you copy the LaTeX code below in the online editor: http://www.codecogs.com/latex/eqneditor.php, you will get the picture.

\left(2 \pi  \sigma ^2\right)^{-\frac{n}{2}} \exp \left(-\frac{\sum _{i=1}^n \left(x_i-\theta \right){}^2}{2 \sigma ^2}\right)\text{/.}\, \sigma ^2\to \kappa
POSTED BY: Sandu Ursu
POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard