Ask Your Question

YetAnotherUsr's profile - activity

2023-07-21 14:00:22 +0200 received badge  Famous Question (source)
2022-10-30 14:23:56 +0200 received badge  Notable Question (source)
2022-02-18 19:30:08 +0200 received badge  Popular Question (source)
2021-07-20 15:57:00 +0200 commented answer Solving equations in SageMath

By the way, what if I wanted to solve for two variables, meaning I wanted to check if for different $\sigma_1$ and $\sig

2021-07-20 15:56:36 +0200 commented answer Solving equations in SageMath

By the way, what if I wanted to solve for two variables, meaning I wanted to check if for different $\sigma_1$ and $\sig

2021-07-20 15:39:21 +0200 commented answer Solving equations in SageMath

Thanks, that worked!!

2021-07-20 15:39:09 +0200 marked best answer Solving equations in SageMath

Hey! I'm new to sage and I'm trying to see how complex are the calculations that I can express in SageMath. So I considered the following example, the comparison between the likelihood of two normals with different means but same variance:

$$ \dfrac{1}{\sigma\sqrt{2\pi} } \exp{\left(-\dfrac{(x-\mu_1)^2}{2\sigma^2}\right)} = \dfrac{1}{\sigma\sqrt{2\pi} } \exp{\left(-\dfrac{(x-\mu_2)^2}{2\sigma^2}\right)} $$

I know that the answer must be $\mu_1 = \mu_2$. Can I solve it with SageMath? I tried:

x, mu1, mu2, sigma = var('x, mu1, mu2, sigma')
exp((0.5/sigma)*(x-mu1)^2)==exp((0.5/sigma)*(x-mu2)^2)

and

solve(exp((0.5/sigma)*(x-mu1)^2)==exp((0.5/sigma)*(x-mu2)^2))

but that doesn't seem to work. Is it possible to do so in sagemath? Thanks!!

2021-07-20 15:39:09 +0200 received badge  Scholar (source)
2021-07-20 15:39:09 +0200 received badge  Supporter (source)
2021-07-19 23:28:54 +0200 received badge  Student (source)
2021-07-19 22:54:05 +0200 asked a question Solving equations in SageMath

Solving equations in SageMath Hey! I'm new to sage and I'm trying to see how complex are the calculations that I can exp