0% found this document useful (0 votes)
21 views5 pages

Assignment 3 Computing

The document is an assignment by Amahle Nothando Mabaso from the Faculty of Engineering and Technology, focusing on computing applications and probability calculations. It includes detailed calculations for probabilities, binomial distributions, cumulative probabilities, and statistical measures such as mean, variance, and standard deviation. The assignment demonstrates the application of probability theory in various scenarios involving outcomes and their respective probabilities.

Uploaded by

Amahle Nothando
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views5 pages

Assignment 3 Computing

The document is an assignment by Amahle Nothando Mabaso from the Faculty of Engineering and Technology, focusing on computing applications and probability calculations. It includes detailed calculations for probabilities, binomial distributions, cumulative probabilities, and statistical measures such as mean, variance, and standard deviation. The assignment demonstrates the application of probability theory in various scenarios involving outcomes and their respective probabilities.

Uploaded by

Amahle Nothando
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Name: Amahle Nothando Mabaso

Student Number: 221917861


Faculty: Engineering and Technology
Department: Chemical and Metallurgical
Module: Computing Applications
Assessment type: Assignment 3
Date: 12 November 2023
1. Pr[𝑅 = 7] = Pr[𝑅 ≤ 7] − Pr[𝑅 ≤ 6]
Pr[𝑅 ≤ 7] = 0.810
Pr[𝑅 ≤ 6] = 0.686
𝑃[𝑅 = 7] = 0.810 − 0.686 = 0.124
6! 6×5×4! 6×5
2. a) 𝐶(6.2) = 2!×4! = = 2×1 = 15 𝑝𝑜𝑠𝑠𝑖𝑏𝑙𝑒 𝑜𝑢𝑡𝑐𝑜𝑚𝑒
2×1×4
𝐹𝑎𝑣𝑜𝑟𝑎𝑏𝑙𝑒 𝑜𝑢𝑡𝑐𝑜𝑚𝑒𝑠
𝑃(ℎ𝑎𝑣𝑖𝑛𝑔 𝑏𝑜𝑡ℎ 𝑟𝑒𝑑 𝑏𝑎𝑙𝑙𝑠) = 𝑇𝑜𝑡𝑎𝑙 𝑜𝑢𝑡𝑐𝑜𝑚𝑒𝑠

1
=
15
b) The binomial distribution is used when there are only two possible outcomes,
which are commonly referred to as success and failure. In this scenario, the problem
involves three hues (blue, red, and green).
3. a)
X Cumulative Probability
0 1
729
1 13
729
2 72
729
3 233
729
4 473
729
5 665
729
6 1
7 1

b)
𝑖 𝑥𝑖 Pr[𝑋 = 𝑥𝑖 ]
1 0 1
729
2 1 13 1 12
− =
729 729 729
3 2 72 13 59
− =
729 729 729
4 3 233 72 16
− =
729 729 729
5 4 473 233 240
− =
729 729 729
6 5 665 473 192
− =
729 729 729
7 6 655 64
1−− =
729 729

The outcomes with their probabilities are as follows:


1
𝑥 = 0 𝑤𝑖𝑡ℎ 𝑝𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 729
12
𝑥 = 1 𝑤𝑖𝑡ℎ 𝑝𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 729
59
𝑥 = 2 𝑤𝑖𝑡ℎ 𝑝𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 729
16
𝑥 = 3 𝑤𝑖𝑡ℎ 𝑝𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 729
240
𝑥 = 4 𝑤𝑖𝑡ℎ 𝑝𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 729
192
𝑥 = 5 𝑤𝑖𝑡ℎ 𝑝𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑙𝑖𝑡𝑦 729
64
𝑥 = 6 𝑤𝑖𝑡ℎ 𝑝𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 729

