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
A construction crew built miles of road in days. What is the unit rate in miles per day? Write your answer as a fraction or a mi
vovikov84 [41]

Complete question :

A construction crew built 1/2 miles of road in 1/8 days. What is the unit rate in miles per day? Write your answer in simplest form.

Answer:

3 miles per day

Step-by-step explanation:

Given that:

1/2 miles of road takes 1/8 days

Unit Rate in miles per day :

Miles of road built / number of days taken

1/2 miles ÷ 1/8 days

1/2 * 8/1

= (1*8) / (2*1)

= 8/2

= 4

Unit Rate = 4 miles per day

4 0
2 years ago
I need help with linear regression ​
frutty [35]

Answer:

<em>In statistics, linear regression is a linear approach to modelling the relationship between a scalar response (or dependent variable) and one or more explanatory variables (or independent variables). The case of one explanatory variable is called simple linear regression. For more than one explanatory variable, the process is called multiple linear regression. This term is distinct from multivariate linear regression, where multiple correlated dependent variables are predicted, rather than a single scalar variable.</em>

6 0
3 years ago
Linette buys a bracelet for $13.50 plus a 7% tax. Sheila buys a bracelet for $12 plus a 7% tax. What is the sum, in dollars, tha
Zinaida [17]

Answer:

Linette paide $14.45 and Sheila paid $12.84 in total that is $27.29.

Step-by-step explanation:

5 0
2 years ago
Answer pleaseeeee?:)
gtnhenbr [62]
If I were to tell a kid how to use the formula (the SA of a pyramid it looks like):

First, find the area of the base of the figure, using length times width.

Next, find the perimeter of the base by adding up the length of each side of the base.

Multiply the perimeter of the base by the slant height of the figure, which is the line on the side of the figure that is diagonal.

Divide the answer you got from multiplying the perimeter of the base times the slant height of the base by 2.

Now add up the area of the base of the figure with the answer you just got by dividing the perimeter of the base times the slant height by 2.

That is how you use the formula: SA = B + 1/2(P · l)
4 0
3 years ago
(10,-1) slope 1/2 slope intercept form
lawyer [7]

Answer:

y=1/2x-6

Step-by-step explanation:

y-y1=m(x-x1)

y-(-1)=1/2(x-10)

y+1=1/2x-10/2

y=1/2x-5-1

y=1/2x-6

8 0
3 years ago
Other questions:
  • I the cafeteria there are 7 teachers 48 girls and 45 boys. What is the probability that a person chosen at random from the cafet
    12·2 answers
  • The vertex of this parabola is at (-2, -3). When the x-value is -1, the
    14·1 answer
  • A professor has recorded exam grades for 10 students in his​ class, but one of the grades is no longer readable. If the mean sco
    10·1 answer
  • meyer used 6 loads of gravel to cover 2/5 of his driveway.how many loads of gravel will he need to cover his entire driveway?
    9·2 answers
  • Rebeca spent $32.55 for a photo album and three identical candles. The photo album cost $17.50 and the sales tax was $1.55. How
    9·1 answer
  • What is the area of the following triangle? <br> A. 300 in<br> B. 60 in<br> C. 150 in<br> D. 72 in
    13·2 answers
  • What is the value of x
    5·1 answer
  • A 6-foot roll of butcher paper costs $1.44. What is the price per inch?
    10·1 answer
  • Yoko has to carry 290 apples from a farm to the market. How many baskets will she need, given that each basket can hold 43 apple
    5·2 answers
  • Lillie and Adam are simplifying the expression 643<br><br> Whose reasoning is correct?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!