Extremely Tedious Math/Statistics Homework Question

  • Thread starter Thread starter number0
  • Start date Start date
  • Tags Tags
    Homework
Click For Summary
SUMMARY

The forum discussion revolves around a probability problem involving a coin with a probability p of landing heads. The task is to find the Probability Mass Function (PMF), mean, and variance of the total number of tosses required until the first head and the first tail occur. The expected value of X is derived as 1/(p-p^2) using WolframAlpha. A key insight shared is that the problem can be simplified by breaking it into two parts: the number of tosses until the first head (X1) and the number of tosses until the first tail (X2), allowing for easier calculation of the mean and variance of the sum of these random variables.

PREREQUISITES
  • Understanding of Probability Mass Function (PMF)
  • Knowledge of expected value and variance in probability theory
  • Familiarity with random variables and their properties
  • Basic proficiency in using computational tools like WolframAlpha
NEXT STEPS
  • Study the derivation of PMF for discrete random variables
  • Learn about the properties of the expected value and variance of sums of random variables
  • Explore more complex probability problems involving conditional probabilities
  • Practice using WolframAlpha for statistical calculations
USEFUL FOR

Students studying probability and statistics, educators teaching these concepts, and anyone looking to deepen their understanding of random variables and their distributions.

number0
Messages
102
Reaction score
0

Homework Statement



A coin with probability p of heads is tossed until the first head occurs. It is then tossed again
until the first tail occurs. Let X be the total number of tosses required.

(a) Find the PMF of X.
(b) Find the mean and variance of X.

Homework Equations



PMF is basically a function that helps calculate all the probability of all the possible values x can take, P(X = x).

By "mean", I think my professor means the expected value of X. Here is a link to what expected value for discrete values is:

http://en.wikipedia.org/wiki/Expected_value#Discrete_random_variable.2C_finite_caseThe variance of X is given by the following formula listed in the link below:

http://en.wikipedia.org/wiki/Variance#Discrete_random_variable

The Attempt at a Solution



I apologize if I cannot post in latex format or any kind of format for that matter. Instead, I will upload my work onto paint.

Part a) was relatively straightforward. I plugged in values X = 0, X = 1 ... X = x and came up with a formula. For example, when X = 4 we have:

H H H T
T H H T
T T H T

The formula for Part a) is display in the file I uploaded. Part b) is the hard one. I know what formulas to use and how to set it up, but it seems like it is just too TEDIOUS to calculate. Letting Wolframalpha do the work for me, the expected value of X is 1/(p-p^2). I really want to understand how I am suppose to derive the E(X) and the Var(X) in a more simple manner. Furthermore, I am not so sure if the formula I used in Part a) could be much more simplified. Anyways, I would appreciate it if someone can help me on this problem.

Thank you for your time and response.
 

Attachments

  • hw.jpg
    hw.jpg
    26.6 KB · Views: 469
Physics news on Phys.org
number0 said:

Homework Statement



A coin with probability p of heads is tossed until the first head occurs. It is then tossed again
until the first tail occurs. Let X be the total number of tosses required.

(a) Find the PMF of X.
(b) Find the mean and variance of X.


Homework Equations



PMF is basically a function that helps calculate all the probability of all the possible values x can take, P(X = x).

By "mean", I think my professor means the expected value of X. Here is a link to what expected value for discrete values is:

http://en.wikipedia.org/wiki/Expected_value#Discrete_random_variable.2C_finite_case


The variance of X is given by the following formula listed in the link below:

http://en.wikipedia.org/wiki/Variance#Discrete_random_variable


The Attempt at a Solution



I apologize if I cannot post in latex format or any kind of format for that matter. Instead, I will upload my work onto paint.

Part a) was relatively straightforward. I plugged in values X = 0, X = 1 ... X = x and came up with a formula. For example, when X = 4 we have:

H H H T
T H H T
T T H T

The formula for Part a) is display in the file I uploaded.


Part b) is the hard one. I know what formulas to use and how to set it up, but it seems like it is just too TEDIOUS to calculate. Letting Wolframalpha do the work for me, the expected value of X is 1/(p-p^2). I really want to understand how I am suppose to derive the E(X) and the Var(X) in a more simple manner. Furthermore, I am not so sure if the formula I used in Part a) could be much more simplified.


Anyways, I would appreciate it if someone can help me on this problem.

Thank you for your time and response.

Your statement "Part b) is the hard one" is exactly opposite to the truth. If X1 =number of tosses until the first H and then X2 = number of tosses until the first T, the total number is X = X1 + X2. Do you know how to find the mean and variance of a sum of random variables?

RGV
 
Ray Vickson said:
Your statement "Part b) is the hard one" is exactly opposite to the truth. If X1 =number of tosses until the first H and then X2 = number of tosses until the first T, the total number is X = X1 + X2. Do you know how to find the mean and variance of a sum of random variables?

RGV


Hmmm... I never thought to break up the problem into two. It should be much easier now. Thanks.
 

Similar threads

Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 15 ·
Replies
15
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K