Help needed on Question D: Webpage Title - "Stuck on Question D? Get Help Here!

  • Thread starter Thread starter juanma101285
  • Start date Start date
juanma101285
Messages
5
Reaction score
0
Hi, I have the following problem, but I am stuck on question D. I would really appreciate if someone could give me a hand! I think I have to use Bayes' theorem, but I don't know how :/. Thanks!

Homework Statement


"A page of typescript contains 40 lines, with 80 characters per line. Each character has probability p=0.001 (independently of the others) of being erroneous.

A) What is the probability that a particular line contains no errors (i.e., no erroneous characters)?
B) What is the probability that a particular line contains more than one error?
C) What is the probability that the page contains exactly two errors?
D) Given that the page contains exactly two errors, what is the probability that they occur on separate lines?"

Homework Equations


Bayes Theorem (I think)

The Attempt at a Solution


A)
p(x=0)=80C0*(0.001^0)*(0.999^80)=0.9231

B)
p(x=1)=80C1*(0.001^1)*(0.999^79)=0.0739
So,
p(x>1)=1-p(x=0)-p(x=1)=0.003

C)
p(x=2)=3200C2*(0.001^2)*(0.999^3198)=0.2087

D)
I do not know how to work out p(errors are on separate lines|page contains 2 errors). If Bayes' theorem is not needed, it would then be with the formula:

p(errors on separate lines|page has 2 errors)=p(errors on separate lines AND page has 2 errors)/p(page has 2 errors)... but how do I get the numerator for this division? :/
 
Physics news on Phys.org


juanma101285 said:
Hi, I have the following problem, but I am stuck on question D. I would really appreciate if someone could give me a hand! I think I have to use Bayes' theorem, but I don't know how :/. Thanks!

Homework Statement


"A page of typescript contains 40 lines, with 80 characters per line. Each character has probability p=0.001 (independently of the others) of being erroneous.

A) What is the probability that a particular line contains no errors (i.e., no erroneous characters)?
B) What is the probability that a particular line contains more than one error?
C) What is the probability that the page contains exactly two errors?
D) Given that the page contains exactly two errors, what is the probability that they occur on separate lines?"


Homework Equations


Bayes Theorem (I think)


The Attempt at a Solution


A)
p(x=0)=80C0*(0.001^0)*(0.999^80)=0.9231

B)
p(x=1)=80C1*(0.001^1)*(0.999^79)=0.0739
So,
p(x>1)=1-p(x=0)-p(x=1)=0.003

C)
p(x=2)=3200C2*(0.001^2)*(0.999^3198)=0.2087

D)
I do not know how to work out p(errors are on separate lines|page contains 2 errors). If Bayes' theorem is not needed, it would then be with the formula:

p(errors on separate lines|page has 2 errors)=p(errors on separate lines AND page has 2 errors)/p(page has 2 errors)... but how do I get the numerator for this division? :/

When you are GIVEN that the page has two errors, the probabilities 0.001 and 0.999 are now irrelevant (do you see why?). You now just have two things that are to be distributed randomly among 40 lines.

RGV
 
juanma101285 said:
p(errors on separate lines|page has 2 errors)=p(errors on separate lines AND page has 2 errors)/p(page has 2 errors)... but how do I get the numerator for this division? :/
Sometimes it helps to look at the "opposite" problem. In this case, there are two ways that two errors on a page can be distributed over the lines that comprise that page: (1) The two errors can be on two separate lines, or (2) both errors can be on the same line. These are mutually exclusive and collectively exhaustive events. So, given that there are two errors on the page, can you calculate the probability they are on the same line? Here the numerator in the conditional probability expression is the probability that one line contains two errors and that the remaining 39 lines are error-free. Note that there are 40 ways this can happen.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top