How to solve for complicated term + squared term (partial correlation formula)

Maziana

New member
Joined
Mar 27, 2015
Messages
2
The partial correlation formula:

p = (A - BC)/((sqrt(1 - B2))(sqrt(1 - C2)))

where p = partial correlation (r23.1), A = r23, B = r12, C = r13

I want to solve for B.

I tried solving it by squaring the whole formula first:
p2 = (A - BC) (A - BC) / (1 - B2) (1 - C2)
p2 = (A2 - 2ABC + B2C2) / (1 - C2 - B2 + B2C2)

Then multiply by p2:
p2 - p2C2 - p2B2 + p2B2C2 = A2 - 2ABC + B2C2

Then I tried moving every term with an B to one side:
- p2B2 + p2B2C2 + 2ABC - B2C2= - p2 + p2C2 + A2

But then I am stumped. I don't know what to do next, since there are 3 terms with B2 and one with B on the same. Any help would be greatly appreciated.

Not sure if this belongs in the algebra category (maybe this involves calculus?).
 
The partial correlation formula:

p = (A - BC)/((sqrt(1 - B2))(sqrt(1 - C2)))

where p = partial correlation (r23.1), A = r23, B = r12, C = r13

I want to solve for B.

I tried solving it by squaring the whole formula first:
p2 = (A - BC) (A - BC) / (1 - B2) (1 - C2)
p2 = (A2 - 2ABC + B2C2) / (1 - C2 - B2 + B2C2)

Then multiply by p2:
p2 - p2C2 - p2B2 + p2B2C2 = A2 - 2ABC + B2C2

Then I tried moving every term with an B to one side:
- p2B2 + p2B2C2 + 2ABC - B2C2= - p2 + p2C2 + A2

But then I am stumped. I don't know what to do next, since there are 3 terms with B2 and one with B on the same. Any help would be greatly appreciated.

Not sure if this belongs in the algebra category (maybe this involves calculus?).
What you would like to do is to get an equation of the form
a B2 + b B + c = 0
where a, b, c may be, in themselves, complicated expressions but don't depend on B. You can then use the quadratic formula. So, collect terms and you have
(p2C2 - p2 - C2) B2 + (2AC) B + (p2 - p2C2 - A2) = 0
 
Yay, it works! Thanks so much, both of you.

((-2*A*C) + (sqrt( (2*A*C)^2 - (4*((p^2*C^2) - p^2 - C^2)*(p^2 - (p^2*C^2) - A^2))
)))/ (2*((p^2*C^2) - p^2 - C^2))
 
But then I am stumped. I don't know what to do next, since there are 3 terms with B2 and one with B on the same. Any help would be greatly appreciated.
 
Top