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
Will give brainliest i rlly need help
Zepler [3.9K]

Answer:

1/6

Step-by-step explanation:

-3/4 - (-1/2) = - 1/4

-2/3 - 5/6 = - 3/2

-1/4 ÷ -3/2

3 0
2 years ago
Drag each equation to show if it could be a correct first step to solving the equation 8(x + 5) = 56.
cupoosta [38]

Answer:

8x+40=56

Step-by-step explanation:

You have to distribute the 8

Then finish the rest of the problem

7 0
3 years ago
Bus going at 30 mph for 7 hours
Sergeu [11.5K]
Well, not specific. But after 7 hour the bus will be 210mi away
3 0
3 years ago
Read 2 more answers
The​ ​cost​ ​to​ ​manufacture​ ​​x​​ ​number​ ​of​ ​chairs​ ​can​ ​be​ ​represented​ ​by​ ​the​ ​function​ ​C(x)=36x .​ ​In​ ​th
bogdanovich [222]
<span>C(x)=2268 means that the cost of </span><span>​manufacture​ 63 chairs is 2268$.

2268/36 = 63 chairs
</span>
4 0
3 years ago
19 squared equals 361
Fudgin [204]
Correct, I am not sure it that was the answer you were looking for
6 0
3 years ago
Read 2 more answers
Other questions:
  • FILL IN THE BLANK
    12·2 answers
  • How do turn a decimal to a fraction
    11·2 answers
  • Lauren and minki are in a bike race. Lauren bikes at 18 miles per hour. Minki bikes at 12 miles per hour and has a 6-mile head s
    8·1 answer
  • Let h = 3. <br><br> What is the value of (27 ÷ h) · 5?
    5·2 answers
  • In the diagram below, jkjk is an equilateral triangle and Km jl
    11·1 answer
  • without any natural predators rabbits can grow at a rate of 25% each year, if 6 rabbits were introduced into an area how many ra
    6·1 answer
  • For 3x2 - 4x+ 1, match the following:
    9·1 answer
  • Replace each with &lt;, &gt;, or = to make a true sentence.<br> –6 −4
    10·2 answers
  • What is the perimeter?
    7·1 answer
  • Simplify<br><br>2 x m x n x 8​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!