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

  • Thread starter Thread starter juanma101285
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on calculating the probability of errors in a typescript page using Bayes' theorem. The homework problem involves a typescript page with 40 lines and 80 characters per line, where each character has a 0.001 probability of being erroneous. The user successfully calculated probabilities for parts A, B, and C, but struggles with part D, which requires determining the probability that two errors occur on separate lines given that there are exactly two errors on the page. The solution involves recognizing mutually exclusive events and calculating the relevant probabilities accordingly.

PREREQUISITES
  • Understanding of Bayes' theorem
  • Knowledge of combinatorial calculations (e.g., binomial coefficients)
  • Familiarity with probability concepts, particularly independent events
  • Basic understanding of typescript structure and error probabilities
NEXT STEPS
  • Study the application of Bayes' theorem in conditional probability problems
  • Learn about binomial distributions and their properties
  • Explore combinatorial methods for calculating probabilities of events
  • Investigate examples of error analysis in programming and typesetting
USEFUL FOR

Students in statistics or computer science, educators teaching probability theory, and anyone interested in error analysis in programming contexts.

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.
 

Similar threads

  • · Replies 47 ·
2
Replies
47
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 60 ·
3
Replies
60
Views
13K
  • · Replies 36 ·
2
Replies
36
Views
4K