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
I have no clue how to do this please help-
laiz [17]

Answer:

 X =  2

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
Erica invests $10,000 at 5% interest compounded annually.
grigory [225]
A=P(1+i)^{n}
A=10000(1+15%)^{3}
=11576.25
 your answer is D
8 0
3 years ago
Is the answer A B C or D <br> This is 6th grade math need it ASAP
olasank [31]

First seperate the irregular shape into 2 regular shapes, by splitting the yellow part down the middle horizontally we get 2 obtuse triangles. Then we just need to find the area of both, to do this we just need base and height, this is 24 in base 15 in height

the area of each half is 180 square inches

180 + 180 = 360

the answer is A 360 square inches

8 0
3 years ago
2730/10,000 in decimal notation
ziro4ka [17]

2730/10,000 in decimal notation is 0.273

6 0
3 years ago
Need ASAP!!!!!!!!!!!!!!!!
Semmy [17]

Answer:

d

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • 1 2 3 4 5 6 7 8 9 10
    14·1 answer
  • (1) Cos AcosecA=cot A​
    13·1 answer
  • What is 2n-4&gt;6 in the inequality term?
    15·1 answer
  • Suppose you construct lines L, M, and N so that L is perpendicular to M and L is parallel to N. which of the following is true.
    15·1 answer
  • 1. The Senior Class of Great Ridge High School and Ann Arbor High School are planning a trip to Six Flags Theme Park. Great Ridg
    12·1 answer
  • Find the difference of the 2 prime numbers between 25 and 35​
    8·1 answer
  • What is the solution of 9x+4&lt;7-3n IF X is an element of whole number
    14·1 answer
  • Draw a double bar graph for the given information.
    8·1 answer
  • Consider the function ƒ(x) = x2. Which of the following functions shifts ƒ(x) downward 5 units and to the right 3 units?
    5·1 answer
  • Simplify.<br> 2(m + 11)<br> 0 24 m<br> O 2 m+ 22<br> O 2 m+ 11<br> O 22 m
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!