Probability from a chart of data

  • Thread starter Thread starter battery88
  • Start date Start date
  • Tags Tags
    Data Probability
battery88
Messages
18
Reaction score
0

Homework Statement



Three people write programs. The following table shows the percentage of codes written by each person (A, B, C) and the percentage of buggy codes for each person.

****************Coder****************
*************A*B*C*******************
Percent of code 30 25 45
Percent of bugs 2 3 5

The table may be a bit hard to read so here is the break down:
Person A wrote 30% of the code and had 2% bugs
Person B wrote 25% of the code and had 3% bugs
Person C wrote 45% of the code and had 5% bugs

Given that a bug was found, find the probability that it was in code written by person C.

Homework Equations


The Attempt at a Solution



After much thought on this problem I'm still no closer to solving it. Honestly, we haven't done any problems set up in this way and I'm not really sure how to go about this problem. Any pointers would be much appreciated.
 
Last edited:
Physics news on Phys.org
Suppose there was a total of 10000 lines of code written. How many lines did A write? How many of those lines contain bugs? Same with B and C.
 
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