Stirlings approx/CoinFlips/Gamma function

  • Thread starter Thread starter thatguy14
  • Start date Start date
  • Tags Tags
    Function
Click For Summary
SUMMARY

The discussion focuses on three mathematical problems related to Stirling's approximation, coin flip probabilities, and the gamma function. The first question requires proving that ln(n!) ≈ nln(n) - n + ln(2πn)/2 for large n, which is a key result in asymptotic analysis. The second question involves calculating the probability of getting exactly 500 heads when flipping 1000 coins, utilizing Stirling's approximation. The third question asks to demonstrate that n! = ∫ x^n exp(-x) dx from 0 to infinity, highlighting the gamma function's role in extending factorials to non-integer values.

PREREQUISITES
  • Understanding of Stirling's approximation in asymptotic analysis
  • Basic probability theory, particularly binomial distributions
  • Familiarity with the gamma function and its properties
  • Integration techniques, including integration by parts
NEXT STEPS
  • Study Stirling's approximation in detail, focusing on its derivation and applications
  • Learn about binomial distributions and how to calculate probabilities using combinatorial methods
  • Explore the properties of the gamma function and its relationship to factorials
  • Practice integration techniques, especially integration by parts, to solve complex integrals
USEFUL FOR

Students in advanced mathematics or physics courses, particularly those studying thermodynamics, probability theory, and calculus. This discussion is beneficial for anyone looking to deepen their understanding of Stirling's approximation and the gamma function.

thatguy14
Messages
45
Reaction score
0

Homework Statement


Hi I actually have three questions that I am posting here, help in all of them would be greatly appreciated!

1) Prove that ln(n!) ≈ nln(n)-n+ln(2*pi*n)/2 for large n

2)Supposed you flip 1000 coins, what is the probability of getting exactly 500 heads

3) Show that n! = \int x^{n}exp(-x)dx where n is an integrer and the injtegral is from 0 to infinity. (The gamma function extends this definition of factorial to include non-integrers, z).

Homework Equations



Below

The Attempt at a Solution



1) I am pretty lost here. This is a third year thermodynamics course (not been heavily math based so far) so the solution shouldn't be something above that level. I don't even know where to start.

2) This one I thought would be really easy (and it should be). This is what I did.

I started off by ignoring the last term of stirlings approximation (this is what the textbook has and my prof did). the probability is

P_{N}(n) = \frac{N!}{(N-n)!n!}*2^{-N}
by using stirlings approximation, (first taking the natural log of both sides) and simplifying I got (and my professor)

P = exp(NlnN - (N-n)ln(N-n)-nln(n)-Nln(2))

but when I plug in 1000 for N and 500 for n I keep getting 1 which I don't think is right. What am I doing wrong?

3)I tried to do an integration by parts on the right side but it leads to some undefined things (i.e. 0*infinity) so I am lost yet again. I thought that was just a definition, how do I show that?

Thanks
 
Physics news on Phys.org
Please ignore number two, it required that the terms left off to be added. Still need help with 1 and 3
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 19 ·
Replies
19
Views
2K
Replies
4
Views
5K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K