Can one of you help me out with this please? turtle? drbuchanan?
I have a set of figures (more than 10) which all fall within the range 0 <= w <= 1. I have mapped the figures into the range (-infinity, infinity) by the transform:
X = ln[(w + 0.0001)/(1 - w + 0.0001)]
I wish to use the inverse transformation with values a and b chosen such that the values returned by
Z = 50(e<sup>aX + b</sup>)/(1 + e<sup>aX + b</sup>)
have a specified mean (M) and standard deviation (S).
It is possible to form two equations:
1) M = 1/n * (Z<sub>1</sub> + Z<sub>2</sub> + Z<sub>3</sub> + ... Z<sub>n</sub>)
2) S<sup>2</sup> = 1/n * [(Z<sub>1</sub> - M)<sup>2</sup> + (Z<sub>2</sub> - M)<sup>2</sup> + (Z<sub>3</sub> - M)<sup>2</sup> + ... + (Z<sub>n</sub> - M)<sup>2</sup>]
Substitute the expression for Z given earlier, and we have a non-linear system of equations.
How does one solve such a system for a and b? I am told I can use numerical iterative procedures (e.g. Newton-Raphson), but I'm not really sure how to do this, and most of the websites I've found on the topic are either too simple or too complex.
Any help would be greatly appreciated.
I have a set of figures (more than 10) which all fall within the range 0 <= w <= 1. I have mapped the figures into the range (-infinity, infinity) by the transform:
X = ln[(w + 0.0001)/(1 - w + 0.0001)]
I wish to use the inverse transformation with values a and b chosen such that the values returned by
Z = 50(e<sup>aX + b</sup>)/(1 + e<sup>aX + b</sup>)
have a specified mean (M) and standard deviation (S).
It is possible to form two equations:
1) M = 1/n * (Z<sub>1</sub> + Z<sub>2</sub> + Z<sub>3</sub> + ... Z<sub>n</sub>)
2) S<sup>2</sup> = 1/n * [(Z<sub>1</sub> - M)<sup>2</sup> + (Z<sub>2</sub> - M)<sup>2</sup> + (Z<sub>3</sub> - M)<sup>2</sup> + ... + (Z<sub>n</sub> - M)<sup>2</sup>]
Substitute the expression for Z given earlier, and we have a non-linear system of equations.
How does one solve such a system for a and b? I am told I can use numerical iterative procedures (e.g. Newton-Raphson), but I'm not really sure how to do this, and most of the websites I've found on the topic are either too simple or too complex.
Any help would be greatly appreciated.