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
PLEASE HELP ASAP WILL MARK BRAINLIEST
xz_007 [3.2K]
The answer is C good luck on ur test
3 0
2 years ago
Read 2 more answers
Find the value of two numbers if their sum is 124 and their difference is 16
Paraphin [41]
The answer is 8 and 4
6 0
3 years ago
The mean hourly wage for employees in goods-producing industries is currently $24.57 (Bureau of Labor Statistics website, April,
Karolina [17]

Answer:

a)Null hypothesis:\mu = 24.57  

Alternative hypothesis:\mu \neq 24.57  

b) df=n-1=30-1=29  

Since is a two sided test the p value would be:  

p_v =2*P(t_{(29)}  

c)  If we compare the p value and the significance level assumed \alpha=0.05 we see that p_v>\alpha so we can conclude that we have enough evidence to fail reject the null hypothesis, so we can't conclude that the true mean is different from 24.57 at 5% of signficance.

d)  For this case since we have a two tailed test we need to find two critical values and we need 0.025 of the area on each tail of the t distribution with 29 degrees of freedom. The critical values are given by:

t_{crit}=\pm 2.045

And the rejection zone would be given by:

(-\infty , -2.045) U(2.045,\infty)

Since pur calculated value is not on the rejection zone we Fail to reject the null hypothesis.

Step-by-step explanation:

The mean hourly wage for employees in goods-producing industries is currently $24.57. Suppose we take a sample of employees from the manufacturing industry to see if the mean hourly wage differs from the reported mean of $24.57 for the goods-producing industries.

a. State the null and alternative hypotheses we should use to test whether the population mean hourly wage in the manufacturing industry differs from the population mean hourly wage in the goods-producing industries.

We need to conduct a hypothesis in order to check if the mean is equal to 24.57 or not, the system of hypothesis would be:  

Null hypothesis:\mu = 24.57  

Alternative hypothesis:\mu \neq 24.57  

b. Suppose a sample of 30 employees from the manufacturing industry showed a sample mean of $23.89 per hour. Assume a population standard deviation of $2.40 per hour and compute the p-value.

\bar X=23.89 represent the sample mean  

s=2.4 represent the sample standard deviation

n=30 sample size  

\mu_o =24.57 represent the value that we want to test

t would represent the statistic (variable of interest)  

p_v represent the p value for the test (variable of interest)  

If we analyze the size for the sample is = 30 but we don't know the population deviation so is better apply a t test to compare the actual mean to the reference value, and the statistic is given by:  

t=\frac{\bar X-\mu_o}{\frac{s}{\sqrt{n}}}  (1)  

t-test: "Is used to compare group means. Is one of the most common tests and is used to determine if the mean is (higher, less or not equal) to an specified value".  

Calculate the statistic

We can replace in formula (1) the info given like this:  

t=\frac{23.89-24.57}{\frac{2.4}{\sqrt{30}}}=-1.552    

P-value

The first step is calculate the degrees of freedom, on this case:  

df=n-1=30-1=29  

Since is a two sided test the p value would be:  

p_v =2*P(t_{(29)}  

c. With  α = 0.05  as the level of significance, what is your conclusion?

If we compare the p value and the significance level assumed \alpha=0.05 we see that p_v>\alpha so we can conclude that we have enough evidence to fail reject the null hypothesis, so we can't conclude that the true mean is different from 24.57 at 5% of signficance.

d. Repeat the preceding hypothesis test using the critical value approach.

For this case since we have a two tailed test we need to find two critical values and we need 0.025 of the area on each tail of the t distribution with 29 degrees of freedom. The critical values are given by:

t_{crit}=\pm 2.045

And the rejection zone would be given by:

(-\infty , -2.045) U(2.045,\infty)

Since pur calculated value is not on the rejection zone we Fail to reject the null hypothesis.

4 0
3 years ago
Will Mark Brainliest!!! Please Help
tresset_1 [31]

(1) Outcomes

(2) Permutation

(3) Tree Diagram

(4) Counting Principle

(5) Combination

(6) Factorial

(7) Addition Principle of Counting

(8) Multiplication Principle of Counting

<em>Hope this helps</em>

<em>-Amelia The Unknown</em>

3 0
3 years ago
Can u guys PLEASE answer this question ASAP. Two wooden boxes, both with dimensions 80 cm, 1 m and 25 cm, are placed on the grou
Slav-nsk [51]

Answer:

34000cm or 340m

Step-by-step explanation:

We have to find total surface area.

dimensions of 1 wooden box =

l = 1m = 100cm

b = 80cm

h = 25cm

∴ In the case of 2 =

l = 100cm

b= 80cm

h  = 25 + 25 = 50cm

T.S.A = 2(lb + lh + bh)

= 2(100*80 + 100*50+ 80*50)

= 2(8000+5000+4000)

= 2*17000

= 34000cm

= 340m

3 0
3 years ago
Other questions:
  • Joel bought 8 books. Some books cost $13 each and some cost $17 each. In all, he spent $128. Which system of linear equations re
    5·1 answer
  • Leon has 4 times as much money as Andrew, and Bryanna has $250 more than Leon. If Bryanna has $300, how much does Andrew have? L
    11·1 answer
  • Decide whether the statement below makes sense (or is clearly true) or does not make sense (or is clearly false). Explain. In my
    8·1 answer
  • Which of the following is the surface area of the right cylinder below?
    15·1 answer
  • I Have A 58 in Math Please Help Who Ever Can Make A Real World Scenario With The Pythagorean Theorem And The Solution Step By St
    14·1 answer
  • The Vatican has to be guarded 24 hours a day. Fifteen Swiss Guards are ordered to split each day's guard duty equally. How long
    15·1 answer
  • Rachel bought a sweater at the sale price of $38. The original cost of the sweater was $52. What percent represents the discount
    13·1 answer
  • 33×33-33+33÷0 solve this​
    6·2 answers
  • 8. The trajectory of a model rocket launched from a 2-
    10·1 answer
  • A store offers a 30% discount on a coat that originally sold for $120. The coat still does not sell, so the store offers another
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!