Pathological PDFs. eg: ratio of normals including Cauchy.

In summary, the problem of calculating the mean of a ratio of Gaussians, specifically for the Cauchy distribution, is explored. The result is derived using symmetric arguments and numerical experiments. The final formula is presented as well as a graph showing results from numerical experiments. The derivation is given in detail and improvements are requested.
  • #1
andrewr
263
0
Hi all,
I've been having a discussion about doing calculations on data which is supposedly Gaussian.
And (Of course) there is a problem: Once operations are performed on the measurements -- such as taking a ratio of one kind of measurement to another; the result is often no longer a Gaussian; In particular, I'd like to explore in this thread the problem of Gaussians ratios.

Stephen Tashi made some excellent comments, and provided some links that I think describe the pathological nature of this distribution well -- but also see, especially, the paper by Marsaglia.
Background information

What I am going to present in this thread is an analysis of the properties of ratio's of Gaussians (which ends in the very pathological Cauchy) I wish to study the mean (hopefully exact) and a quasi standard deviation (quasi because many of these distributions won't have a finite one...)

Based on symmetry arguments, I would say even the Cauchy distribution has a real mean, or no mean -- in the sense that it is a definite number, 0. The Cauchy, and I think many others with mu's very close to zero *do* have means.

For many ratios of Gaussians -- especially those ratios where the numerator and denominators have respective μ >> σ -- doing numerical experiments (eg: sampling approximations) I get repeatable results for both the sample mean and deviation of the experiment. Occasionally I will get a catastrophic failure... and this happens much more often as the mean of the denominator approaches zero.

I'd like to derive formulas for both the mean, and probable *sample* deviation, and also the confidence intervals that a sample will avoid a "catastophic" sub-sampling;

and I'll have to explain some of this later on in the thread. :redface:

For now, I'd like to verify my derivation for the mean of a ratio of Gaussians. Attached to the bottom of this post is a graph showing (the red line) what my derivation produced as a final result. Also on the graph are 6 locations that I did numerical experiments on and received results in agreement with the derivation often. I don't think there is a question of whether the result is correct or not -- I'm confident it is correct; there is just more to the problem...

Notice, the graph has a numerator of N(1,0); a constant; but see the derivation itself to understand why it is sufficient for calculating mu of N(a,1) / N(b,1).

The formula I came up with is (drumroll please!):
[tex]
\mu = a \sqrt { 2 } \int \limits _{ 0 } ^{ b \over \sqrt { 2 } } e ^{ t ^ { 2 } - b ^{ 2 } \over 2 } dt
[/tex]
Or, alternately,
[tex]
\mu = a \sqrt { \pi \over 2 } e ^{ - { b ^{ 2 } \over 2 } } \times erfi \left ( { b \over \sqrt { 2 } } \right )[/tex]
where
[tex] erfi(t) = \sqrt { 4 \over \pi } \int \limits _{ 0 } ^{ t } e ^{ t ^ { 2 } } dt
[/tex]

I will give the derivation in the next post, which needs some cleaning up. I'd appreciate some pointers on how to improve the derivation's quality -- as that will undoubtedly help me work out (clearly) the issues about higher moments...

Thank you for your interest. :smile:
 

Attachments

  • invertNormal.png
    invertNormal.png
    4.8 KB · Views: 528
Last edited:
Physics news on Phys.org
  • #2
How to calculate the mean of a ratio of Gaussians; a result.

The probability of each ratio element is:

[tex] p(X,Y)={ 1 \over 2\pi } ( e^{-{ 1 \over 2}(x-a)^2} e^{-{ 1 \over 2}(y-b)^2} ) [/tex]

The elements of the mean of the ratio are:

[tex] \mu_{e} ( X,Y )=x/y [/tex]

Which makes the weighted mean's elements:

[tex] p(X,Y) \mu_{e} ( X,Y ) = { 1 \over 2\pi } x/y( e^{-{ 1 \over 2}(x-a)^2} e^{-{ 1 \over 2}(y-b)^2} ) [/tex]

Combining yields:

[tex] \mu = \int \limits _{ - \infty }^{ \infty } \int \limits_{ - \infty }^{ \infty }{ 1 \over 2 \pi } x/y( e^{-{ 1 \over 2 }(x-a)^2} e^{-{ 1 \over 2 }(y-b)^2} ) dxdy [/tex]

Changing to polar coordinates to allow fixed radii vs probability pairs:

[itex] r^{2}=(x-a)^{2}+(y-b)^{2}[/itex] and [itex] x-a=cos( \theta )r [/itex] and [itex] y-b=sin( \theta )r [/itex]

[tex]dxdy=r \times d \theta dr [/tex]

[tex] \mu = \int \limits_{ 0 }^{ \infty } \int \limits _{0}^{ 2 \pi } { 1 \over 2 \pi } (cos( \theta )r+a)/(sin( \theta )r+b) e^{-{ 1 \over 2}r^2} (r \times d \theta dr) [/tex]

The ratio weight's numerator has two parts summed, the angular integral will also have two parts:
The portion caused by [itex]cos( \theta )r \over sin( \theta )r+b [/itex] is just [itex]log \left ( sin( \theta ) r + b \right ) [/itex]

Since there are no discontinuities in the log(), this term vanishes and may be ignored when r<b. When r>=b, an imaginary solution results -- which I will not treat of, for I can show the result must be zero based on symmetry; the numerator is equally distributed across the zero point, so it must have exactly equal positives an negatives to produce equal probability positives and negatives after division; thus cancelling. I do treat a similar problem, below, though which may need to be improved.

The problem is now reduced to integrating [itex]a \over sin( \theta )r+b[/itex]
The function, being periodic, has the same area if cos() is substituted for sin(), and the results are easier to work with...

The sub-problem to solve is now:

[tex] \int \limits _{0}^{ 2 \pi } f( \theta ) = \int \limits _{0}^{ 2 \pi } { a \over cos( \theta )r+b } [/tex]
[tex]= - { 2a \over \sqrt { r ^{ 2 } - b^{ 2 } } } tanh ^{-1 } \left ( (b-r)tan( \theta / 2 ) \over \sqrt { r ^{ 2 } - b^{ 2 } } \right ) | _{ ? } ^ { ? } [/tex]

[tex]= { 2a \over \sqrt { r ^{ 2 } - b^{ 2 } } } tanh ^{-1 } \left ( \sqrt { r-b \over r+b } tan( \theta / 2 ) \right ) | _{ ? } ^ { ? } [/tex]However, there are three regions to consider in order to be able to compute the integral everywhere:

Region 1: [itex] r \in [ 0 , b ] [/itex]

Region 2: [itex] r \in ( b , \infty ) [/itex] and [itex] \theta \in ( 0, \theta _{ d } ) [/itex]

Region 3: [itex] r \in ( b , \infty ) [/itex] and [itex] \theta \in ( \theta _{ d }, \pi ) [/itex]

Where [itex] \theta _{ d } = cos ^{ -1 } ( -{ b \over r } ) [/itex] is the angle of the first f() discontinuity when it exists.
As a convenience, set [itex] t _{d} = tan \left ( { cos ^{ -1 } (- { b \over r } ) \over 2} \right ) = \sqrt { r+b \over r-b } [/itex]

In Region 1:
Note, Focusing on the jump discontinuity found at [itex] \pi [/itex].

[tex] \int \limits _{0}^{ 2 \pi } f( \theta ) = - { 2a \over \sqrt { r ^{ 2 } - b^{ 2 } } } tanh ^{-1 } \left ( { (b-r)tan( \theta / 2 ) \over \sqrt { r ^{ 2 } - b^{ 2 } } } \right ) | _{ \pi ^{ + } } ^ { \pi ^ { - } } [/tex]

[tex] = i { 2a \over \sqrt { b ^{ 2 } - r^{ 2 } } } tanh ^{-1 } \left ( -i { (b-r)tan( \theta / 2 ) \over \sqrt { b^{ 2 } - r ^{ 2 } } } \right ) | _{ \pi ^{ + } } ^ { \pi ^ { - } } [/tex]

