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
Graph the system. Use the graph to approximate<br> the solution of the equation<br> logg5 = 7 - 3x.
Alex

Answer: 2.09

Step-by-step explanation:

6 0
3 years ago
N-6 divided by 3 = -4 what is n
puteri [66]
-6 is the answer that you want
8 0
3 years ago
Read 2 more answers
Can someone please help me i dont understand this at all
goblinko [34]

Answer:

D.

40 x 6.4 = 256

256/128=2 so 2 gallons.

Step-by-step explanation:

5 0
3 years ago
If the coefficient of determination for a data set is 0.75 and the SSE for the data set is 9, what is the SST for the data set?
OverLord2011 [107]
0.1873 aaaaaaaaaaaaaaaaaaaaaaaa
6 0
3 years ago
Read 2 more answers
What is the slope for this line?​
Juli2301 [7.4K]

Answer:

2

Step-by-step explanation:

2/1=2, 8/4=2, 12/6=2

3 0
3 years ago
Other questions:
  • What is the slope of this equation y+3=2(x-1)
    15·2 answers
  • The weighted moving average forecast for the 5th period, with weights of 0.15 for period 1, 0.20 for period 2, 0.25 for period 3
    12·1 answer
  • 3,495 rounded to the nearest thousands ​
    15·2 answers
  • Solve for y: 10.3 = 0.6y
    15·2 answers
  • PLEASE HELP
    11·1 answer
  • Find the area of a regular hexagon with an apothem 17.3 miles long and a side 20 miles long
    11·1 answer
  • Can u guys please identify the types of these triangles ( question 13)
    13·2 answers
  • Alan has already baked 10 pies, and he can bake 2 pies with each additional cup of sugar
    5·1 answer
  • A. mg- fp sin theta<br>B. mg-fp cos theta<br>c. Mg + fp sin theta<br>d. mg​
    5·1 answer
  • If Sue runs one mile every 7 minutes, and this relationship is graphed, which ordered pair would not be on the graph?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!