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
Dan Dayle started a business by issuing an $85,000 face-value note to First State Bank on January 1, Year 1. The note had an 7 p
ICE Princess25 [194]
58,319 is the answer lol
5 0
3 years ago
For 1-6, find the slope of the line of (-2,4) and (4,2)
Oksanka [162]
M=2-4/4-(-2)
m=-2/6
m=-1/3
4 0
3 years ago
What is the horizontal asymptote of the function f(x)=((x-2))/((x-3)^(2))
lana [24]

Answer:

y = 0

Step-by-step explanation:

f(x) = (x − 2) / (x − 3)²

Take the limit as x approaches -∞ and ∞.  Since the power of the denominator is greater than the power of the numerator, both limits are 0:

lim(x→-∞) f(x) = 0

lim(x→∞) f(x) = 0

So the horizontal asymptote is y = 0.

5 0
3 years ago
Read 2 more answers
Keisha is solving the equation 7^x=9.
olganol [36]
\bf \textit{Logarithm of exponentials}\\\\
log_a\left( x^  b \right)\implies   b\cdot  log_a(x)\\\\
-------------------------------\\\\
7^x=9\implies \boxed{log(7^x)=log(9)}\implies x\cdot log(7)=log(9)
\\\\\\
x=\cfrac{log(9)}{log(7)}
3 0
3 years ago
Polynomials -5x^2(6x − 1) ASAP will mark brainliest
pashok25 [27]

Answer:

The answer would be 30ASx³ + 5ASx²

Step-by-step explanation:

7 0
4 years ago
Read 2 more answers
Other questions:
  • Edgar accumulated $5,000 in credit card debt. If the interest is 20% per year and he does not make any payment for 2 years. How
    15·2 answers
  • Find the vertex of the parabola whose equation is y = x2 + 8x + 12.
    8·2 answers
  • Addinfg in scientific notation 9x10^3 +2.3x10^4=
    7·1 answer
  • What's the answer and plz answer honestly??
    15·1 answer
  • Which is the correct form
    5·2 answers
  • Is 40 inch or 100 cm bigger
    15·2 answers
  • NEED HELP QUICKLY!!! WILL GIVA BRAINLIEST
    13·1 answer
  • Can somebody help me??????
    13·1 answer
  • How many feet is in 3 miles 100 feet
    9·1 answer
  • F(x) = x^2 + 4x + 20 find the real roots. take your time if you want :)
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!