Identity: [itex] \tan ^{ -1 } (x) = \tanh ^ {-1} (-ix)i [/itex]

[tex] = { 2a \over \sqrt { b ^{ 2 } - r^{ 2 } } } tan ^{-1 } \left ( { (b-r)tan( \theta / 2 ) \over \sqrt { b^{ 2 } - r ^{ 2 } } } \right ) | _{ \pi ^{ + } } ^ { \pi ^ { - } } [/tex]

[tex] = { 2 \pi a \over \sqrt { b ^{ 2 } - r^{ 2 } } } [/tex]

Regions 2 and 3: Because of symmetry around [itex] \theta = \pi [/itex], computing the area for [itex] \theta \in [ 0 , \pi ][/itex] gives exactly half the total desired area. In Region 2 (negative values of f()) , the anti-derivative is purely real and presents no difficulty, but in Region 3 (positive values of f() ) , the anti-derivative is complex because the hyperbolic arc-tangent receives values above one.
But, Notice if [itex] |x| \in (1,\infty) [/itex] then [itex] tanh ^{ -1 } ( x ) = { ln( 1+x ) - ln (x-1) \over 2 } + i { \pi \over 2 }[/itex], which has a constant imaginary. Hence, computing a definite integral will always cancel the imaginary out. Taking a numerical derivative of the integral produced in this way, gives the correct values -- validating that the imaginary constant may be ignored.

Since the real anti-derivatives at the extreme ends of the regions of interest [itex] \theta \in [0, \theta _{d}] \cup [\theta _{ d}, \pi ] [/itex] are both exactly 0; The only part contributing to the area, then, is the *difference* in the left and right handed limits at [itex] \theta = \theta _{d} [/itex]. To find this area:

set [itex] z = \sqrt { r-b \over r+b } tan( { \theta \over 2 } ) [/itex] and notice z=1 at the discontinuity point.
So, I'd like to compute the area measured with a small distance omitted around the discontinuity point.

[itex]\int \limits _{0}^{ \theta_d - d ^{ - } } { a \over cos( \theta )r+b } + \int \limits _{\theta_d + d ^{ + } }^{ 2 \pi } { a \over cos( \theta )r+b } [/itex]

[itex] ={ 2a \over \sqrt { r ^{2} - b ^{2} } } \left ( \lim \limits _{ z \to 1 ^{ - } } tanh ^{ -1 } (z) - \lim \limits _{ z \to 1 ^{ + } } tanh ^{ -1 } (z) \right ) [/itex]

[itex] ={ 2a \over \sqrt { r ^{2} - b ^{2} } } \left ( \lim \limits _{ z \to 1 ^{ - } } \left ( { ln(1+z) - ln(1-z) \over 2 } \right ) - \lim \limits _{ z \to 1 ^{ + } } \left ( { ln(1+z) - ln(z-1) + i \pi \over 2 } - i{ \pi \over 2 } \right ) \right ) [/itex]

It doesn't matter what the size of the omission is, so long as they both sides shrink to nothing together. So, I'm going to do a change of variables for the right hand limit, and replace z with 2 - z; allowing the omission to shrink to nothing simultaneously.

[tex] ={ 2a \over \sqrt { r ^{2} - b ^{2} } } \left ( \lim \limits _{ z \to 1 ^{ - } } \left ( { ln(1+z) - ln(1-z) \over 2 } - { ln(1+ (2-z) ) - ln( (2-z)-1) \over 2 } \right ) \right ) [/tex]

[tex] ={ a \over \sqrt { r ^{2} - b ^{2} } } \left ( \lim \limits _{ z \to 1 ^{ - } } \left ( ln(1+z) - ln(1-z) - ln(3-z) + ln( 1-z ) \right ) \right ) = 0 [/tex]

