How do you solve a system of equations with 4 variables and 4 equations?

  • Context: Graduate 
  • Thread starter Thread starter noowutah
  • Start date Start date
  • Tags Tags
    Variables
Click For Summary

Discussion Overview

The discussion revolves around solving a system of four equations with four variables, specifically in the context of finding maximum entropy joint probabilities in information theory. The equations involve exponential functions of the variables and are related to known marginal probabilities.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents a system of equations involving exponential terms and expresses the need to solve for the variables algebraically.
  • Another participant suggests that the problem can be approached as a multi-variable root finding problem, indicating the involvement of calculus and optimization.
  • A participant points out a potential issue with the equations, noting that the sum of certain terms leads to a condition that may prevent a unique solution due to having only three equations for four unknowns.
  • One participant confirms that the condition for the sums of the marginal probabilities holds true, which is essential for the context of the problem.
  • A later reply reformulates the equations to show a relationship between the variables, suggesting a method to express the solution in terms of a parameter.
  • Another participant acknowledges the importance of understanding the relationships between the joint probabilities and marginal probabilities, indicating a resolution to their concerns.

Areas of Agreement / Disagreement

Participants express differing views on the solvability of the system, with some highlighting potential issues with uniqueness while others propose methods to express solutions. The discussion does not reach a consensus on the existence of a unique solution.

Contextual Notes

The discussion includes assumptions about the relationships between the variables and the nature of the equations, which may affect the solvability. The dependency on the condition that the sums of the marginal probabilities equal one is also noted.

noowutah
Messages
56
Reaction score
3
How do you solve the system of equations

e^{x_{1}+y_{1}}+e^{x_{1}+y_{2}}=a_{1}
e^{x_{2}+y_{1}}+e^{x_{2}+y_{2}}=a_{2}
e^{x_{1}+y_{1}}+e^{x_{2}+y_{1}}=b_{1}
e^{x_{1}+y_{2}}+e^{x_{2}+y_{2}}=b_{2}

x1, x2, y1, y2 are the variables for which I want to solve the equations, a1, a2, b1, b2 are known.

Context: I need to solve this in order to get the unknown maximum entropy joint probabilities

p_{ij}=e^{-1-x_{i}-y_{j}}

\mbox{for the known marginal probabilities (}a_{i}\mbox{ and }b_{j}\mbox{).}

i know there is way to do this in information theory, but I need to solve it algebraically.
 
Physics news on Phys.org
I don't need a numeric solution or an approximation. I want to solve the equation for x1, x2, y1, y2, if possible. If not, I'll have to live with it.
 
There's a problem here. First subsitute u_1 = e^{x1} v_1 = e^{y1} etc.

Than the four equations become:

u_1 v_1 + u_1 v_2 = a_1
u_2 v_1 + u_2 v_2 = a_2
u_1 v_1 + u_2 v_1 = b_1
u_1 v_2 + u_2 v_2 = b_2

No if you add the first two you get:

u_1 v_1 + u_1 v_2 + u_2 v_1 + u_2 v_2 = a_1 + a_2

and if you add the last two you get

u_1 v_1 + u_1 v_2 + u_2 v_1 + u_2 v_2 = b_1 + b_2

These can't both be true unless a_1 + a_2 = b_1 + b_2

And if that is the case, you have only 3 equations left for 4 unknowns, so there won't be an unique solution.
 
Thank you! Quick reply here: yes, a1+a2=b1+b2 because they are marginal probabilities and sum to 1. Also,

u_{1}v_{1}+u_{1}v_{2}+u_{2}v_{1}+u_{2}v_{2}=1

because these are the joint probabilities. Sorry! I should have mentioned that. I will be back in half an hour to report if this gives me enough information to solve the system.
 
If you write the equations as:

u_1 (v_1 + v_2) = a_1
v_1 (u_1 + u_2) = b_1
(v_1 + v_2)(u_1 + u_2) = 1

it's easy to see if (u_1,u_2,v_1,v_2) is a solution, so is (c u_1, c u_2, \frac {v_1}{c}, \frac {v_2}{c} )

to get a solution you can set u1 + u2 = 1 so v1

this gets you

u_1 = c a_1
u_2 = c a_2
v_1 = \frac {b_1}{c}
v_2 = \frac {b_2}{c}

as the complete solution.
 
  • Like
Likes   Reactions: 1 person
Got it. Thank you, willem2. There was information hiding here that I didn't take into account (basically, that it is sufficient to know p_ij for i=1,...,m-1 and j=1,...,n-1 in order to know the m x n dimensional joint probability matrix). Be that as it may, problem solved!
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K