1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
VashaNatasha [74]
3 years ago
5

A computer program contains one error. In order to find the error, we split the program into 6 blocks and test two of them, sele

cted at random. Let X be the number of errors in these blocks. Compute E(X).
Mathematics
1 answer:
Aleksandr-060686 [28]3 years ago
7 0
There are \dbinom62 ways of selecting two of the six blocks at random. The probability that one of them contains an error is

\dfrac{\dbinom11\dbinom51}{\dbinom62}=\dfrac5{15}=\dfrac13

So X has probability mass function

f_X(x)=\begin{cases}\dfrac13&\text{for }x=1\\\\\dfrac23&\text{for }x=0\end{cases}

These are the only two cases since there is only one error known to exist in the code; any two blocks of code chosen at random must either contain the error or not.

The expected value of finding an error is then

\displaystyle\sum_{x=0}^1xf_X(x)=0\times\dfrac23+1\times\dfrac13=\dfrac13
You might be interested in
What is the range of: 21, 35, 17, 27, 32, 12 and 30<br><br>Find 2/9 of 36
dalvyx [7]
Range = highest value - lowest  = 35 -  12 = 23

2/9 * 36  = 2*4  = 8
6 0
3 years ago
Read 2 more answers
Whats 4.288 to the nearest hundreth?
erastova [34]
The answer would be 4.29
5 0
3 years ago
Read 2 more answers
The Comparing the Shape, Center, and Spread of Data Sets and more
MatroZZZ [7]

Answer:

8

Step-by-step explanation:

7 0
3 years ago
The lines shown below are perpendicular. If the green line has a slope of
DedPeter [7]
The opposite reciprocal of -1/9 is 9
So the answer is A
3 0
3 years ago
Read 2 more answers
In 1997 there were 11,012 licensed drivers over age 55 involved in fatal crashes. There
san4es73 [151]

Answer:

Step-by-step explanation:

No because there could simply be more older drivers on the road.

8 0
3 years ago
Other questions:
  • N a small storage bin, there is a collection of Legos. There are 15 red bricks, 10 yellow bricks, 8 blue bricks and 7 green bric
    8·1 answer
  • What is 165 % fraction simplified
    12·2 answers
  • The number of gallons of gas in the tanks plus 7 more adds up to 12 gallons
    5·2 answers
  • Kaylee opened an account with a deposit of $800. The bank pays 4% annual simple interest on this account. Kaylee makes no additi
    12·1 answer
  • 2m^2+2m-12=0 in vertex form
    13·1 answer
  • 5. <br> please choose the CORRECT answer!! thank you so much
    9·1 answer
  • PLEASE HELP I WILL GIVE BRAINLIEST TO THE CORRECT ANSWER
    11·1 answer
  • A shelf can hold 32 pounds of fruit. Each basket weighs 32 ounces. How many baskets can the shelf hold?
    8·1 answer
  • Use the distributive property to expand
    8·2 answers
  • If ​P(A)=0.9​, ​P(B)​=0.1, and A and B are​ independent, find​ P(A and​ B).
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!