I am not sure if the way I did this is formal enough to be convincing to the general reader; so if I need to L'Hospitals, or something similar -- I'd appreciate anyone suggesting how to set that up properly. (also, if I need to do the same for the log() problem earlier, which could be solved using the same logic, I'd like to know that also...)

The important result is that *ONLY* Region 1 affects the mean. All Regions 2 and 3, at each radius, cancel to zero. I can't actually see why this is true by visualization or symmetry -- but the math does work out -- and simulations do agree.

Continuing the original calculation, then:

[tex] \mu = \int \limits _{ 0 } ^{ \infty } { 1 \over 2 \pi } { 2 \pi a \over \sqrt { b ^{ 2 } - r^{ 2 } } } re^{-{ 1 \over 2}r^2} dr [/tex]

Since the area for [itex] r>b [/itex] is already known to be zero, a reduced limits integral is sufficient.

[tex] \mu = a \int \limits _{ 0 } ^{ b } { r \over \sqrt { b ^{ 2 } - r^{ 2 } } } e^{-{ 1 \over 2}r^2} dr [/tex]

[tex] \mu = a \sqrt { \pi \over 2 } e ^{ - { b ^{ 2 } \over 2 } } \times erfi \left ( { b \over \sqrt { 2 } } \right ) [/tex]

Q.E.D.

What I have discovered.
  1. Change of variables naturally separates the numerator into a N(0,1), and a constant a.
  2. All division problems with std=1, can be reduced to computing 1/N(b,1) and scaling by a.
  3. There is a definite mean for every ratio of a and b
  4. Although the Cauchy distribution a=0,b=0 lies on a boundary that I don't believe is computed directly, none the less -- the limit of the solution clearly goes to zero at b=0 at very least, as the limit.

Comments? Questions? Suggestions? :cool:
 
Last edited:
  • #3
Hey andrewr.

I'm curious for one part involving [tex]\frac{a}{sin(θ)r+b}[/tex] where you change the sin(θ) to a cos(θ): can you explain how you justify this step in a little more detail?
 
  • #4
Change integration variable from [itex]\theta \to \theta-\pi/2[/itex].
 
  • #5
Yes, but the limits remain unchanged in the above post. Under a change like that, you would update the limits as -pi/2 to 3pi/2 and they have not changed. I'll wait for the OP's response.
 
  • #6
chiro said:
Yes, but the limits remain unchanged in the above post. Under a change like that, you would update the limits as -pi/2 to 3pi/2 and they have not changed. I'll wait for the OP's response.
It's the integral around a complete 2pi either way. Does it matter where it starts/ends?
 
  • #7
haruspex said:
It's the integral around a complete 2pi either way. Does it matter where it starts/ends?

Don't worry I just realized what is going on (for some reason I was considering that the r variable was in some way dependent in the double integral).
 
  • #8
My interpretation of the Marsalgia paper (http://www.google.com/url?sa=t&rct=...sg=AFQjCNEgO1dvktreWiL-rt-ZPcS3K1FmYQ&cad=rja)

(I've changed the letters used in the notation. His z and w have become our X and Y. He deals with possibly correlated normal random variables. I assume his [itex] \rho = 0 [/itex].)

Let X and Y be uncorrelated Normal random variables. Using the usual notation for their means and variances let

[itex] r = \frac{\sigma_Y}{\sigma_X} [/itex]

[itex] a = \frac{\mu_X}{\sigma_X} [/itex]

[itex] b = \frac{\mu_Y}{\sigma_Y} [/itex]

[itex] \frac{X}{Y} [/itex] is distributed as [itex] \frac{1}{r} \frac{a + N_x}{b + N_y}[/itex]
Where [itex] N_x,N_y [/itex] are independent standard Normal random variables (mean 0, variance 1).

In section 4, he says that none of the moments of
[itex] T = \frac{a + N_x}{b + N_y}[/itex] exist.

If we restrict ourselves to the portion of the distribution where the denominator is greater than -4, he offers this approximation for the mean of T:

[itex] \mu_T = \frac{a}{1.01 b - .2713} [/itex]

(Second opinions about my reading of the article are welcome!)

Since this is the math section of the forum, it doesn't do any good to claim that non-existing mathematical things really exist. If you want to talk about a thing that embodies some of the inutuitive aspsects of a mean then you should call it a pseudo-mean and (eventually) define it precisely.
 
  • #9
Stephen Tashi said:

Hi Stephen, Yes -- I read the exact same thing in the marsiglia paper; which means that my proof must have a mistake in it ? Would you please locate the mistake? (I am asking the general community, and so far -- no complaints...)

In all locations where the integral has the potential to produce infinite area, there was (for computing the mean, only) a portion which *exactly* balances it in the negative direction.
The Cauchy -- as a distribuition -- is symmetrical; That alone is enough to show the same point -- the variance is a different issue. (That doesn't exist!).

If there is a mathematical reason that I need to call it the "mode"or something else, I'd like to understand that now -- in terms of *what* I am looking for when doing integration -- before progressing on to the pseudo-higher moments. eg: What step of my derivation is illegitimate ?

Thanks!
 
  • #10
+
andrewr said:
Hi Stephen, Yes -- I read the exact same thing in the marsiglia paper; which means that my proof must have a mistake in it ? Would you please locate the mistake? (I am asking the general community, and so far -- no complaints...)

I hope the general comunity is the one that wades through all that.

In all locations where the integral has the potential to produce infinite area, there was (for computing the mean, only) a portion which *exactly* balances it in the negative direction.
The Cauchy -- as a distribuition -- is symmetrical; That alone is enough to show the same point -- the variance is a different issue. (That doesn't exist!).

If there is a mathematical reason that I need to call it the "mode"or something else, I'd like to understand that now -- in terms of *what* I am looking for when doing integration -- before progressing on to the pseudo-higher moments. eg: What step of my derivation is illegitimate ?

The mean of a probability density f(x) defined on the real number line is [itex] \int_{-\infty}^{\infty} x f(x) dx [/itex] and I'm sure we can look up a definition that tells us what it means for such an "improper" integral to exist. (There is nothing in the definition of mean value that defines it in terms of balancing things out etc.) You are taking the view that if [itex] f(-x) = -f(x) [/itex] for [itex] x \neq 0 [/itex] then the integral for mean value must exist. This is not true. Look at the various types of Cauchy principal value integrals (http://en.wikipedia.org/wiki/Cauchy_principal_value). That's what you are effectively doing. So you are defining a pseudo-mean value in terms of that type of integral.
 
  • #11
Stephen Tashi said:
+

I hope the general comunity is the one that wades through all that.

They clearly have, and commented on it... see previous posts!

The mean of a probability density f(x) defined on the real number line is [itex] \int_{-\infty}^{\infty} x f(x) dx [/itex] and I'm sure we can look up a definition that tells us what it means for such an "improper" integral to exist. (There is nothing in the definition of mean value that defines it in terms of balancing things out etc.)

Not in words, but anti-symmetric integrals are routinely held to be zero. This is standard operating procedure in Engineering, for example,when doing Fourier series. Besides, the very page you quote did the exact same thing as I did...

You are taking the view that if [itex] f(-x) = -f(x) [/itex] for [itex] x \neq 0 [/itex] then the integral for mean value must exist.

I am taking the view that all samples of finite values are equal and opposite; so they *must* add up to zero; yes. I took a limit where the function went infinite to see if it canceled, and it did...

This function isn't one that switches between 0 and 1 infinitely many times, or anything.
As far as I know, it's compactly supported; The tangent, even at the discontinuity, is the same for both sides of the limit --- (eg: This is also true for 1/x , which is a hyperbola -- and historically that's the very poster equation of smoothness from geometry!). So, it has the qualification the Wikipedia article requires... am I mistaken?

This is not true. Look at the various types of Cauchy principal value integrals (http://en.wikipedia.org/wiki/Cauchy_principal_value). That's what you are effectively doing. So you are defining a pseudo-mean value in terms of that type of integral.

I am looking at the page, and it shows exactly what I did in the derivation; I took a limit, and it produced a single number. According to that page, what I have is a Cauchy principle value which is a finite number. So, what's wrong with that? I don't get why that means it doesn't exist.

It acts like a mean, it numerically simulates like a mean... but we need to call it a duck or something?

In undergraduate calculus classes, I was taught to do this very thing whenever "point" discontinuities happened -- and I was never told the answer didn't exist.

I'm not trying to be a jerk -- I just don't understand the complaint.
 
  • #12
andrewr said:
Not in words, but anti-symmetric integrals are routinely held to be zero. This is standard operating procedure in Engineering, for example,when doing Fourier series. Besides, the very page you quote did the exact same thing as I did...

It doesn't matter what is routinely done in engineering. If you're going to talk math, you'll have to use the definitions mathematicians use.


I just don't understand the complaint.

The complaint is about the proper use of mathematical terminology. What you are doing is interesting, but you'll undermine your credibility if you declare that you know what the mean value of a random variable is and that all the mathematical statistics experts are wrong.


A good place to discuss the existence of improper integrals would be in the Calculus & Analysis section of the forum. Of course, the existence of such integrals is germane to what you are doing, but I think a lot of the Calculus and Analysis experts don't like to read the statistics threads.
 
  • #13
I'm going to check out the paper referenced by Stephen Tashi above, but as a question for andrewr: have you looked at the paper and if so do you agree/disagree (and if you disagree, then with what part)?
 
  • #14
I think the only issue between andrewr and Marsiglia the queston:

When statisticians define the mean of the density [itex] f(x) [/itex] to be [itex] \int_{-\infty}^{\infty} x f(x) dx [/itex] does this imply that we are to use the Cauchy principal value of the integral when the ordinary improper integral doesn't exist?

The answer to that is no according to mathematical statistics, which is why texts say that the mean of the Cauchy distribution doesn't exist. Andrewr says it does. I suggest that andrewr invent a new term for what he is computing.

When you use the Cauchy principal value to define integrals, you lose important properties of ordinary integration. So it's hard (for me, at least) to scrutinize a long calculation that does this.
 
  • #15
chiro said:
I'm going to check out the paper referenced by Stephen Tashi above, but as a question for andrewr: have you looked at the paper and if so do you agree/disagree (and if you disagree, then with what part)?

I'm going to give a thorough answer -- if you want shorter ones in the future, just let me know. I aim to please.

----

With what he said under the particular conditions he said it, I agree; but there were many things he left unsaid and several which must be examined contextually; Let me demonstrate the circumspect way he talks about the problem.

In the Abstract, and in the text body it is said:

It discusses handling general ratios when, in theory, none of the moments exist yet practical consideration...

Nowhere in the paper does Marsiglia explicitly say he agrees with the theory -- rather, he says several things that leads me to suspect his attitude is ambivalent.

Consider:
pp.2
The details will be developed here...for moments of ratios when the denominator is conditioned by never being zero.

In theory, there *are* no ratios of Gaussians where the denominator is never zero. Hence, in many places -- Marsaglia is ignoring theory or is implying a probable outcome of an experiment by "conditioning".

The most serious objection is in section 4, which Stephen Tashi quotes -- BUT again, he says -- "Yet practical applications, in which the denominator ... is not expected to approach zero"

Here is not talking about conditioning, but just expecting ?
But that's nonsense in the case of mu=4 and sigma=1, ZERO is at the four sigma mark! It isn't nonsense when numeric integration or sampling is involved and boundary conditions can guarantee the zero is missed...

And throughout the whole discussion -- notice: *Marsaglia* never changes the word "mean" into "quasi-mean" in his paper; rather he says earlier in the document
it turns out that the mean and variance of (a+x)/(b+y), while difficult to find numerically, have remarkably simple yet accurate...

DIFFICULT?! :biggrin: (Impossible theoretically!)

So, it is traditional to call these non-existing means -- "means";

( Please Note: It is highly advisable to choose an estimator of the mean of samples which is traditionally less efficient than the direct application of the simple arithmetic mean; one that is resistant to outliers is highly advisable. Truncation of data, however, is *not* necessary. )

Again, Let's actually read Marsaglia's remark in section 4 -- as a lawyer (which all mathematicians ought to be...)

Marsaglia says:
As with the simpler Cauchy variate x/y, none of the moments of T=(a+x)/(b+y) exist, in the sense that integrals ... are infinite.

But Marsaglia is quite tricky to disagree with here. He doesn't say all integrals are infinite -- and if the mean is zero, then that moment isn't an infinite integral -- so clearly he's right either way. Again, if he meant all "the" integrals which followed -- he ought to have used at least the definite article "the" integrals; Infinity does not exist as a real number, and a definite number is not infinity. He can't go wrong! (real is not super-real)

(Not to mention that there is no way to tell if he means the numeric integral, or if he has ever even considered a Cauchy value- or ? ... Perhaps he quit early and went home that day.)

With this in mind, re-read my OP comment.

Based on symmetry arguments, I would say even the Cauchy distribution has a real mean, or no mean -- in the sense that it is a definite number, 0. The Cauchy, and I think many others with mu's very close to zero *do* have means.

I am simply following Marsiglia's notation as best I understand it.

I loved Marsaglia's words "in the sense", that's why I mimmic'd him;
He calls what he is seeking a mean; and at the same time doesn't dispute that there is no mean in some undefined sense or another.

Marsaglia is not concerned with finding the most exacting formula, anyway. He is only interested in finding a simple computational approximation; His entire paper is about an empirical approach, and crude approximations. (even at 50 digits, only using 2 points guaranteed inaccuracy) My approach is interested in more accuracy and a closer examination of the theory.

In Algebra, there are problems where symbolic variables can hide the fact that one is doing a divide by zero; How one approaches the problem, then, can affect whether the result is incorrect in one location or in all locations. So, that, if one attempts a problem in a certain way -- there is no valid result. But, if one separates the problem or refuses to do certain steps in a certain order -- there *can* be a result. .

In the problem I posed and attempted, I didn't actually solve the problem with a Gaussian in the numerator.

Rather, I found the problem nicely separated into two parts by about the fourth step of the derivation -- eg: one which is a Cauchy, one of which is not. (See opening posts graph, I explicitly noted that.) And I left the Cauchy alone, assuming the symmetry argument was enough to show it could at most randomly affect the mean in actual experiments and could not produce any *consistent* bias toward either positive or negative infinity ( I am speaking about the mean, only ).

There are two other (minor) reasons to read Marsaglia with care; He notes that his work was associated with Military installations of Radar at one time (Cold war). Much of this work was classified, and in spite of theory -- not everything that is classified is declassified in a timely manner... (Bureaucracy is king!). He may not be telling everything he actually knows -- and there is evidence of this.

(2nd and in explanation), Marsaglia makes an explicit allusion in his article to a conflict between him and another mathematician, namely Hinkley, which caused him to avoid including things out of "embarrassment" earlier. Hinkley, note, is WRONG according to Marsaglia;
Nowhere does Marsaglia indicate he is giving the full account now;

With this in mind, notice who is at the forefront of characterizing the distribution of ratio's of Gaussians? Hinkley is the one cited on the Wikipedia article given to me by Stephen Tashi for background information. I am open, of course, to someone giving me more detailed documentation -- but the quality so far isn't solving the problem.

Regarding Marsaglia, Given the context of his document -- I have no reason to disagree with him. So the simple answer is "yes" I agree with him as I understand him.

Thanks for the question, Chiro. I'm glad to have clarified some of that.
Also, I took your earlier remark about the change of integration limits to heart -- and will try to change them even when it doesn't matter in the future. I do want to make my work easier to read -- and not just correct.

:smile:
 
Last edited:
  • #16
Stephen Tashi said:
I think the only issue between andrewr and Marsiglia the queston:

When statisticians define the mean of the density [itex] f(x) [/itex] to be [itex] \int_{-\infty}^{\infty} x f(x) dx [/itex] does this imply that we are to use the Cauchy principal value of the integral when the ordinary improper integral doesn't exist?

The answer to that is no according to mathematical statistics, which is why texts say that the mean of the Cauchy distribution doesn't exist.

I don't know what texts you refer to;
I would like a link to a reputable statistics site that says one can't use a Cauchy principle *number*, ever, and goes into detail about why. There is a difference between saying statisticians must not use a Cauchy principle value, and saying that it is not always reliable to use one.

Andrewr says it does. I suggest that andrewr invent a new term for what he is computing.
Suggestion noted:

Marsiglia, whom's paper you gave to me, used the word "mean" for something which is not a mean.
Hence, it is traditional to call it a "mean" -- but if it helps -- I would be happy to call it a "mean sub duck" to distinguish it.

[tex] \mu _{duck} [/tex]

When you use the Cauchy principal value to define integrals, you lose important properties of ordinary integration. So it's hard (for me, at least) to scrutinize a long calculation that does this.

I understand your reservation.
I wouldn't know how that issue affects the question at hand. Do you have a link to these properties? I'm willing to study it.

My Engineering professor (as all who teach Fourier analysis, PDE's, ODE's, etc.) had his doctorate in Mathematics and a minor in Engineering. Engineers don't instrinsically fail to use mathematics properly. The degrees are required for teachers; and students had to use standard notation and terms.

But in any event, none of these mathematics profs, ever made mention that these integrals always invalidated a numerical result; However, on more reflection and review of notes, they did mention something of a caveat:

Sometimes an equation or system has more than one solution; in such a case, we are forced to examine the equation to see if some solutions are spurious or if they are valid.​

Now, I myself am thinking: In the case of *any* sampling distribution, with real numbers as the only accepted data points, Given N points the arithmetic mean is finite.
This must be true: [itex] |\mu _{x}| \le {\rm max} ( |x _i| ) [/itex]; AND; The same is still true when n is taken as a limit toward infinity; the mean will still be a finite number.

In the Case of the Cauchy, then, considering the distribution is historically a "limiting" PDF (eg: Just as Binomial in the limit infinite is *defined* to be Gaussian, etc.) -- the mean of any such (real number) distribution is still finite.

So, I know we can eliminate any integral methods that produce infinite means.
But -- That's the typical answer given on sites as to why the mean *doesn't exist;
However, such reasoning isn't about a real distribution who's limit is the Cauchy -- it's about the indeterminacy of the integration method.

I found this very helpful; counterexamples, Cauchy has no mean.

There are a couple of things that are bothering me, though: first, the Cauchy integral has a CDF; and that alone suggests we can calculate a worst case deviation from 0 that the mean could have in a probabilistic way.

Secondly: There obviously must be a reason that numerical experiment agrees with the Cauchy Principal value so closely...
:smile:

Something important is clearly being overlooked.
I'll think about it a while before making any rash statements.
 
Last edited:
  • #17
andrewr said:
I would like a link to a reputable statistics site that says one can't use a cauchy principle *number*, ever, and goes into detail. I need to learn about this, obviously, and I don't want to remain in the dark about it.

Reputable math texts don't bother to mention all the things that are NOT true about a mathematical topic. Engineering texts may have their own conventions about integrals, but "reputable" math texts that talk about integrals of real valued functions are referring to Riemann or Lebesgue integration, not Cauchy principal value integration. If they wish to treat the Cauchy principal value type integration, they would feel obligated to mention it explicitly.
Marsiglia, whom's paper you gave to me, used "mean" for something which is not a mean.
Hence, it is traditional -- but if it helps -- I would be happy to call it a "mean sub duck" to distinguish it.

Marsiglia provides results for the case when the denominator is conditioned by a restriction that prevents it from being zero. The standard interpretation of that would be that he replaces the distribution in the denominator by another distribution, a "conditional" distribution. I see nowhere in the paper that he claims that the moments exist without that replacement.


You aren't going to get around the fact that by the standard definition of the mean of a distribution, the mean value of the ratio of gaussian distributions doesn't exist. Talking about what happens in numerical approximations and simulations doesn't weasel around it. If numerical approximations and simulations don't reproduce a proven theoretical result, it shows the numerical approximations and simualtions are inadequate, not that the theoretical result is wrong. The legalistic nature of mathematics is price one must pay for keeping statements unambiguous and not proving claims that are false.

A problem with integrating the ratio of gaussians is not merely that the denominator might be exactly zero. There is no bound to the ratio even if we exclude the possiblity that the denominator is exactly zero. If you do a numerical approximation method that establishes a bound for the ratio, it's the numerical approximation that's wrong. If you observe that denominators very close to zero never showed up in a simulation then it didn't explore all the possibilties of a gaussian denominator.

I don't understand your resistance to stating your results in terms of conditional gaussian distributions. Suppose we are using Cauchy principal value integration and computing the duck mean of a density [itex] f(x) [/itex]

duck_mean [itex] = lim_{h \rightarrow 0+} ( \int_{-\infty}^{a-h} x f(x) dx + \int_{a+h}^{\infty} x f(x) dx ) [/itex]

For [itex] h > 0 [/itex] define [itex] K(h) = \int_{-\infty}^{a-h} f(x) dx + \int_{a+h}^{\infty} f(x) dx [/itex]

Define the family of probability densities [itex] g(h,x) [/itex] by
[itex] g(h,x) =\frac{ f(x)}{K(h)} [/itex] for [itex] x < a-h [/itex] or [itex] a+h < x [/itex]
and
[itex] g(h,x) = 0 [/itex] otherwise

The the duck mean is also equal to

duck mean [itex] = \lim_{h \rightarrow 0+} [/itex] (mean of [itex] g(h,x) [/itex])

so the duck mean could be written as the limit of means.

It's no surprise in mathematics when a limit of things of one type is not of the same type. ( For example, the limit of a sequence of continuous functions need not be a continuous function. The limit of a sequence of rational numbers need not be a rational number etc. ) So it's OK when the limit of means isn't a mean. You can always say the duck mean is infinitely close to an actual mean if that would make the NIST happy.

I wouldn't know. Do you have a link? This seems rather important to what I am doing.
These differences , if they have real effects, are important for me to understand.

I don't have a reference that tells how to employ common integration techniques with Cauchy principal value integration. I'm also curious about that. I started a thread about it in the Calculus & Analysis section.

My Engineering professor (as all who teach Fourier analysis, PDE's, ODE's, etc.) had his doctorate in Mathematics and a minor in Engineering. For this reason, I suggest you don't say that Engineering has nothing to do with math -- the degree is required to even teach the mathematically oriented classes. And we were required to use standard mathematical notation to pass the classes...
Ask your engineering professor about whether the "default" interpretation of integration in a mathematics text includes Cauchy prinicpal value integration. Ask him if the online documents and internet strangers who say the Cauchy distribution has no mean are wrong.
.
 
Last edited:
  • #18
Chiro,

I made an out of context remark regarding Marsaglia. He is quite justified in going to the trouble of using a 50 digit number -- My statement that his approximations were "crude" was based on the general notion of approximation vs. exact integrals...-- I didn't mean to give an impression of his work being garbage, and after re-reading my quick remark; I just realized you might have taken my comment that way. :frown:

Until I actually give my own approximation, I have no idea whether or not I can trump his.

Cheers.
--Andrew.
 
  • #19
Stephen Tashi said:
Reputable math texts don't bother to mention all the things that are NOT true about a mathematical topic. Engineering texts may have their own conventions about integrals, but "reputable" math texts that talk about integrals of real valued functions are referring to Riemann or Lebesgue integration, not Cauchy principal value integration. If they wish to treat the Cauchy principal value type integration, they would feel obligated to mention it explicitly.

I don't expect that Engineering texts are different. In the derivation I gave, I specifically asked regarding the appropriateness of the way I did the limit; My point is that Cauchy principal value did come up in a problem regarding Fourier transforms, and we were to use it under a certain set of conditions.

If you go back to the earlier thread from which this branched out, and you look for Chiro' giving me a suggestion on computing the integral -- That's where Fourier came into the discussion...

Marsiglia provides results for the case when the denominator is conditioned by a restriction that prevents it from being zero.

Yes, and his particular restriction seem arbitrary.

You aren't going to get around the fact that by the standard definition of the mean of a distribution, the mean value of the ratio of gaussian distributions doesn't exist.

I realize that; But I also need to understand how real means which do exist -- for samples -- are related to none for the distribution as a whole.

Talking about what happens in numerical approximations and simulations doesn't weasel around it. If numerical approximations and simulations don't reproduce a proven theoretical result,

What is the theoretical result? eg: Infinite is not the THEORETICAL result even though Marsaglia mentions integrals going infinite (he is perhaps numerically speaking, or half integral speaking?)

All distributions using Gaussian randoms implicitly come from a limiting approach based on samples. The Gaussian was discovered by asking the question, if a measurement (discrete) is repeated what is the probability of the error.

To answer the question; Gauss took a limit for infinite repetitions, and the bell curve was arrived at.

There is, then, in each distribution (& Cauchy) -- an implicit limit going from the discrete/finite to the continuous.

If the continuous integrals for the mean had always diverged toward positive infinity or negative infinity, there would be no question of what theory said/predicted... But the moment theory can arrive at infinity minus infinity -- that isn't a result of any kind. If that is true, then an estimate of 0 is as good as any other estimate -- they are all *equally* bad.

BUT: In a real experiment, there is going to be a sampling granularity -- and an actual finite value for the mean.

When I hear the words that the integral does not converge, then I understand The QUESTION was somehow asked wrong -- and the boundary conditions need to be looked at to decide why.

it shows the numerical approximations and simualtions are inadequate, not that the theoretical result is wrong. The legalistic nature of mathematics is price one must pay for keeping statements unambiguous and not proving claims that are false.

Bravo -- I'll clap my hands. I think that's wonderful.

Simulations are a way to look for problems, and inconsistencies -- because they indicate the results a real measurement would report. The problem may be resolved in many different ways -- without changing the theory itself.

But, I need *quantitative* models of how simulation of Cauchy distribution using discrete samples is going to be different from the continuous case.

A problem with integrating the ratio of gaussians is not merely that the denominator might be exactly zero. There no bound to the ratio even if we exclude the possiblity that the denominator is exactly zero.

I agree that removing the zero point is insufficient. Your analysis, here, however isn't clear to me yet. Since Cauchy is a limit of a ratio of binomials taken to n-->infinity; The correlation between the character of the discrete distribution -- and the continuous one changed it's properties somewhere -- and that bothers me.

If you do a numerical approximation method that establishes a bound for the ratio, it's the numerical approximation that's wrong. If you observe that denominators very close to zero never showed up in a simulation then it didn't explore all the possibilties of a gaussian denominator.

Of course! I think you have gotten the wrong impression about my numerical simulations. My apology belatedly...

I think (intuition) what we're missing is the idea of a confidence interval. How likely an experiment will "hit" the div/zero discontinuity close enough to disturb an otherwise tranquil mean...

(Don't answer that! it's in English -- and I need to quantify it)

I don't understand your resistance to stating your results in terms of conditional gaussian distributions.

You're just moving through the problem more quickly than I can possibly do;
I am looking at your equations, and I don't find them objectionable -- but I'm not sure they give the same result that I have... (I'll comment later).

The question, to me, is not about whether or not we condition the distributions -- the question is; how, and on what basis, and why.

As I said in the OP -- I'll have to explain some of this later in the thread -- (I'm working on it, hard...)

When I wrote the OP -- I was expecting corrections inside the derivation, your approach is unexpected, and that's difficult for me to adjust to. I'm trying.
 
Last edited:
  • #20
Stephen Tashi said:
Marsiglia provides results for the case when the denominator is conditioned by a restriction that prevents it from being zero. The standard interpretation of that would be that he replaces the distribution in the denominator by another distribution, a "conditional" distribution. I see nowhere in the paper that he claims that the moments exist without that replacement.

Yes, but earlier you made a strong impression on me that a distribution may not be called the same if it were modified in any way. Thus, the title of Marsaglias's paper (for this reason) appeared to me to be puporting something to be a Gaussian -- which is actually not a Gaussian, and computing the mean of a ratio of ?.

In contrast, if I now take this new view you are giving:
I implicitly gave the information about how the Gaussian's were conditioned in my derivation, even if I didn't know I was doing it.

At most it's a notational issue... and I asked people for help about formalizing the derivation; intentionally attempting to uncover issues like this one, directly.

Hindsight, of course... Hopefully, tomorrow will be better.
 
Last edited:
  • #21
Stephen, I think this will be a simple idea...

The Cauchy has a CDF of [itex] {1 \over 2} + {1 \over \pi} tan ^{ -1 } ( x )[/itex];
When estimating a mean, I might think like this: (assume purely positive numbers).

The mean must be between the lowest value in the sample and the highest; If I assume the highest value takes the whole weight of the average (n samples times highest value / n), Then the mean must be lower or equal to that value. Hence, I can ask -- what is the greatest distance from 0 that the mean could be?

90% of the time, the largest sample will be no higher than: 6.31376; hence the weight of that is 5.1... ( 0.9 * 6.313.. )

99% of the time, the largest sample will be no more than 63.65675; hence the weight of that is 5.72... ( 63.65675 * 0.09 )

99.9% of the time -- 636.61925 and weight = 5.72... (636 * 0.009)

So, I can expect with some confidence -- that a mean of no more than 18 will be computed at least a certain definite percentage of the time; depending on the number of samples taken. Hence, it doesn't seem right to say the mean is totally unbounded -- but there must be some kind of relationship between sample size and a typical mean.

If there were no rhyme nor reason to the mean, all values would be equally likely. But that's not the case...
 
Last edited:
  • #22
Basically, it looks what you are doing is talking about a different distribution with each level of 'confidence'.

One suggestion I have is that for the X/Y problem, you should modify Y so that you exclude a region of a neighbourhood around 0 (i.e. you censor this region where P(-e < X < e) = 0 for some epsilon e) and then recompute the density function.

The idea of using a pure Gaussian for the denominator, even for something like NIST is absolutely stupid and if they want to use X/Y without any modification, then they are going to deal with the case of no moments existing.

Since all you are doing is effectively changing the distribution for each level of confidence, you are probably IMO better off in just creating the distribution you intended and then calculating the mean in the way that it is calculated rather than trying to fudge the calculation of the mean for a distribution where it does not exist.

This way, you'll keep to the definitions (which are there for a reason because they work both theoretically and practically) and you will be able to clarify your assumptions by the nature of the definition of the actual distribution (for example censor the region around 0 is due to getting rid of dividing by numbers close to zero). (Also remember if you do censoring, you have to normalize the distribution to make sure it integrates to 1).
 
  • #23
chiro said:
Basically, it looks what you are doing is talking about a different distribution with each level of 'confidence'.

One suggestion I have is that for the X/Y problem, you should modify Y so that you exclude a region of a neighbourhood around 0 (i.e. you censor this region where P(-e < X < e) = 0 for some epsilon e) and then recompute the density function.

The idea of using a pure Gaussian for the denominator, even for something like NIST is absolutely stupid and if they want to use X/Y without any modification, then they are going to deal with the case of no moments existing.

Believe me -- I'd love to throw it out. :smile:
I'm not a glutton for punishment...

But consider a realistic case; There is a wall 2000(1) mm away. Divide that distance by a *SLOPPY* 1 meter scale 1000(1) mm long. What are the results?

Well, the result is obviously about 2 (on mean).
However, this still factors into a form which Marsaglia treats as having a Cauchy.
( I forget exactly what he said about that -- my eyes glazed over...)

N(2000,1) / N(1000,1) =
(2000 + N(0,1)) / (1000 + N(0,1)) =
=2000/(1000+N(0,1)) + N(0,1)/(1000+N(0,1))

My solution so far, is just for the first part -- and even that is supposedly invalid because I used a cauchy principle value...

Yet the second part is the only thing really Cauchy distribution like in the problem, so I assume that's a Cauchy with the mode offset in one direction or the other...

But in any event, it's not possible to avoid having that second part in the equation -- and if it's mean can be anything -- then the sum of the two means, can be anything -- and well, the *very* practical problem has just become theoretically impossible when ACTUALLY using the theory and not faking it.

I find that quite perplexing. Gosh! the odds of hitting the zero point are 1 in 1000 sigmas. It *aint* going to happen... BUT -- it's still a Cauchy?!

Now, let's talk about the choice of "theory". There is no reason both of these lengths couldn't be repetitively measured over and over -- so a Gaussian is the most appropriate distribution.

But once we do a ratio, we are going to have a Cauchy and a 1/Gaussian.

WOW.

Since all you are doing is effectively changing the distribution for each level of confidence, you are probably IMO better off in just creating the distribution you intended and then calculating the mean in the way that it is calculated rather than trying to fudge the calculation of the mean for a distribution where it does not exist.

I have a formula that simulates well -- if I just knew what the distribution was that made that shape, I'd be done. Funny, I have an answer looking for a distribution...

This way, you'll keep to the definitions (which are there for a reason because they work both theoretically and practically) and you will be able to clarify your assumptions by the nature of the definition of the actual distribution (for example censor the region around 0 is due to getting rid of dividing by numbers close to zero). (Also remember if you do censoring, you have to normalize the distribution to make sure it integrates to 1).

Ummm ... I'd like to see that practical part...

But,
Yes, that sounds possible -- although I need to start with the confidence interval: eg: I need someone to be able to tell me they want my result 99.9% certain, and then I need to compute how much of the zero divide to censor... THEN, I can do it.

I'm going to sleep on it tonight... Dunno...
 
Last edited:
  • #24
For the practical part, the first thing to focus on is getting the distribution for 1/X where X is censored and then look at Y/X after you get the censored distribution for 1/X.

It's best if you leave the 1/X distribution in terms of the e mentioned above so that later you can see how this e effects the calculation of the mean of Y/X: this solves your problem of analyticity and you can use this to compare how many standard deviations you need to get a mean of a particular value, but looking at how the epsilon affects the final calculation of E[Y/X] where Y is Gaussian and 1/X is the transformation of the inverse of your censored distribution.

You can simulate this extremely easily by using a method to simulate from a censored distribution (an MCMC approach will do this) and then simply simulating from the Gaussian giving a simulation for Y/X.

The assumption of censoring is one that can quantified in the context of more general assumptions in the domain (i.e. engineering) by considering the nature of what is being calculated (i.e. scales of things, what these things are) in relation to the epsilon used in the censoring process.

I think that the above suggestion will help you not only derive a distribution and ultimately a mean using censorship around 0 for the denominator RV, but also to actually quantify the characteristics and how the epsilon changes the value of not only the mean, but also the other moments as well.
 
  • #25
andrewr said:
Hence, it doesn't seem right to say the mean is totally unbounded -- but there must be some kind of relationship between sample size and a typical mean.

If there were no rhyme nor reason to the mean, all values would be equally likely. But that's not the case...
As a very general observation (general enough to apply to the whole of mathematical society, not particularly to yourself), there is always a mental contest between formal mathematics vs the philosophy of mathematics that I would called Mathematical Platonism. The Wikipedia deistinguishes quite a number of species of Mathematical Platonism, but to me, the common element in this philosophy is the belief that things with mathematicl definitions have a reality that exists apart from the definition. In your particular case, you believe that the concept of "mean value of a distribution" has a reality beyond the formal definition, so you allow yourself to reason about this reality and reach conclusions based on your private vision of it. I think almost everybody does this to some degree.

Sometimes Mathematical Platonism leads nowhere. For example, if you look at threads on the forum that are inviitations to Mathematical Platonists, such as "Is multiplication repeated addition?", "Is dy/dx a ratio?", you find that many of the posts with a Platonic slant are opinionated and unimaginative. But sometimes you do find Platonic outlooks that are very helpful intuitive ways to think about mathematical ideas.

Physicists and engineers often take the Platonic view of mathematics and I suspsect the reason that physics and engineering are able to cruise along with the Platonists on board is that most concepts they deal with don't depend on a legalistic and precise application of logic. On the other hand, mathematics gets into a mess if it tries to develop results based on Platonic arguments. There are simply too many different contradictory private concepts of things like "limits", "infinity", "probability" etc. among human beings. The only way to arrive at definite results is to have formal definitions and develop arguments based on those definitions, not people's private visions of what things are.

I don't want to discourage you from Platonic reasoning. I just want to make the point that whatever conclusions you reach by that reasoning have to reconciled with the formal mathematical definitions and presented in those terms in order for them to be accepted as mathematics.

----

As to the observations about the sample mean:

The sample mean of the Cauchy distribution is a statistic that does have a distribution. For a sample size of 1, it is obviously just the Cauchy distribution. It's an interesting question what the distribution is for larger size samples. The Central Limit Theorem (that the mean of an independent samples of size n is approximately normally distributed for large n) doesn't apply to the Cauchy distribution since that theorem requires that the distribution being sampled have a (finite) variance.

(This sets me wondering about such things as: Are their distributions whose k-th moment doesn't exist, but the k-th moment of the sample distribution (for sample size > 1) exists? Are their distributions whose k-th moment doesn't exist, but such that the kth-moment of the limiting distribution of their sampling distribution (as sample size approches infinity) exists. If no kind soul happens to tell me, I may start a thread with such questions someday.)

The non-existence of the mean of Cauchy distribution involves (according the formal definition) the non-existence of a integral that is done using the distribution. Thus the entire distribution is considered when doing the integration. The fact that a particular large value of a Cauchy random variable is unlikely in a sample doesn't mean that you can leave that value out when you do the integral. The problem with the (formal) existence of the integral depends on how you define integrals (Riemann vs Lebesgue - either way, therei's a problem). Again, it's the people who frequent the Calculus & Analysis section can probably give an authoritative answer about that.

I'm sure you've studied integrals invovling infinite limits and various theorems about when they exist or not. Some function die-off quick enough so that the integral from 0 to infinity exists, other's die-off but not quickly enough. That's the type of thing involved in the integral for the mean of the Cauchy. In the integral for the mean of the ratio of Gaussians, the problem is that the integrand is unbounded.

I don't think you should give-up on using the Cauchy principal part in your calculations. I merely suggest that you rephrase the claim about what you are calculating. My (Platonic) view is that your are calculating a limit of the means of distributions that are "conditioned" by setting them equal to zero on parts of the real line. (A density f(x) defined on a the real line can be used to define another density g(x) that leaves out intervals of the real line. On the part that is not left out, define the modified density to be g(x) = f(x)(/ 1 - P) where P is the probability of the left-out part. On the part that is left out, you define g(x) = 0.)
 
  • #26
chiro said:
For the practical part, the first thing to focus on is getting the distribution for 1/X where X is censored and then look at Y/X after you get the censored distribution for 1/X.

I am unable to solve that problem.
Introducing a censoring window causes the angle of integration to change from 0 to 2π, to a set of bounds that depend on r. I am unable to solve the new integral itself.

Not only that, but in trying to solve for the Cauchy distribution itself (often done implicitly when solving for the first moment); I noticed that the Cauchy distribution requires the same integral I did before divided by r; which means that it, too, has a point which is infinite. Hence, the Cauchy itself requires the use of a Cauchy principle value to derive... If changing the limits with which one integrates any such integral is capable of changing the results, I would have to assume the Cauchy distribution is itself invalid unless there is a way to justify the use of a particular Cauchy principle value...

I need to find a derivation of the Cauchy distribution and find out on what grounds they justify the existence of the integral in the first place ! or if there is a way to work around the issue.

It's best if you leave the 1/X distribution in terms of the e mentioned above so that later you can see how this e effects the calculation of the mean of Y/X: this solves your problem of analyticity and you can use this to compare how many standard deviations you need to get a mean of a particular value, but looking at how the epsilon affects the final calculation of E[Y/X] where Y is Gaussian and 1/X is the transformation of the inverse of your censored distribution.

I did come up with something interesting by a different route -- when attempting 1/x.
The censoring window is roughly equivalent to truncating the tails of the Cauchy at *very* large values.

The non-existence of the integral of the mean, for example, is based on a-symmetrical areas for the left and right hand portions of the integral; but notice -- truncating the zero denominator point symmetrically -- has the effect of forcing the limit of the left and right hand values to have a symmetric end point.

Therefore your idea (nearly) reduces to mine as the window shrinks to zero.

You can simulate this extremely easily by using a method to simulate from a censored distribution (an MCMC approach will do this) and then simply simulating from the Gaussian giving a simulation for Y/X.

Yes. That works fine...

The assumption of censoring is one that can quantified in the context of more general assumptions in the domain (i.e. engineering) by considering the nature of what is being calculated (i.e. scales of things, what these things are) in relation to the epsilon used in the censoring process.

I think that the above suggestion will help you not only derive a distribution and ultimately a mean using censorship around 0 for the denominator RV, but also to actually quantify the characteristics and how the epsilon changes the value of not only the mean, but also the other moments as well.

It introduces the same question we originally had -- but in a different context. :frown:

The symmetry of the censoring window is equivalent to my idea -- but the flaw in my idea is that the limit of the integral used to compute the mean can have be chosen to be asymmetrical as one approaches infinity. Just so, your censoring window is symmetrical -- but we could choose an asymmetrical window...

I see no way, based on engineering considerations, how to justify this window's symmetry or a-symmetry. :rolleyes: In the ideal case, it wouldn't exist -- and is just a fix-up to work around a problem not defined by engineering at all...
 
  • #27
Stephen Tashi said:
I don't understand your resistance to stating your results in terms of conditional gaussian distributions. Suppose we are using Cauchy principal value integration and computing the duck mean of a density [itex] f(x) [/itex]

duck_mean [itex] = lim_{h \rightarrow 0+} ( \int_{-\infty}^{a-h} x f(x) dx + \int_{a+h}^{\infty} x f(x) dx ) [/itex]

So, this is the density of the Cauchy, I suppose. But, if f(x) is the density of a Cauchy -- then there's a mistake in the idea; The failure of the integration isn't near zero -- it's because the definite integral goes to infinity at infinity. One can take the limit as the two half integrals approach infinity with the approach toward the limit occurring at different scalar rates; This difference in rates gives a result which is proportional to ln( ratio ).

see my comments to chiro regarding the windowing issue in general, and not being able to solve integrals with a cut-out window.

It's no surprise in mathematics when a limit of things of one type is not of the same type. ( For example, the limit of a sequence of continuous functions need not be a continuous function. The limit of a sequence of rational numbers need not be a rational number etc. ) So it's OK when the limit of means isn't a mean. You can always say the duck mean is infinitely close to an actual mean if that would make the NIST happy.

The duck mean is equivalent to taking the Cauchy distribution and truncating the tails at some grotesquely large values -- but symmetrically. When the tails become suddenly "zero", it is no longer possible that the limit of half of the Cauchy distribution produces a value different on the left side from the right side.

Ask your engineering professor about whether the "default" interpretation of integration in a mathematics text includes Cauchy prinicpal value integration. Ask him if the online documents and internet strangers who say the Cauchy distribution has no mean are wrong.
.

:bugeye: Really, it's not my habit to walk into a buz-saw, even if someone else asks me to. I'm sure he'd agree with you on these particular questions. :biggrin:
 
  • #28
Stephen Tashi said:
In your particular case, you believe that the concept of "mean value of a distribution" has a reality beyond the formal definition, so you allow yourself to reason about this reality and reach conclusions based on your private vision of it. I think almost everybody does this to some degree.

There are two issues here, whether a distribution has a mean -- and whether the distribution itself accurately reflects the process used to arrive at that result. In the former, I was unaware I had made a mistake -- and if I could change the opening post, I would, to reflect that. But it is no longer my option to do that...

In the second question, I think the issue (likely) resides around whether we define the distribution to be the limit of the ratio set of finite binomials, where we take the mean of the finite ratio -- and then let the number of elements in the binomials approach infinity -- or whether we take the limit before computing the mean, and end up computing the mean of the continuous distribution.

Sometimes Mathematical Platonism leads nowhere.

Sure.

Physicists and engineers often take the Platonic view of mathematics and I suspsect the reason that physics and engineering are able to cruise along with the Platonists on board is that most concepts they deal with don't depend on a legalistic and precise application of logic.

Or, one has a deadline -- and can't work out the real answer. A curve fit to the most common case or example available is often the best that can be done.

On the other hand, mathematics gets into a mess if it tries to develop results based on Platonic arguments.

I'd say physics is a mess anyhow, and Engineering is a tamed mess...

I don't want to discourage you from Platonic reasoning. I just want to make the point that whatever conclusions you reach by that reasoning have to reconciled with the formal mathematical definitions and presented in those terms in order for them to be accepted as mathematics.

I appreciate that. :smile:

The sample mean of the Cauchy distribution is a statistic that does have a distribution. For a sample size of 1, it is obviously just the Cauchy distribution. It's an interesting question what the distribution is for larger size samples.

Yes, and sorely difficult. The CDF allows me to predict a "worst" case, but not a typical mean...

The Central Limit Theorem (that the mean of an independent samples of size n is approximately normally distributed for large n) doesn't apply to the Cauchy distribution since that theorem requires that the distribution being sampled have a (finite) variance.

I think I'll try to graph a sampling distribution, just to see what it looks like. But, even intuitively -- I'm pretty sure it isn't Gaussian...

The non-existence of the mean of Cauchy distribution involves ... the entire distribution ... when doing the integration.

Yes, the entire *continuous* distribution.

I'm sure you've studied integrals invovling infinite limits and various theorems about when they exist or not. Some function die-off quick enough so that the integral from 0 to infinity exists, other's die-off but not quickly enough. That's the type of thing involved in the integral for the mean of the Cauchy. In the integral for the mean of the ratio of Gaussians, the problem is that the integrand is unbounded.

The Cauchy integral goes infinite at infinity... yes. Although, as a NOTE, I didn't compute the mean from the distribution itself -- but directly from the ratio of two independent Gaussians using a change of variables to polar coordinates. In that particular form, the infinity shows up at a finite location; I could discuss some alternative approaches, that by clever re-arrangement can eliminate the infinities ... but that still is just hiding the fact that they are there without the re-arrangement.

(A density f(x) defined on a the real line can be used to define another density g(x) that leaves out intervals of the real line. On the part that is not left out, define the modified density to be g(x) = f(x)(/ 1 - P) where P is the probability of the left-out part. On the part that is left out, you define g(x) = 0.)

I'll have to think about it -- but as the part that it is desired to leave out is at "infinity" -- I'm not sure how to do this idea of yours.
 
  • #29
Stephen Tashi!

Now, I'm making progress!

You said...
The Central Limit Theorem (that the mean of an independent samples of size n is approximately normally distributed for large n) doesn't apply to the Cauchy distribution since that theorem requires that the distribution being sampled have a (finite) variance.

When I graph the equation, I discover something that ought to have been obvious ... but didn't occur to me.

The graph is for the distribution of 100,000 means of 200 point samples from a true Cauchy.
The resulting shape -- is another Cauchy.
I tried many more points, many less points, many more and less repetitions -- the shape is exactly the same... !

So what you are saying is correct; but the reason is simply that a Cauchy added to a Cauchy is ... a Cauchy; and that has implications...

Analogically:
When something is Gaussian, say -- with a mean of mu, and a sigma of s; Then If we add two independent samples of the distribution together -- The result's distribution is again a Gaussian:

Gaussian + Gaussian = Gaussian.

So:
N(mu,s) + N(mu,s) = N( 2mu, 1.414213...s )

When doing an average, we simply add (as above) and then divide by 2: The result is NOW:
N(mu, 0.7071...s).

The significant detail is that the sigma has gotten *smaller* after the average. Hence: The new result is "closer" on average to mu.

As long as the measure of the width of the distribution (which does not have to be sigma, but any "x" scaling one can invent) shrinks with each averaging; the result converges toward an "average".

It really doesn't matter what the shape is -- Gaussian, Cauchy, etc.

In the OP, I originally said that I thought the Cauchy had a mean in the "limit"; but I think I edited that out... It's important to recognize, however, that a ratio of Gaussians is *not* a Cauchy in the strict sense.
We've been mixing ideas carelessly...

Only when a=0 and b=0 is it truly a Cauchy.

In all other cases, I'm pretty certain, the "scale" of the distribution is not preserved on addition.
So, convergence may not happen with the Cauchy -- but could with the others. (even if very slowly...)I have a comment to make to Chiro, but I know enough that I probably ought to re-start the thread with more consistent and accurate labeling; At this point, I think certain things being confounded early on in the thread are preventing a wider participation; and clarifying, and summing up the useful things said in a concentrated new OP would be best.
 

Attachments

  • CauchyMeans.png
    CauchyMeans.png
    5.8 KB · Views: 463
Last edited:
  • #30
If you want to check theoretically if it is preserved and you have an exact analytic representation then you should firstly look at the nature of the MGF. If you can combine the MGF's to get something that has the same form then that's it.

Also with regards to the sigma, when you are estimating the mean you want the sigma to get smaller and this is what you should get since the average of the sample is an unbiased estimator for the mean.

I know in this example you have two distinct random variables so you are not actually doing it in the above context, but the average of distributions will always make the variance smaller than the sum by using standard variance operator laws.

I'd be interested though if you derived an analytic form of a distribution by using the censoring technique we discussed earlier in this thread, because that would really nail the behaviour of what is going on when you start to allow values close to 0. Did you look into this if not analytically, via simulation of sorts?
 

FAQ: Pathological PDFs. eg: ratio of normals including Cauchy.

What is a pathological PDF?

A pathological PDF is a probability density function that does not have a well-defined mean and variance. This means that the distribution does not follow a normal or Gaussian distribution and may have extreme values or sharp peaks.

How is a pathological PDF different from a normal PDF?

A normal PDF follows a bell-shaped curve and has a well-defined mean and variance. A pathological PDF, on the other hand, may have multiple peaks, extreme values, or other irregularities that make it difficult to determine a mean and variance.

What is the ratio of normals including Cauchy in a pathological PDF?

The ratio of normals including Cauchy refers to the proportion of normal distributions, including the Cauchy distribution, that make up the pathological PDF. This ratio is typically less than one and varies depending on the specific distribution.

How do you identify a pathological PDF?

A pathological PDF can be identified by visual inspection of the distribution, such as through a histogram or probability plot. It may also be identified through statistical tests, such as the Kolmogorov-Smirnov test, which compares the distribution to a normal distribution.

What causes a PDF to be pathological?

Pathological PDFs can be caused by a variety of factors, including data that is skewed or has extreme values, a small sample size, or an underlying non-normal distribution. They can also be a result of errors or limitations in the data collection process.

Similar threads

Replies
3
Views
1K
Replies
1
Views
1K
Replies
4
Views
3K
Replies
20
Views
404
Replies
3
Views
2K
Replies
1
Views
1K
Replies
16
Views
2K
Back
Top