Professional Documents
Culture Documents
• Constructive?
Y/N
• Linked to relevant assessment
criteria? Y/N
Give details:
Internal Verifier
Date
signature
Programme Leader
Date
signature (if required)
LO3 Determine solutions of graphical examples using geometry and vector methods
Pass, Merit & Distinction P5 P6 M3 D3
Descripts
LO4 Evaluate problems concerning differential and integral calculus
Resubmission Feedback:
Important Points:
1. Check carefully the hand in date and the instructions given with the assignment. Late submissions will not be
accepted.
2. Ensure that you give yourself enough time to complete the assignment by the due date.
3. Don’t leave things such as printing to the last minute – excuses of this nature will not be accepted for failure
to hand in the work on time.
4. You must take responsibility for managing your own time effectively.
5. If you are unable to hand in your assignment on time and have valid reasons such as illness, you may apply
(in writing) for an extension.
6. Failure to achieve at least a PASS grade will result in a REFERRAL grade being given.
7. Non-submission of work without valid reasons will lead to an automatic REFERRAL. You will then be asked to
complete an alternative assignment.
8. Take great care that if you use other people’s work or ideas in your assignment, you properly reference
them, using the HARVARD referencing system, in you text and any bibliography, otherwise you may be guilty
of plagiarism.
9. If you are caught plagiarising you could have your grade reduced to A REFERRAL or at worst you could be
excluded from the course.
I hereby, declare that I know what plagiarism entails, namely to use another’s work and to present it as my own
without attributing the sources in the correct way. I further understand what it means to copy another’s work.
ashiqnazr123@gmail.com 26/09/2018
Student’s Signature: Date:
(Provide E-mail ID) (Provide Submission Date)
Academic Year
Unit Tutor
Issue Date
Submission Format:
This assignment should be submitted at the end of your lesson, on the week stated at the front of this
brief. The assignment can either be word-processed or completed in legible handwriting.
If the tasks are completed over multiple pages, ensure that your name and student number are present
on each sheet of paper.
LO3 Determine solutions of graphical examples using geometry and vector Methods
2. Maya is making a game board that is 16 inches by 24 inches. She wants to use square tiles. What
is the largest tile she can use?
Part 2
3. An auditorium has 40 rows of seats. There are 20 seats in the first row, 21 seats in the second
row, 22 seats in the third row, and so on. Using relevant theories, find how many seats are there
in all 40 rows?
4. Suppose you are training to run an 8km race. You plan to start your training by running 2km a
week, and then you plan to add a ½km more every week. At what week will you be running 8km?
5. Suppose you borrow 100,000 rupees from a bank that charges 15% interest. Using relevant
theories, determine how much you will owe the bank over a period of 5 years.
Part 3
6. Find the multiplicative inverse of 8 mod 11 while explaining the algorithm used.
Part 4
7. Produce a detailed written explanation of the importance of prime numbers within the field of
computing.
Activity 02
2. A school which has 100 students in its sixth form, 50 students study mathematics, 29 study biology
and 13 study both subjects. Find the probability of the student studying mathematics given that the
student studies biology.
3. A certain medical disease occurs in 1% of the population. A simple screening procedure is available
and in 8 out of 10 cases where the patient has the disease, it produces a positive result. If the patient
does not have the disease there is still a 0.05 chance that the test will give a positive result. Find the
probability that a randomly selected individual:
(a) Does not have the disease but gives a positive result in the screening test
(b) Gives a positive result on the test
(c) Nilu has taken the test and her result is positive. Find the probability that she has the disease.
Let C represent the event “the patient has the disease” and S represent the event “the screening test
gives a positive result”.
4. In a certain group of 15 students, 5 have graphics calculators and 3 have a computer at home (one
student has both). Two of the students drive themselves to college each day and neither of them has
a graphics calculator nor a computer at home. A student is selected at random from the group.
(a) Find the probability that the student either drives to college or has a graphics calculator.
(b) Show that the events “the student has a graphics calculator” and “the student has a computer
at home” are independent.
Let G represent the event “the student has a graphics calculator”
H represent the event “the student has a computer at home”
D represent the event “the student drives to college each day”
Represent the information in this question by a Venn diagram. Use the above Venn diagram to
answer the questions.
5. A bag contains 6 blue balls, 5 green balls and 4 red balls. Three are selected at random without
replacement. Find the probability that
(a) they are all blue
(b)two are blue and one is green
(c) there is one of each colour
7. Two fair cubical dice are thrown: one is red and one is blue. The random variable M represents the
score on the red die minus the score on the blue die.
(a) Find the distribution of M.
(b) Write down E(M).
(c) Find Var(M).
8. Two 10p coins are tossed. The random variable X represents the total value of each coin lands
heads up.
(a)Find E(X) and Var(X).
(d)
Susan and Thomas play a game using two 10p coins. The coins are tossed and Susan records her
score using the random variable S and Thomas uses the random variable T. After a large number of
tosses they compare their scores.
Comment on any likely differences or similarities.
Part 3
10. In a quality control analysis, the random variable X represents the number of defective
products per each batch of 100 products produced.
Defects (x) 0 1 2 3 4 5
Batches 95 113 87 64 13 8
(a) Use the frequency distribution above to construct a probability distribution for X.
(b) Find the mean of this probability distribution.
(c) Find the variance and standard deviation of this probability distribution.
11. A surgery has a success rate of 75%. Suppose that the surgery is performed on three
12. Colombo City typically has rain on about 16% of days in November.
(a) What is the probability that it will rain on exactly 5 days in November? 15 days?
(b) What is the mean number of days with rain in November?
(c) What is the variance and standard deviation of the number of days with rain in November?
13. From past records, a supermarket finds that 26% of people who enter the supermarket will make
a purchase. 18 people enter the supermarket during a one-hour period.
(a) What is the probability that exactly 10 customers, 18 customers and 3 customers make a
purchase?
(b) Find the expected number of customers who make a purchase.
(c) Find the variance and standard deviation of the number of customers who make a purchase.
14.On a recent math test, the mean score was 75 and the standard deviation was 5. Shan got 93.
Would his mark be considered an outlier if the marks were normally distributed? Explain.
15.For each question, construct a normal distribution curve and label the horizontal axis and answer
each question.
The shelf life of a dairy product is normally distributed with a mean of 12 days and a standard
deviation of 3 days.
(a) About what percent of the products last between 9 and 15 days?
(b) About what percent of the products last between 12 and 15 days?
(c) About what percent of the products last 6 days or less?
(d) About what percent of the products last 15 or more days?
16.Statistics held by the Road Safety Division of the Police shows that 78% of drivers being tested for
their licence pass at the first attempt.
If a group of 120 drivers are tested in one centre in a year, find the probability
that more than 99 pass at the first attempt, justifying the most appropriate distribution to be used
for this scenario.
Part 4
Part 1
1. If the Center of a circle is at (2, -7) and a point on the circle (5,6) find the formula of the circle.
4. Show that x2 + y2 + z2 + 4x – 6y + 2z + 6 = 0 is the equation of a sphere. Also, find its center and
radius.
Part 2
6.
Part 1
1. Find the function whose tangent has slope 4x + 1 for each value of x and whose graph passes
through the point (1, 2).
2. Find the function whose tangent has slope 3x2 + 6x − 2 for each value of x and whose graph
passes through the point (0, 6).
Part 2
3. It is estimated that t years from now the population of a certain lakeside community will be
changing at the rate of 0.6t 2 + 0.2t + 0.5 thousand people per year. Environmentalists have
found that the level of pollution in the lake increases at the rate of approximately 5 units per
1000 people. By how much will the pollution in the lake increase during the next 2 years?
4. An object is moving so that its speed after t minutes is v(t) = 1+4t+3t 2 meters per minute. How
far does the object travel during 3rd minute?
Part 3
5. Sketch the graph of f(x) = x − 3x 2/3 , indicating where the graph is increasing/decreasing, concave
up/down, and any asymptotic behavior.
6. Draw the graph of f(x)= 3x4-6X3+3x2 by using the extreme points from differentiation.
Part 4
7. For the function f(x) = cos 2x, 0.1 ≤ x ≤ 6, find the positions of any local minima or maxima and
distinguish between them.
Assignment 1
Importance of Maths in The Field of
Computing
Executive Summary
Mathematics is one of the oldest and most fundamental sciences. Mathematicians use
mathematical theory, computational techniques, algorithms, and the latest computer
technology to solve economic, scientific, engineering, and business problems. The work
of mathematicians falls into two broad classes: theoretical (pure) mathematics and applied
mathematics.
Theoretical mathematics is the study of abstract mathematical structures which form the
basic framework for the rest of the mathematical sciences.
Applied mathematicians use theories and techniques, such as mathematical modeling and
computational methods, to formulate and solve practical problems in business,
government, engineering, and the physical, life, and social sciences.
Who also helped me in completing my assignment. I came to know about so many new
things I am really thankful to them.
Finally, and most importantly, I would like to thank my parents for their love, support and
prayers. Thank you for believing in me.
List of Tables
Table 1 - Activity 1; Part 1; Question 1 (a); Arrange the factorizations in a table..............1
Table 2 - Activity 1; Part 1; Question 1 (b); Arrange the factorizations in a table..............2
Table 3 Activity 1; Part 1; Question 2; Arrange the factorizations in a table......................3
Table 4 - Activity 2; Part 2; Question 6; Differences between discrete and continuous
random variables................................................................................................................18
Table 5 - Activity 2; Part 2; Question 7; Possible outcomes of two fair dice....................19
Table 6 - Activity 2; Part 2; Question 7; Probability distribution table for random variable
M........................................................................................................................................19
Table 7 - Activity 2; Part 2; Question 8 (a); The distribution of X....................................20
Table 8 - Activity 2; Part 2; Question 9; The distribution of X.........................................21
Table 9 - Activity 2; Part 3; Question 10; The frequency distribution...............................22
Table 10 - Activity 2; Part 3; Question 10 (a); The probability distribution for X............22
Table 11 - Activity 2; Part 3; Question 10 (b); The mean of this probability distribution.22
Table 12 - Activity 2; Part 3; Question 10 (c); The variance and standard deviation........23
Table 13 - Activity 2; Part 3; Question 11 (c); The probability distribution for X............24
Table 14 - Activity 3; Part 2; Question 5; x, y coordinates for 3y= 2x-5..........................44
Table 15 - Activity 3; Part 2; Question 5; x, y coordinates for 2y=2x+7...........................45
List of Charts
Chart 1 – Activity 2; Part 3; Question 11 (d); Probability distribution for X....................25
Chart 2 - Activity 2; Part 3; Question 15 (a); The percentage of the products last between
9 and 15 days......................................................................................................................30
Chart 3 - Activity 2; Part 3; Question 15 (b); The percentage of the products last between
12 and 15 days....................................................................................................................31
Chart 4 - Activity 2; Part 3; Question 15 (c); The percentage of the products last 6 days or
less......................................................................................................................................32
Chart 5 - Activity 2; Part 3; Question 15 (d); The percentage of the products last 15 days
or more days.......................................................................................................................33
Chart 6 - Activity 2; Part 4; Question 17; The probability that at least two people in a
group of n share the same birthday....................................................................................36
Chart 7 - Activity 3; Part 2; Question 5; Graphs for 3y = 2x - 5 and 2y = 2x + 7.............46
Chart 8 - Activity 4; Part 3; Question 5; Sign chart...........................................................53
Chart 9 - Activity 4; Part 3; Question 5; The graph of f(x) = x – 3x2/3............................54
Chart 10 - Activity 4; Part 3; Question 6; The graph of 3𝑥4−6𝑥3+3𝑥2.............................57
Chart 11 - Activity 4; Part 4; Question 7; The graph of f(x) = cos 2x...............................58
Chart 12 - Activity 4; Part 4; Question 8; The graph of f(x) = x4 – 1/3x3..........................59
Part 1
Question 1
a) Applying GCF principle:
(a) 120
120 = 2 x 60
120 = 2 x 6 x 10
120 = 2 x 2 x 3 x 2 x 5
30
30 = 2 x 15
30 = 2 x 3 x 5
Prime 2 3 5
#
120 23 31 51
30 21 31 51
GCF 21 = 2 31 = 3 51 = 5
2 * 3 * 5 = 30
GCF (120, 30) = 30
Therefore, Mr. Steve could have 30 children in his class, each of whom will receive 1 piece of paper
and 4 pastel sticks.
120 = 2 x 60
120 = 2 x 6 x 10
120 = 2 x 2 x 3 x 2 x 5
30
30 = 2 x 15
30 = 2 x 3 x 5
Step 3: The prime factors and multiplicities 120 are 30 have in common are:
2 * 3 * 5 = 30
GCF (120, 30) = 30
16 = 8 x 2
16 = 2 x 4 x 2
16 = 2 x 2 x 2 x 2
24
24 = 8 x 3
24 = 2 x 4 x 3
24 = 2 x 2 x 2 x 3
Question 3
Total number of rows of seats = 40
There are 20 seats in the first row and the seats are increasing progressively in the next two rows.
Therefore,
a1 (First term of the sequence) = 20
n (Number of terms in the sequence) = 40
d (Common difference) = (21 - 20) = 1
Question 5
Question 6
Using x * 1/x = 1,
8 mod 11 = 8 * 1/8 mod 11 ≡ 1
8x mod 11 ≡ 1
x=7
The Euclidean algorithm comprises of a set of instructions for finding the greatest common divisor of any
two positive integers. It makes use of repeated use of integer division.
The Euclidean formula is a = bq + r where a and b are two positive integers, q is the quotient and r is the
remainder. It is assumed that 0 < r < b.
11 = 8 (1) + 3
8 = 3 (2) + 2
3 = 2 (1) + 1
Gcd (8,11) = 1
1 = 3-2(1)
1 = 3-(8-3(2)) (1)
= 3-(8-(3(2))
= 3(3)-8
1 = (11-8(1)) (3)-8
= 11(3)-8(4)
= 11(3) +8(-4)
Part 4
Question 7
Introduction
Prime numbers are viewed as being vital in the field of computing. This report gives a brief introduction of
what prime numbers are and their importance in computing.
Prime Numbers
An integer greater than one is called a prime number if its only positive divisors (factors) are one and itself.
For example, the prime divisors of 10 are 2 and 5: and the first few prime numbers are 2, 3, 5, 7, 11, 13, 17,
19, 23 and 29.
Some practical applications is known as public key cryptography, widely used to protected electronic data.
These public-key encryption systems (RSA) take advantages of the fact that while it is easy to multiply two
huge prime numbers, there is no way to do the reverse quickly: separate a huge number into its prime
factors. The prime numbers are essential in computer security programs, very important today to perform
certain operations over the internet, payments with credit cards (Ashish, 2017).
Hash Codes
Prime numbers are also used in calculating hash codes in computing. Constructing a good hash code,
involves minimum number of collisions in the input sample, for a same number. So using prime numbers
reduces the count of collisions, since highly frequent number won’t have prime number as its multiple
(Desai, 2015).
Activity 2
Part 1
Question 1
The conditional probability of an event B is the probability that the event will occur given the knowledge
that an event A has already occurred. This probability is written P(B|A), notation for the probability of B
given A. In the case where events A and B are independent (where event A has no effect on the probability
of event B), the conditional probability of event B given event A is simply the probability of event B, that is
P(B).
If events A and B are not independent, then the probability of the intersection of A and B (the probability
that both events occur) is defined by P (A and B) = P(A)P(B|A).From this definition, the conditional
probability P(B|A) is easily obtained by dividing by P(A):
P ( A ∩ B)
P ( B| A ¿=
P( A)
(Maths is Fun, n.d.)
Examples:
I. What is the probability of two children being girls if we are told at least one is a girl?
P (A ∩ B) = 1/4
P ( A ∩ B) 1/4 1
P ( A|B ¿= = = ≈ 0.33
P(B) 3/4 3
Answer is 0.33
II. What is the probability of two girls being girls given that oldest is a girl?
P (A ∩ B) = 1/4
P (B) = 1/2
P ( A ∩ B) 1/ 4 1
P ( A|B ¿= = = =0.5
P(B) 1/ 2 2
Answer is 0.5
Another important method for calculating conditional probabilities is given by Bayes' Theorem. Bayes’
Theorem describes the probability of an event, based on prior knowledge of conditions that might be related
to the event.
Example: If we have two event A and B, and if we given the conditional probability of A given B, we can
use Bayes’ Theorem to find probability of B given A.
P ( A ∩ B)
P ( A|B ¿=
P(B)
P (B ∩ A)
P ( B| A ¿=
P( A)
By using;
P ( A ∩ B )=P ( B ∩ A )
Examples:
I. What is the probability of two children being girls if we are told at least one is a girl?
P (B | A) = 1
P (A) = 1/4
P (B) = 3/4
Answer is 0.33
Mathematics
Biology
37 13 16
34
n (S) = 100
P (M) = Probability that the student studies mathematics
P (B) = Probability that a student studies biology
P (M ∩ B) = Probability that the student studies both mathematics and biology
Therefore,
P (M) = 37/100
P (B) = 16/100
P (M ∩ B) = 13/100
Probability of the student studying mathematics given that the student studies biology = 0.8125
0.05 S C'S
0.99 C'
a) Probability of does not have the disease but gives a positive result in the screening test:
P (C' ∩ S) = 0.99 x 0.05 = 0.0495
c) Probability of Nilu has taken the test and her result is positive:
P (C | S) = P (C ∩ S) / P (S)
Question 4
If,
G = Event that the student has a graphics calculator
H = Event that the student has a computer at home
D = Event that the student drives to college everyday
D
G
2
4
1
2
H 6
a) Probability that the student either drives to college or has a graphics calculator will be P (G ∪ D).
P (G ∪ D) = P (G) + P (D)
= 5/15 + 2/15
= 7/15 ≈ 0.467
Question 5
Question 5
Question 5
Question 5
Question 5
Question 5
Question 5
Question 5
Question 5
Question 5
Question 5
Question 5
Question 5
Outcomes = (B1, B2, B3), (B1, B2, G3), (B1, B2, R3), (B1, G2, B3), (B1, G2, G3), (B1, G2, R3), (B1, R2, B3), (B1,
R2, G3), (B1, R2, R3), (G1, B2, B3), (G1, B2, G3), (G1, B2, R3), (G1, G2, B3), (G1, G2, G3), (G1, G2, R3), (G1, R2,
B3), (G1, R2, G3), (G1, R2, R3), (R1, B2, B3), (R1, B2, G3), (R1, B2, R3), (R1, G2, B3), (R1, G2, G3), (R1, G2, R3),
(R1, R2, B3), (R1, R2, G3), (R1, R2, R3)
Question 6
Random variables
A random variable usually written X, is a variable whose possible values are numerical outcomes of a
random phenomenon. There are two types of random variables, discrete and continuous.
A discrete random variable is one which may take on only a countable number of distinct values such as 0,
1, 2, 3, 4, ……… Discrete random variables are usually (but not necessarily) counts. If a random variable
can take only a finite number of distinct values, then it must be discrete.
Examples:
Tossing a coin; S = {head, tail}
Rolling a die; S = {1, 2, 3, 4, 5, 6}
The number of children in a family
A continues random variable is one which takes an infinite number of possible values. Continues random
variables are usually measurements.
Examples:
Height
Weight
The amount of sugar in an orange
(Maths Insight, n.d.)
Table 4 - Activity 2; Part 2; Question 6; Differences between discrete and continuous random variables
(Nouman, n.d.)
Conclusion
Both discrete and continuous variables can be qualitative and quantitative. However, these two statistical
terms are diametrically opposite to one another in the sense that the discrete variable is the variable with the
well-defined number of permitted values whereas a continuous variable is a variable that can contain all the
possible values between two numbers.
Question 7
M = the score on the red die minus the score on the blue die
Possible outcomes of two fair dice = 62 = 36
* -0.139 -0.222 -0.25 -0.222 -0.139 0 0.139 0.222 0.25 0.222 0.139
p
E
(
(-0.139) + (-0.222) + (-0.25) + (-0.222) + (-0.139) + 0.139 + 0.222 + 0.25 + 0.222 + 0.139 0
M
)
(
M
2
0.694 0.889 0.75 0.44 0.139 0 0.139 0.44 0.75 0.889 0.694
p
)
E 0.694 + 0.889 + 0.75 + 0.44 + 0.139 + 0 + 0.139 + 0.44 + 0.75 + 0.889 + 0.694 = 5.824
p
)
V
a
r
(
M
)
Table 6 - Activity 2; Part 2; Question 7; Probability distribution table for random variable M
b) E(M) = (-0.139) + (-0.22) + (-0.25) + (-0.22) + (-0.139) + 0.139 + 0.22 + 0.25 + 0.22 + 0.139 = 0
c) Var ( M )=Σm 2 p−μ2=5.824−0 2=5.824
Question 8
a) The distribution of X is:
X 0 10 20
E (X) = 20 * ¼ + 10 * ½ + 0* ¼ = 10
d) Susan and Thomas play a game using two 10p coins. The coins are tossed and Susan records her score
using the random variable S and Thomas uses the random variable T. After a large number of tosses they
compare their scores. The similarity will be that each of their total scores should approximately be zero
and the difference is that Susan’s score should be more diverse than Thomas’s score.
Question 9
a) Since ∑ P (X) = 1
Therefore, P (1) + P (2) + P (3) + P (4) = 1
P (1) + P (2) + P (3) + P (4) = 1
1/3 + 1/3 + k + ¼ = 1
k = 1 - 1/4 - 1/3 - 1/3
Part 3
Question 10
Defects (x) 0 1 2 3 4 5
Batches 95 113 87 64 13 8
a) Using the frequency distribution above, the probability distribution for X can be constructed as follows:
The total number of batches = 95 + 113 + 87 + 64 + 13 + 8 = 380
x 0 1 2 3 4 5
x P(x) x * P(x)
0 0.25 0.00
1 0.30 0.30
2 0.23 0.46
3 0.17 0.51
4 0.03 0.12
5 0.02 0.10
c) The variance and standard deviation for this probability distribution can be calculated as follows:
x P(x) x2 x2 * P(x)
0 0.25 0 0.00
1 0.30 1 0.30
2 0.23 4 0.92
3 0.17 9 1.53
4 0.03 16 0.48
5 0.02 25 0.50
= 3.37 -2.12
= 1.51
Question 11
a) The number of successful surgeries, X can be represented by a binomial distribution with n = 3 trials,
success probability p = 0.75 and failure probability q = 1− p = 0.25.
= 3C2(0.75)2(0.25)1
≈ 0.422
c) In order to calculate the probability distribution for X, P (0), P (1), P (2) and P (3) need to be calculated
as follows:
P (0) = nC0p0qn−0
= 3C0(0.75)0(0.25)3
= 1/64 ≈ 0.016
0.45 =
0.422 0.422
3C1(0.75) (0.25)
1 2
0.4
= 9/64 ≈
0.35
0.141
0.3
P (2) = nC2p2qn−2
Probability, P(x)
0.25
= 3C2(0.75)2(0.25)1
0.2
0.05 =
0.016
3C3(0.75) (0.25)
3 0
0
Number of Success, x = 27/64 ≈ 0.422
Therefore, the
probability distribution for X is:
x 0 1 2 3
e) Mean of X, µ = np
= 3 × 0.75
= 2.25
Question 12
a) The number of rainy days, X can be represented by a binomial distribution with n = 30 trials (the number
of days in the month of November), success probability p = 0.16 (representing a rainy day) and failure
probability q = 1− p = 0.84. Although it is not quite true that the weather (rain or not) is independent
from day to day, we shall assume it is quite close to being independent, in order to use the binomial
distribution.
Therefore,
P (5) = nC5p5qn−5
= 30C5(0.16)5(0.84)25
≈ 0.191
P (15) = nC15p15qn−15
= 30C15(0.16)15(0.84)15
≈ 0.00001308
c) The variance and standard deviation of the number of days with rain in November are:
Variance: σ2 = npq
= 30 × 0.16 × 0.84
= 4.03
Standard Deviation: σ = √npq
Question 13
a) The number of customers that make a purchase, X, can be represented by a binomial distribution with n
= 18 trials (the total number of customers), success probability p = 0.26 (representing a customer who
makes a purchase) and failure probability q = 1−p = 0.74.
Again, it is not quite true that the customers’ decisions to make a purchase are independent, as for example,
their conversations among each other or with the sales people may influence other customers around.
Nevertheless, we shall assume these decisions are quite close to being independent, in order to use the
binomial distribution.
Therefore:
P (10) = nC10p10qn−10
= 18C10(0.26)10(0.74)8
≈ 0.00555
P (18) = nC18p18qn−18
= 18C18(0.26)0(0.74)18
≈ 0.0000000000295
P (3) = nC3p3qn−3
= 18C3(0.26)3(0.74)15
≈ 0.157
Variance, σ2 = npq
= 18 × 0.26 × 0.74
= 3.46
= √3.46
= 1.86
Question 14
The standardized score can be calculated as:
Raw score – mean
Standardized score=
Standard deviation
93−75
¿
5
¿ 3.6
Therefore, the score is 3.6 standard deviations above the mean indicating that Shan will in the 3%
outside the 3 standard deviations. Hence, it will be an outlier.
( 12−(3∗2) ) ∧( 12+(3∗2) )
Between 6 and 18 days represent 95% of the total data points.
3. (Mean−(3∗standard deviation))∧(Mean+(3∗standard deviation))
Y-Values
Y-Values P (9 < X < 15) =
0.14
0.14
68%
0.12
0.12 Like earlier
0.1
0.06 34%
15 days represent
0.08
0.04
68% of the total
0.06 data points. Thus
0.02
34%
0
0.04 2 4 6 8 10 12 14 16 18 20 22
it is within 1
standard deviation
0.02
of the mean.
0
2 4 6 8 10 12 14 16 18 20 22
Chart 2 - Activity 2; Part 3; Question 15 (a); The percentage of the products last between 9 and 15
days.
b) Below bell curve indicates the percentage of the products last between 12 and 15 days.
34%
Chart 3 - Activity 2; Part 3; Question 15 (b); The percentage of the products last between 12 and 15
days
Y-Values
Y-Values
0.14
0.14
0.12
0.12
0.1
0.1
0.08
0.08
0.06
0.06
0.04
0.04
0.02
0.02
2%
0
02 4 6 8 10 12 14 16 18 20 22
2 4 6 8 10 12 14 16 18 20 22
Chart 4 - Activity 2; Part 3; Question 15 (c); The percentage of the products last 6 days or less
(The value−Mean)
=How many standard deviation ¿ the mean
Standard deviation
(6−12) −6
= =−2
3 3
Therefore, 6 days are within the 95% of the total data points. 6 days and 12 days represent only half of it
(95% / 2 = 47.5%). Therefore, 47.5% of the area represents 12 days and 15 days from the mean. Since the
area needed to be shaded is 6 days or less. (50% - 47.5% = 2.5%) of the products last 6 days or less.
d) Below bell curve indicates the percentage of the products last 15 or more days.
(The value−Mean)
=How many standard deviation ¿ the mean
Standard deviation
(15−12) 3
= =1
3 3
16%
Therefore, 6 days are within the 68% of the total data points. 12 days and 15 days represent only half of it
(68% / 2 = 34%). Therefore, 34% of the area represents 12 days and 15 days from the mean. Since the area
needed to be shaded is 15 days or more. (50% - 34% = 16%) of the products last 15 days or more.
Question 16
Using binomial distribution, let the number of who pass the drivers’ test is X, then:
Total number of drivers, n = 120
Probability of passing the test, p = 0.78
Probability of failing the test, q = 1 – p = 1-0.78 = 0.22
Required = P (X > 99)
Hence using the binomial formula, the following will need to be calculated:
P(X=100) + P(X=101) +…. + P(X=120)
However, this is difficult to calculate as n is too large and p is not close to 0 or 1. Therefore, it would be
advisable to use the normal distribution.
Using the normal distribution, the mean and standard deviation can be calculated as follows:
Mean, µ = np
= 120 × 0.78
= 93.6
Question 17
Use of probability theory in hashing and load balancing
Probability in Hashing
A popular method for storing a collection of items to support fast look-up is hashing them into a table.
Trouble starts when we attempt to store more than one item in the same slot. The efficiency of all hashing
algorithms depends on how often this happens.
Birthday paradox.
Consider a group of n people. Each person claims one particular day of the year as her birthday. For
simplicity, I assume that nobody claims February 29 and we talk about years consisting of k = 365 days
only. Assume also that each day is equally likely for each person. In other words:
for all i and all j. Collecting the birthdays of the n people, we get a multiset of n days during the year. We
are interested in the event, A, that at least two people have the same birthday. Its probability is one minus
the probability that the n birthdays are distinct, that is:
P ( A )=1−P ( Ā )
k k −1 k −n+1
P ( A )=1− ∙ ………
k k k
The probability of A surpasses one half when n exceeds 21, which is perhaps surprisingly early. See Figure
1 for a display how the probability grows with increasing n.
0 10 20 30 40 n
Chart 6 - Activity 2; Part 4; Question 17; The probability that at least two people in a group of n share the same birthday
Hashing
Hashing is the transformation of a string of characters into a usually shorter fixed length value or key that
represents the original string. Hashing is used to index and retrieve items in a database because it is faster to
find the item using the shorter hashed key than to find it original value. It is also used in many encryption
algorithms.
The hashing algorithm is called the hash function. Hash function is best way of storing passwords. Steps of
hash function for storing password are:
Location to
store values
(n)
(Techopedia, n.d.).
Load balancing is dividing the amount of work that a computer has to do between two or more computers so
that more work gets done in the same amount of the time and in general, all users get served faster. Load
balancing can be implemented with hardware, software or a combination of both. Typically, load balancing
is the main reason for computer server clustering (NGINX, n.d.).
As Load balancing is concerned with distributing tasks among multiple resources, it can be modelled as
tossing balls into bins. Balls can be considered as tasks and bins as resources.
Consider the process of tossing m balls into n bins. The tosses are uniformly at random and independent of
each other, implying that the probability that a ball falls into any given bin is 1/n.
If npi is the event that the ball i will fall into bin P and ∑ ij is the event that ball i and ball j collide. Then the
probability of any two balls falling into one bin or in other words the probability of the second ball falling
into bin P after the first ball has fallen into a particular bin P would be 1/n.
Also, the probability of a particular bin being empty and the expected number of bins would be as follows:
Activity 3
Part 1
Question 1
A circle is a set of points a given distance from one point called the center. The distance from the center is
called the radius.
Distance from
center
Center
Circle
Y
r2 = (x - 0)2 + (y - 0)2
(x, y)
Therefore equation of circle is;
r
r is the radius
r2 = x2 + y 2
(0, 0) X
Y
(x, y)
r2 = (x - h)2 + (y -k)2 The center is at (h, k)
r
0
X
Therefore, if the center of the circle is (2, -7) and a point on the circle is (5, 6) as shown in the figure below,
the radius of the circle can be obtained as follows:
0 X
r = √ (x-h)2+(y-k)2
r2 = x2 – 2xh + h2 + y2 – 2yk + k2
If r and (h, k) are substituted into the equation, the formula of the circle can be obtained as follows:
r2 = x2 – 2xh + h2 + y2 – 2yk + k2
13.342 = x2 – 2 *(2) + 22 + y2 – 2y*(-7) + (-7)2
178 = x2 – 4x + 4 + y2 + 14y + 49
178 = x2 – 4x + y2 + 14y + 53
178 - 53 = x2 – 4x + y2 + 14y
Therefore, formula of the circle with center (2, -7) and a point on the circle (5, 6) will be:
x2 – 4x + y2 + 14y = 125
The equation z = 3 represents the set {(x, y, z) | z = 3}, which is the set of all points in R 3 whose z-coordinate
is 3. This is the horizontal plane that is parallel to the xy-plane and three units above it as in figure 1.
0 y
x
The equation y = 5 represents the set of all points in R3 whose y-coordinate is 5. This is vertical plane that is
parallel to the xz-plane and five units to the right of it as in figure 2.
0
x
5
Sphere is a set of points in space with equal distance from the point called center.
Y
Z
When center is (a, b, c) and r is the radius;
0 X
Therefore, equation of a sphere with radius (r) and center C(h, k, l) will be:
Y
Z
C ≡ (h, k, l)
r
(x, y, z)
0 X
Question 4
Question 5
3y = 2x - 5
2y = 2x + 7
In the first equation, let x be 0. Replace x with 0, and solve the equation. This gives the value of y.
X= 0
3y = 2(0)-5
3y = -5
y = (-5)/3 = -1.67
Therefore, first coordinate is (0, -1.67)
Let y be 0. In the first equation, let y be 0 and solve the equation. This gives the value of x.
y= 0
3(0) = 2x-5
5 = 2x
5/2 = x
x =2.5
Therefore, the first coordinate is (2.25, 0)
Point x y
A 0 -5/3
B 2.5 0
In the second equation, let x be 0. Replace x with 0, and solve the equation. This gives the value of y.
X= 0
2 y=2 x+7
Point x y
C 0 3.5
D -3.5 0
4
C ≡ (0, 3.5)
3y = 2x - 5
2
D ≡ (-3.5, 0)
B ≡ (2.5, 0)
-4
-6
-8
-10
Where the two lines cross (3y = 2x - 5 and 2y = 2x + 7) is called point of intersection. Certainly this point
has (x, y) coordinates. It is same point for Line 1 (3y = 2x - 5) and Line 2 (2y = 2x + 7). So, at the point of
intersection the (x, y) coordinates for Line equal the (x, y) coordinates for Line 2.
So, we have the x- coordinate for the point of intersection. It is x = -15.5. Now let’s find the y-coordinate.
The y-coordinate can be found by placing the x-coordinate, -15.5, into either of the equations for the lines
and solving for y.
3y = 2x – 5
3y = 2 * (-15.5) – 5
3y = -31 – 5
3y = -36
Y = -12
1
Volume= × ( area of base ) ×(height)
3
Volume=
|(
1 1
3 2 )
|a ×b| c cos θ |
1
Volume= |( a× b ) . c|
6
1
Volume=
6
|( a× b ) . c|
1
Volume= ( 2 i+3 j )( 4 i−2 j ) (1 i+4 j ) cos θ
6
1
Volume= ( 8−6 ) ( 1i + 4 j ) cos θ
6
1
Volume= ( 1i+ 4 j ) cos θ
3
1
( 1 i+ 4 j ) cosθ
3
However, the k co-ordinate is not included in a, b and c. Therefore, x, y and z are assumed to represent k
coordinates, then:
a = (2i + 3j + xk)
b = (4i – 2j + yk)
c = (1i + 4j + zk)
1
Volume=
6
|( a× b ) . c|
| |
i j k
1
Volume= ∙ 2 3 x ∙ ⟨1 , 4 , z ⟩
6
4 −2 y
1 3 x
Volume= ∙
6 −2 y |
i−
2
4 | | xy| j +|24 −23 |k ∙ ⟨ 1 , 4 , z ⟩
1
Volume= ∙ ⟨ (3 y +2 x ) , (−2 y +4 x ) ,(−16) ⟩ ∙ ⟨ 1, 4 , z ⟩
6
1
Volume= ∙|( 3 y+ 2 x ) , (−8 y+ 16 x ) ,(−16 z )|
6
1
Volume= ∙|2 x +16 x +3 y−8 y−16 z|
6
1
Volume= ∙|18 x−5 y−16 z|
6
1
Therefore , volume of tetrahedron= ∙|18 x −5 y−16 z|
6
Part 1
Question 1
The slope of the tangent is the derivative of f. Thus:
'
f ( x )=4 x+1
2
f ( x )=2 x + x+C
Using the fact that the graph of f passes through the point (1, 2):
2=2+1+C∨C=−1
Question 2
f ( x )=x 3 +3 x 2−2 x +C
Using the fact that the graph of f passes through the point (0, 6):
C=6
Part 2
Question 3
Let P (t) denote the population of the community t years from now. Then the rate of change of the
population with respect to time is the derivative.
dP
=P' ( t )=0.6 t 2 +0.2 t+0.5
dt
It follows that the population function P (t) is an antiderivative of 0.6t2 + 0 .2t + 0 .5. That is:
For some constant C. During the next 2 years, the population will grow on behalf of:
da
Since v ( t )= =s '(t ) it follows that:
dt
s ( t ) =∫ v ( t ) dt =∫ ( 1+ 4 t+ 3t 2 ) dt =t+ 2t 2+ t 3 +C
Question 5
f ( x )=x−3 x 2 /3
Rather than making a sign chart for f(x), I will instead note all intercepts and let other aspects imply where
f(x) > 0 and where f(x) < 0.
f (x)
Thus x-intercepts are (0, 0) and (27, 0), the former also being the y-intercept. Next I create a sign chart for
f''(x).
( )
2 −1 3
d x −2
f ' ( x )= 3
x−3 x =1−2 x = 1 3
dx
x3
Thus f''(x) = 0 ⇐⇒ x1/3 = 2 ⇐⇒ x = 8, while f''(x) does not exist ⇐⇒ x = 0. We need both points for our
sign chart. (Note: f(x) is continuous on all of R.)
' x 3 −2
f ( x )= 1
x3
factors:
○/○ ○/● ●/●
graph behavior:
lim ¿
'
x→ 0−¿f ( x ) = lim ¿¿ ¿
1
−¿
x −2 −2/0
3
x →0−¿ ∞¿
1
❑
x3
lim ¿
x→ 0+¿ f ( x ) =
'
lim ¿ ¿¿
1
+¿
x 3 −2 −2/0
x→ 0+¿ −∞ ¿
1
❑
x3
d
''
f ( x) = ( 1−2 x−1/ 3 )= 2 x−4 / 3= 2−4/ 3 = 2
dx 3 3x 3¿¿
This does not exist at x = 0, but x ≠ 0 ⇒ f'''(x) > 0, so this curve is concave up on any interval which does
not contain x = 0.
Therefore, the minimum point (8, -4), and the x-intercepts at x = 0, 27.
4 x – 3x2/3
-8 -4 4 8 12 16 24 28 32
20
-4
-8
f (x)=3 x 4 −6 x 3+ 3 x 2
By factorization, x intercepts:
2 2
f ( x)=3 x (x −2 x+1)
2 2 2
f ( x)=3 x (x −1)(x −1)
When y=0: X=0, x=1
Y intercepts: X=0, y=0
−b ± √b 2−4 ac
2a
−(−3) ± √(−3)2−4∗2∗1
2∗2
−(−3) ± √9−8
4
3± √ 1
4
3± 1
4
dy
When =0
dx
1
x=1 ¿ x= ¿ x=0 So we have max or min at approximately,
2
1 3
(1,0) ¿ ( , ) ¿ (0, 0)
2 16
To determine whether the points mentioned above are maximum or minimum, second derivative should be
calculated.
d2 x 2
2
=36 x −36 x+ 6
dx
If x = 1 y = 6
Y ’ ’> 0 , It is positive. Thus min at (1,0)
If x = ½ y = -3
1 3
Y ’ ’< 0 , It is negative. Thus max at ( , )
2 16
If x = 0 y = 6
Y ’’> 0 , It is positive. Thus min at (0 , 0)
Point of inflection
2
d x 2
2
=36 x −36 x+ 6
dx
Now,
−b ± √b 2−4 ac
2a
−(−36) ± √ (−36)2−4∗36∗6
2∗36
−(−36)± √1296−864
72
36 ± √ 432
72
3± 20.78
72
x=0.788∨x=0.211
Question 7
The first derivative and locate stationary points can be calculated as follows:
f ( x )=cos 2 x , 0.1≤ x ≤ 6
df
=−2 sin2 x
dx
Hence stationary points are at values of x in the range specified for which sin 2x = 0 (e.g. at 2x = π or
2x = 2π or 2x = 3π).
d2 f
dx 2
∫ ¿−4 cos π=4> 0∴ x= π2 locates a local minimum .
π
x=
2
2
d f
dx 2
∫ ¿−4 cos 2 π =−4<0 ∴ x=π locates a local maximum .
x= π
d2 f 3π
dx 2
∫ ¿−4 cos 3 π =−4>0 ∴ x=
2
locates a local minimum .
3π
x=
2
f(x)
3π/2
0.1 π/4 π/2 3π/4 6 x
df 3 2 2
=4 x −x =x ( 4 x−1)
dx
df
=0 when x =0∨when x=1/ 4
dx
The value of the second derivatives at the stationary points can be calculated as follows:
2
d f 2
2
=12 x −2 x
dx
2
d f
dx
2 ∫ ¿ 0 , which isinconclusive .
x=0
2
d f
dx 2
∫ ¿ 12 1 1 1
− = > 0 Hence x= locates alocal minimum .
16 2 4 4
1
x=
4
Using this analysis we cannot decide whether the stationary point at x = 0 is a local maximum, minimum or
a point of inflection. However, just to the left of x = 0 the value of df/dx (which equals x 2 (4x − 1)) is
negative whilst just to the right of x = 0 the value of df/dx is negative again. Hence the stationary point at x
= 0 is a point of inflection. This is confirmed by sketching the curve as follows.
f(x)
1/4
-0.0013 x
When f(x) =0
Evaluate the second derivative at x=1/12. If the second derivative is positive, then this is a local minimum.
If it is negative, then this is a local maximum.
x=1/12 is a local minimum, because the value of the second derivative is positive. This is referred to as the
second derivative test.
y = x 2 + 4x + 1
d
By using the derivative slope is = 2 x+ 4
dx
By using factoring = 2(x +2)
Therefore, critical points are x = 0, x = -2
d2 x
By using the second derivative 2 = 2
dx
When f(x) =0
Evaluate the second derivative at x=-2. If the second derivative is positive, then this is a local minimum. If
it is negative, then this is a local maximum.
x=-2 is a local minimum, because the value of the second derivative is positive. This is referred to as the
second derivative test.
d
By using the derivative slope is = 12−4 x
dx
By using factoring = 4 (3−x)
When f(x) =0
Evaluate the second derivative at x=3. If the second derivative is positive, then this is a local minimum. If it
is negative, then this is a local maximum.
x=3 is a local maximum because, the value of the second derivative is negative. This is referred to as the
second derivative test.
Maximum (3 ,−54 ¿
y = −3x 2 + 3x + 1
dy
By using the derivative slope is = −6 x +3
dx
By using factoring = 3(−2 x +1)
By dividing all by 4 =( −2 x 1
+
−2 −2 )
1
Therefore, critical points are x = 0, x =
2
2
d x
By using the second derivative 2 = −6
dx
When f(x) =0
Evaluate the second derivative at x=1/2. If the second derivative is positive, then this is a local minimum. If
it is negative, then this is a local maximum.
x=1/2 is a local maximum because, the value of the second derivative is negative. This is referred to as the
second derivative test.
Maximum at ( 12 , 74 )
Mathematics is about pattern and structure; it is about logical analysis, deduction, calculation within these
patterns and structures. When patterns are found, often in widely different areas of science and technology,
the mathematics of these patterns can be used to explain and control natural happenings and situations.
Mathematics has a pervasive influence on our everyday lives, and contributes to the wealth of the country.
The everyday use of arithmetic and the display of information by means of graphs, are an everyday
commonplace. These are the elementary aspects of mathematics. Advanced mathematics is widely used, but
often in an unseen and unadvertised way.
Precise definitions;
Careful and rigorous argument; representation of ideas by many methods, including symbols and
formulae, pictures and graphics;
Means of calculation;
And the obtaining of precise solutions to clearly stated problems, or clear statements of the limits of
knowledge.
These features allow mathematics to provide a solid foundation to many aspects of daily life, and to give a
comprehension of the complexities inherent in apparently quite simple situations.
In this assignment I am given brief description about Importance of Maths in the Field of Computing.
Mathematics is an important foundation for many science and engineering disciplines. Similarly, discrete
mathematics and logic are foundations for computer based disciplines such as computer science, software
engineering and information systems.
Complete documentation has done for this Maths for computing assignment. I have completed this
assignment using my best knowledge, which I have learnt during the Maths classes as well as while I was
doing the assignment, I have enjoyed and got more knowledge and gained more experience too.
Ashish (2017) Importance of Prime Numbers in Nature, Popular Culture and the Internet. scienceabc.com
[Online]. Available at < https://www.scienceabe.com/pure-sciences/importance-significance-of-prime-
numbers-nature-real-life-examples.html >. [Accessed on 20th July 2018].
Desai, T. (2015). Application of Prime Numbers in Computer Science and the Algorithms Used To Test the
Primality of a Number. International Journal of Science and Research (IJSR), [online] 4(9), pp.132-134.
Available at < https://www.ijsr.net/archive/v4i9/SUB157937.pdf > [Accessed on 22nd July 2018].
Maths Insight (n.d.) Random variable definition. Maths Insight [online]. Available at <
https://www.mathsinsight.org/definition/random_variable > [Accessed on 1st August 2018].
Maths is Fun (n.d.) Conditional Probability. Maths is Fun [online]. Available at <
https://www.mathsisfun.com/data/probability-events-conditional.html > [Accessed on 25th July 2018].
Science Buddies (2012) Probability and the Birthday Paradox. Bring Science Home [online]. Available at <
https://www.scientificamerican.com/article/bring-science-home-probability-birthday-paradox/ > [Accessed
on 13th August 2018].