Need a calculation to find a relationship/correlation

  • Thread starter shott92
  • Start date
  • Tags
    Calculation
In summary, to find the correlation between two variables, you can use statistical methods such as the Pearson correlation coefficient or Spearman rank correlation coefficient. It is important to note that correlation does not equal causation and further research is necessary to establish a causal relationship. While correlation can help understand the relationship between variables, it does not necessarily allow for prediction. A strong correlation is one that is close to +1 or -1, with a value of 0 indicating a weak relationship. The correlation coefficient indicates the strength and direction of the relationship, with positive values indicating a positive relationship and negative values indicating a negative relationship.
  • #1
shott92
29
0
basically i have a system where force 1 + force 2 must equal force max
they have the following ratio (these are the ultimate forces as in 100% of force 1 needs to be used or 100% of force 2)
force1 = 1906.901
force2 = 1760.033
simple, but to really throw me off... force 1 has to be 29% of force2...
so i kinda got this using goal seek to find force2 = 1388.40585, as such
with force 1 contributing 21.114% of force 1 = 402.6377
and force 2 contributing 78.886% of force 2 = 1388.40585 (so i found this with goal seek :/ but need to find an equation or way to calcualte the correlation without goal seek basically)

sorry i have tried making it as clear as i can, if clarifying anything specific will help please ask.
thanks in advance guys
 
Mathematics news on Phys.org
  • #2
shott92 said:
basically i have a system where force 1 + force 2 must equal force max
they have the following ratio (these are the ultimate forces as in 100% of force 1 needs to be used or 100% of force 2)
force1 = 1906.901
force2 = 1760.033
simple, but to really throw me off... force 1 has to be 29% of force2...
so i kinda got this using goal seek to find force2 = 1388.40585, as such
with force 1 contributing 21.114% of force 1 = 402.6377
and force 2 contributing 78.886% of force 2 = 1388.40585 (so i found this with goal seek :/ but need to find an equation or way to calcualte the correlation without goal seek basically)

sorry i have tried making it as clear as i can, if clarifying anything specific will help please ask.
thanks in advance guys

If you define ##x## and ##y## respectively as the first and the second force, then you have:

##x=0.29y##
##x\le1906.901##
##y\le1760.033##

And if I understand well, you want to maximise ##f(x,y)=x+y## under the stated conditions.

How would you do that?
 
  • #3
so yeah the first bit i get, the x=0.29y as this is and then x and y have to be equal or less than the given values but i don't get where i would have to go from there...
i used excel and put in
cell1 (goal seek - must equal 1 change cell 4)
cell2 (=cell4*0.29/force1)
cell3 (=cell4/force2)
cell4 (goal seek (variable cell)
this gave me the percentages but it may have well of been trial and error (i think that's how excel does it to be fair)
but i need to use this as part of a larger equation using first principles and so so i need some form of calculation that actually has an answer if you get me
and unfortunatly if your answer solves my problem, I am afraid i don't understand nor know how to do it, sorry
 
  • #4
shott92 said:
so yeah the first bit i get, the x=0.29y as this is and then x and y have to be equal or less than the given values but i don't get where i would have to go from there...
i used excel and put in
cell1 (goal seek - must equal 1 change cell 4)
cell2 (=cell4*0.29/force1)
cell3 (=cell4/force2)
cell4 (goal seek (variable cell)
this gave me the percentages but it may have well of been trial and error (i think that's how excel does it to be fair)
but i need to use this as part of a larger equation using first principles and so so i need some form of calculation that actually has an answer if you get me
and unfortunatly if your answer solves my problem, I am afraid i don't understand nor know how to do it, sorry

Ah, you also want their ratios to add up to 100%. I understand now.

In that case, we add ##\frac{x}{1906.901} + \frac{y}{1760.033} = 1## as another condition.

Have you seen methods for solving constrained optimization problems?
 
  • #5
nope sorry once again not got a clue :/
 
  • #6
so is there an actual calculation that re-arranges this system to give a ratio or percentage or come correlation or is it only solvable with goal seek or trail and error ??
 
  • #7
shott92 said:
so is there an actual calculation that re-arranges this system to give a ratio or percentage or come correlation or is it only solvable with goal seek or trail and error ??
The method of Lagrange multipliers is usually used for solving constrained optimization problems like the one you've proposed. More information about that method here: http://en.wikipedia.org/wiki/Lagrange_multiplier

That's the only way I can think of solving this problem analytically, although it might not be (or certainly is not) the most optimal approach. Generally, numerical methods should be used to solve such problems, just like you did with Excel. When analytical solutions aren't expected, you shouldn't worry about using numerical methods.

Also, I can confirm you that the answer you've found with Excel is in fact the maximum value of ##f(x,y)## we're looking for.
 
Last edited:

FAQ: Need a calculation to find a relationship/correlation

How do I find the correlation between two variables?

To find the correlation between two variables, you will need to use a statistical method such as the Pearson correlation coefficient or the Spearman rank correlation coefficient. These methods involve calculating the covariance and standard deviations of the variables and using them to determine the strength and direction of the relationship between the variables.

What is the difference between correlation and causation?

Correlation refers to a statistical relationship between two variables, while causation refers to a cause-and-effect relationship between two variables. Correlation does not necessarily imply causation, as two variables can be correlated without one causing the other. It is important to consider other factors and conduct further research before establishing a causal relationship.

Can I use correlation to make predictions?

Correlation can help you understand the relationship between two variables, but it does not necessarily allow you to make predictions. Correlation does not imply causation, and there may be other factors that influence the relationship between the variables. Therefore, it is important to use caution when using correlation to make predictions.

What is a strong correlation?

A strong correlation refers to a relationship between two variables that is close to either +1 or -1. A correlation coefficient of +1 indicates a perfect positive correlation, while a correlation coefficient of -1 indicates a perfect negative correlation. The closer the correlation coefficient is to 0, the weaker the relationship between the variables.

How do I interpret a correlation coefficient?

A correlation coefficient indicates the strength and direction of the relationship between two variables. A positive correlation coefficient indicates a positive relationship, meaning that as one variable increases, the other variable also tends to increase. A negative correlation coefficient indicates a negative relationship, meaning that as one variable increases, the other variable tends to decrease. The closer the correlation coefficient is to 0, the weaker the relationship between the variables.

Back
Top