What Is the Expected Total Number of Errors in a Computer Code?

Click For Summary

Homework Help Overview

The problem involves calculating probabilities and expected values related to errors in a computer code composed of two independently written blocks. Each block has defined probabilities for containing zero, one, or two errors.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the interpretation of part d, questioning whether to compute the expected number of errors in the second block and how it relates to the first block's expected errors.

Discussion Status

The discussion is ongoing, with participants exploring the relationship between the expected errors in both blocks. Some guidance has been offered regarding the summation of expected errors, but no consensus has been reached on the approach to part d.

Contextual Notes

There is uncertainty regarding the correct interpretation of the expected total number of errors and how to combine the expected values from both blocks.

lina29
Messages
84
Reaction score
0

Homework Statement




A computer code consists of two blocks written independently by two programmers. Each block contains no errors with probability 0.6, one error with probability 0.3, and two errors with probability 0.1.
a. What is the probability that there are more errors in the first block than in the second block?
b. What is the probability that two blocks have an equal number of errors?
c. Compute the expected number of errors in the 1st block.
d. Let Z be the total number of errors in the code. Use your answer in (c) to find E(Z).

Homework Equations


For A-.27
B- .46
C- .5

All of which were correct

The Attempt at a Solution


I just don't understand what part d is asking am I supposed to compute the expected number of errors in the 2nd block (.5) and then add it with the first block getting .10

or is there another approach?
 
Physics news on Phys.org
Well, .5+.5 isn't equal to 0.10.
 
sorry I knew that :) I meant 1. would that be correct?
 
lina29 said:
sorry I knew that :) I meant 1. would that be correct?

I think so. Expected total number of errors is the sum of the expected number of errors in the two blocks.
 

Similar threads

Replies
4
Views
2K
Replies
31
Views
7K
Replies
1
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
Replies
3
Views
2K
Replies
19
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 24 ·
Replies
24
Views
9K