Probability from a chart of data

  • Thread starter Thread starter battery88
  • Start date Start date
  • Tags Tags
    Data Probability
Click For Summary
SUMMARY

The discussion focuses on calculating the probability that a bug found in a codebase was written by person C, given the contributions and bug rates of three coders: A, B, and C. Coder A contributed 30% of the code with a 2% bug rate, coder B contributed 25% with a 3% bug rate, and coder C contributed 45% with a 5% bug rate. The total lines of code are assumed to be 10,000, leading to the need for a structured approach to determine the likelihood of a bug originating from coder C's contributions.

PREREQUISITES
  • Understanding of basic probability concepts
  • Familiarity with percentage calculations
  • Knowledge of conditional probability
  • Ability to interpret data tables
NEXT STEPS
  • Study conditional probability and Bayes' theorem
  • Practice percentage calculations in coding contexts
  • Explore examples of probability problems involving multiple contributors
  • Learn how to set up and analyze data tables for statistical insights
USEFUL FOR

Students in statistics or computer science, software developers analyzing code quality, and anyone interested in understanding probability in programming contexts.

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.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
Replies
31
Views
7K
Replies
7
Views
3K
Replies
4
Views
3K
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
3
Views
4K