Calculate Ratio from Data: X/Y Value Comparison

  • Thread starter Thread starter the_dialogue
  • Start date Start date
  • Tags Tags
    Calculation Ratio
AI Thread Summary
The discussion focuses on determining the exchange rate of two independent variables, X and Y, affecting a dependent variable, "Value." The user seeks to establish a ratio of the form X = kY, where k is a constant, but faces challenges in generating pairs of values that yield the same "Value." It is noted that if one variable is zero, the ratio becomes undefined or infinite, complicating the relationship. A proposed method involves using a function of the form z(X,Y) = c_1(Y/X) + c_2 to find constants c_1 and c_2, which can help identify the relationship between X and Y. Ultimately, if z(X=0,Y=anything) yields a finite result, it indicates that the relationship is not a simple proportionality.
the_dialogue
Messages
77
Reaction score
0
I have data arranged like this:

-----------Combo1---------Combo2
X-----------18-----------------15
Y-----------0------------------3
Value------5.44---------------7.63

So (18,0)--> 5.44 and (15,3)--> 7.63. Now different values of X and Y affect "Value". So it's two indepent variables affecting the depend variable, "Value".

I need to figure out what the exchange rate of X and Y is. In other words, i need the Ratio X=kY where k is a constant of some sort.

My first strategy was to generate 2 random pairs of values for (X,Y) that both give the same "Value". Then, i could deduce the ratio. E.g. If (10,0) and (15,10) give the same Value, then the ratio is 5X=10Y or X =2Y. But this has proven difficult because the values are difficult to generate!

How could i determine the ratio strictly from the 2 columns above (keeping the Value(s) different)?! Is this possible?!
 
Physics news on Phys.org
If x=18 and y=0, then k=infinity...
 
berkeman said:
If x=18 and y=0, then k=infinity...
I know. That's why there must always be a change in both X and Y.

For example, if (15,0) and (10,2) give the same Value, then the ratio is 5X = 2y. And hence, k = 2/5.
 
What berkeman is saying is that the function of two variables value(X,Y)=z is not such that given a fixed value of z, the solutions {(X,Y)} are related by a proportionality relation X=kY, because we know that (18,0) is a solution of z(X,Y)=5.44, but there is no k such that 18=k0.

There is however, a k such that k18=0; it is k=0.

In general, the function that will give a relation btw X and Y of the form kX=Y when you fix z is of the form

z(X,Y)=c_1\frac{Y}{X}+c_2

You can find the values of c_1 and c_2 using the values in your table. Now just generate a 3rd set of value (X,Y,z(X,Y)). If they do not satisfy the above equation, then z(X,Y) is not of this form and givena fixed z, X and Y are not related by a simple proportionality constant. They are related by something more complex.

A simpler way still would be to verify if z(X=0,Y=anything) exists (i.e. is not infinity). If it does, then it is sufficient to conclude that z is not of the above form.
 
Last edited:
I tried to combine those 2 formulas but it didn't work. I tried using another case where there are 2 red balls and 2 blue balls only so when combining the formula I got ##\frac{(4-1)!}{2!2!}=\frac{3}{2}## which does not make sense. Is there any formula to calculate cyclic permutation of identical objects or I have to do it by listing all the possibilities? Thanks
Since ##px^9+q## is the factor, then ##x^9=\frac{-q}{p}## will be one of the roots. Let ##f(x)=27x^{18}+bx^9+70##, then: $$27\left(\frac{-q}{p}\right)^2+b\left(\frac{-q}{p}\right)+70=0$$ $$b=27 \frac{q}{p}+70 \frac{p}{q}$$ $$b=\frac{27q^2+70p^2}{pq}$$ From this expression, it looks like there is no greatest value of ##b## because increasing the value of ##p## and ##q## will also increase the value of ##b##. How to find the greatest value of ##b##? Thanks
Back
Top