Gamma and Beta functions


By Anonymous on Wednesday, January 5, 2000 - 07:40 pm :

What is the definition of a gamma function?
I know that the factorial is the integral from 0 to infinity of a gamma function, but aren't there lots of gamma functions?


By Pras Pathmanathan (Pp233) on Thursday, January 6, 2000 - 11:12 pm :
The gamma function is defined as Γ(n)= 0 xn-1 e-x dx

for n>0 - the integral doesn't exist for n0. (The limits of the integral are 0 and infinity, in case it doesn't look very clear).

I'm not sure why it is defined with an n-1 instead of n, but it means that it's Γ(n+1) rather than Γ(n) that is equal to n!. This isn't very difficult to prove: if you know how to do integration by parts try to show that

Γ(n+1)=n×Γ(n),

and this, together with the fact that

Γ(1)= 0 e-x dx=1(=0!)

proves that Γ(n+1)=n! Other results like (-1/2)!=π can be derived, and used to baffle people who haven't heard of the alternate definition.

Pras



By Neil Morrison (P1462) on Friday, January 7, 2000 - 09:15 pm :

Ah but if you write n!, then doesn't n automatically have to be an integer in that notation?

You could write Γ(0.5)=π.
Presumably your proof by integration by parts is really a proof by induction.

So there is only one gamma functions. Does it have any other uses/properties other than to bemuse people who only know use !

Thanks,
Neil M

PS: never done a pun with punctuation before


By Pras Pathmanathan (Pp233) on Friday, January 7, 2000 - 10:36 pm :
''Ah but if you write n!, then doesn't n automatically have to be an integer in that notation?''

I suppose so; I'm being sloppy with notation - but Γ(1/2)=π doesn't look as baffling as (-1/2)!=π.

''Presumably your proof by integration by parts is really a proof by induction.''

Not really, though the two methods would look almost exactly the same. What I've showed is that the function f(n)=Γ(n+1) defined on 0, 1, 2, 3, ... satisfies:

(1) f(n+1)=(n+1)f(n)

(2) f(0)=1

which is exactly the definition of the factorial function.

As for other uses, I think it's involved in probability, with certain distributions of continuous random variables. There is a gamma distribution, parameters λ and γ, given by the density function

f(x)=λ(λx )γ-1 e-λx /Γ(γ)

for x>0

and the gamma function is also involved in the Chi-squared distribution. I don't know much about these distributions though.

BTW - I made a mistake when I said the gamma function isn't defined for n<0 - having looked at a graph of Γ(n), it seems it only doesn't exist at the negative integers and 0. Pras



By Michael Doré (P904) on Friday, January 7, 2000 - 11:01 pm :

It does have a very interesting property which I can neither prove nor understand (I haven't thought about it as much as I should though.). This may very well may be an unhelpful way to go about it, but it does seem unusual. This came out of the discussion in Statue of the Anonymous: half derivatives.

If you let f(x)=xn then the kth derivative of f(x) is n!/(n-k)! xn-k for integral k. So can we perhaps use this result to generalise the factorial??

Well the idea is to let n be natural and k be rational. Then we have

(n-k)! = xn-k n!/kth derivative of xn

So the left hand side is the kind of thing we are looking for. The RHS is easy apart from the kth derivative of xn for non-integral k. We somehow want to be able to partially differentiate...

Well one sensible way of doing this is looking at the limiting definition of differentiation.

f'(x) = lim(d-> 0) [f(x)-f(x-d)]/d
f''(x) = lim(d-> 0) [f(x)-2f(x-d)+f(x-2d]/d2
f'''(x) = lim(d-> 0) [f(x)-3f(x-d)+3f(x-2d)-f(x-3d)]/d3

and you get the binomial co-efficients

Now to evaluate a non-integral derivative you must use the infinite binomial expansion. To make it converge, you can let the number of terms increase as proportional to 1/d. This is a self-consistent definition for a fractional derivative for exactly the same reasons that (1-x)n can be expanded out in an infinite series. (I'll explain the analogy if you like).

So using this method we can define n! for all rational n. If we let it be continuous we can define it for all real n.

And lo and behold, defining everything like this we do indeed appear to get the gamma function! (At least for all the values I've tried. It predicted for example that (1/2)! = sqrt(pi)/2.)

Now the infinite binomial expansion is based on the generalisation of powers (to non-integral indices). So anyway I believe that there is some deep analogy between the way factorials are generalised and the way the powers and indices are generalised, for non-integers.

But then I could be wrong.

Thanks,

Michael


By Dave Sheridan (Dms22) on Friday, January 7, 2000 - 11:53 pm :
The Chi squared distribution with p degrees of freedom is simply a Gamma(1/2, p/2) distribution. It's not too difficult to prove that this is also the distribution of the sum of p squares of iid standard normal random variables. It turns out that there are many tests in Statistics where the test statistic has a Chi 2 distribution, although proving this is rather difficult. If you need to calculate a Chi 2 cumulant, you need the gamma function, which is why I was writing this in the first place.

\G(a)= 0 ba xa-1 e-bx dx

for any value of b. Whether this is useful for anyone is debatable, but it's another numerical way to determine the gamma function.

Finally, there's another useful distribution called the Beta distribution. This has two parameters, again a and b, and density

f(x)= xa-1 (1-x )b-1 /B(a,b), 0<x<1,

where B(a,b) is called the Beta function, and can be written purely in terms of the Gamma function.

B(a,b)=G(a+b)/G(a)G(b).

The beta distribution happens to have nice properties as well, and turns up in many unexpected places. I don't know of any use of the beta function outside of this distribution however.

If anyone's interested I'll go on some more about these but otherwise I'll shut up...

-Dave


By Neil Morrison (P1462) on Saturday, January 8, 2000 - 01:18 pm :

Pras-

You said you had looked at a graph for gamma function. It obviously is a very exponentially shaped graph but does it have any bizarre parts?


By Pras Pathmanathan (Pp233) on Saturday, January 8, 2000 - 05:54 pm :

Nothing very bizarre - here's a link to a (reasonable) graph of the gamma function: click here .

Pras


By Alex Barnard (Agb21) on Thursday, January 27, 2000 - 10:54 am :

Just to quickly add something to this discussion.

The integral which was given to define the gamma function only converges for n> 0 (as was mentioned) however the gamma function is actually defined on the real line (except for 0,-1,-2,...). Infact it can be defined on the complex plane apart from these points. This is an example of what is called analytic continuation and is basically a way to define function on as large a domain as possible.

How do we do this for the gamma function? Well one of the properties was that G(n+1) = n*G(n) so if we assume that this is a general property of the function we can write it as G(n-1) = G(n)/(n-1). And now we can use this identity to start defining the gamma function on places where the original definition failed. Clearly we can't stick n=1 into this definition which is why the function is ill-defined at the origin. And then when we repeatedly use this we see that the problem at 0 propogates backwards to the points -1,-2,-3,...

Analytic continuation is a very important part of mathematics. Normally it is impossible for a function to be defined everywhere in one formula (even the series 1+x+x2 +x3 +... doesn't work for x> 1 even though it clearly is trying to define the function 1/(1-x) which does exist for x> 1) so it is vital to obtain properties of the function and then use these to claw one's way up to the whole function.

AlexB.