# Probability from a chart of data

• battery88
In summary, three people (A, B, and C) wrote programs with A writing 30% of the code and having 2% bugs, B writing 25% of the code and having 3% bugs, and C writing 45% of the code and having 5% bugs. Given that a bug was found, the probability that it was in code written by person C would be 5%.
battery88

## 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.

## 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:
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.

## What is probability?

Probability is a measure of the likelihood of an event occurring. It is expressed as a number between 0 and 1, where 0 indicates impossibility and 1 indicates certainty.

## How is probability calculated from a chart of data?

In order to calculate probability from a chart of data, you must first determine the total number of possible outcomes in the data set. Then, you divide the number of desired outcomes by the total number of possible outcomes. This will give you the probability of the event occurring.

## What is the difference between theoretical and experimental probability?

Theoretical probability is the probability that an event will occur based on mathematical calculations and assumptions. Experimental probability is the probability that an event will occur based on actual data collected from experiments or observations.

## How can probability be used in real-life situations?

Probability can be used in many real-life situations, such as predicting the weather, analyzing stock market trends, or determining the likelihood of a sports team winning a game. It is also used in risk assessment, insurance, and gambling.

## What are some common misconceptions about probability?

One common misconception about probability is that past outcomes will affect future outcomes. In reality, probability is based on independent events and each outcome has an equal chance of occurring. Another misconception is that probability can be used to predict exact outcomes, when in fact it only gives a measure of likelihood.

• Calculus and Beyond Homework Help
Replies
4
Views
1K
• Calculus and Beyond Homework Help
Replies
31
Views
3K
• Engineering and Comp Sci Homework Help
Replies
7
Views
2K
• MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
2K
• MATLAB, Maple, Mathematica, LaTeX
Replies
8
Views
1K
Replies
11
Views
2K
• Quantum Physics
Replies
24
Views
654
• Set Theory, Logic, Probability, Statistics
Replies
2
Views
971
• Programming and Computer Science
Replies
2
Views
766
• Calculus and Beyond Homework Help
Replies
4
Views
2K