1
c) Pr[𝑥 ≤ 0] = 729 = 𝑃(0)
13
Pr[𝑥 ≤ 1] = 729 = 𝑃(0) + 𝑃(1)
72
Pr[𝑥 ≤ 2] = 729 = 𝑃(0) + 𝑃(1) + 𝑃(2)
233
Pr[𝑥 ≤ 3] = 729 = 𝑃(0) + 𝑃(1) + 𝑃(2) + 𝑃(3) + 𝑃(4)
665
Pr[𝑥 ≤ 5] = 729 = 𝑃(0) + 𝑃(1) + 𝑃(2) + 𝑃(3) + 𝑃(4) + 𝑃(5)
1
𝑃(0) = 729
12
𝑃(1) = 729
59
𝑃(2) = 729
161
𝑃(3) = 729
240
𝑃(4) = 729
192
𝑃(5) =
729
66
𝑃(6) = 729
66 44
𝑚𝑒𝑎𝑛 = 𝜇 = 6 × 𝑃(6) = 6 × 729 = 81

Variance

𝜃 2 = 6 × 𝑃(6) × (1 − 𝑃(6))
66 66
= 6 × 729 × (1 − 729))
9724
= 19683

Standard deviation

66 66
𝜃 = √6 × 729 × (1 − 729)

=0.703
d) Pr[𝑥 ≤ 6] = 1.00
665
Pr[𝑥 ≤ 6] = 729
665
= 1.00
729

665 = 729
665×729=729×n
n=665

e) Cumulative probability Pr[𝑥 ≤ 1] represent the probability of getting 0 or 1


successes, so we can write,
Pr[𝑥 ≤ 1] = Pr[𝑥 = 0] + Pr[𝑥 = 1]
13 1
Pr[𝑥 = 1] = −
729 729
12
Pr[𝑥 = 1] = 729

Similarly we can find 0 successes


Pr[𝑥 = 0] = Pr[𝑥 ≤ 0]
1
Pr[𝑥 = 0] = 729

P+ q=1
12
P+ =1
729
12
P=1− 729
119
𝑃= 121
119
𝑞 = 1 − 121
2
𝑞 = 121
13
f) Pr[𝑥 ≤ 1] = 729

𝑃(𝑛𝑜𝑡 𝑓𝑖𝑛𝑑𝑖𝑛𝑔 𝑎𝑛𝑦 𝑑𝑒𝑓𝑒𝑐𝑡𝑖𝑣𝑒 𝑖𝑡𝑒𝑚) = 1 − Pr[𝑥 ≤ 1]


13
𝑃(𝑛𝑜𝑡 𝑓𝑖𝑛𝑑𝑖𝑛𝑔 𝑎𝑛𝑦 𝑑𝑒𝑓𝑒𝑐𝑡𝑖𝑣𝑒 𝑖𝑡𝑒𝑚 ) = 1 − 729
992+13
𝑃(𝑛𝑜𝑡 𝑓𝑖𝑛𝑑𝑖𝑛𝑔 𝑎𝑛𝑦 𝑑𝑒𝑓𝑒𝑐𝑡𝑖𝑣𝑒 𝑖𝑡𝑒𝑚) = 729
716
𝑃(𝑛𝑜𝑡 𝑓𝑖𝑛𝑑𝑖𝑛𝑔 𝑎𝑛𝑦 𝑑𝑒𝑓𝑒𝑐𝑡𝑖𝑣𝑒 𝑖𝑡𝑒𝑚) = 729
13 1
g) Pr[𝑥 ≤ 1] = 729 𝑎𝑛𝑑 Pr[𝑥 ≤ 0] = 729

𝑃(2 𝑑𝑒𝑓𝑒𝑐𝑡𝑖𝑣𝑒 𝑖𝑡𝑒𝑚𝑠) = Pr[𝑥 ≤ 2] − Pr[𝑥 ≤ 1]


72 13 59
𝑃(2 𝑑𝑒𝑓𝑒𝑐𝑡𝑖𝑣𝑒 𝑖𝑡𝑒𝑚𝑠) = − 729 = 729
729

h) Pr[𝑥 ≥ 2] = 1 − Pr[𝑥 ≤ 1]
13
Pr[𝑥 ≤ 1] =
729
13 716
Pr[𝑥 ≥ 2] = 1 − 729 = 729

You might also like