QM Consolidated Formulae
QM Consolidated Formulae
Population Variance
σ2 = Σ ( Xi – μ )2 / N
Where Xi is data point, μ is mean and N is number of data points
or
Square root of variance
Coefficiant of Variation
Standard Deviation / Average
Range
Maximum - minimum
Quartile 1
Quartile(Q1)=((n+1)/4)th Term
known as the lower quartile
Quartile 2
Quartile(Q2)=((n+1)/2)th Term
Quartile 3
Quartile(Q3)=(3(n+1)/4)th Term
known as the upper quartile
InterQuartile range
Upper Quartile – Lower Quartile
Z score
z = (x-μ)/σ, where x is the raw score, μ is the population mean, and σ is the population standard deviation
Probability
Marginal Probability
P(A) = (number of desired outcomes) / (total number of possible outcomes)
P(not A) = 1-P(A)
Joint Probability
If A and B are dependent each other
P(A and B) = P(A given B) * P(B) = P(B given A) * P(A)
If A and B are Independent each other
P(A and B) = P(A) * P(B)
If A and B are Mutually exclusive
p(A or B) = p(A) + p(B)
If A and B are Not Mutually exclusive
P(A or B) = p(A) + p(B) – p(A and B)
Conditional Probability
P(A given B) = P(A and B) / P(B)
If A and B are Independent each other
P(A given B) = P(A)
Probability Distributions
Binomial Distribution
b(x; n, P) = nCx * Px * (1 – P)n – x
Where:
b = binomial probability
x = total number of “successes” (pass or fail, heads or tails etc.)
P = probability of a success on an individual trial
n = number of trials
The binomial distribution formula can also be written in a slightly different way, because nCx = n! / x!(n – x)!
Or simply
Poission Distribution
P(x; μ) = (e-μ) (μx) / x!
Where:
μ is Average number of success
x is the actual number of successes that result from the experiment
e is approximately equal to 2.71828.
Normal Distribution
Find Area of the normal distribution
where:
μ is Average
σ is standard deviation
x is data point
Hypothesis Testing
One Sampe test
Two tail test
Problem 1' The mean amount per invoice is 120
Has mean changed?
A sample mean taken it is 112
Sample standard deviation is 20.80
n =12
CI 98.7843105
125.2156895
Since 120 is in between 98 and 125 accept null hypothesis
t-critical -2.20098516
Since -1.1 is in the range of 2.2 and -2.2 accept null hypothesis
Z-crit -1.959963986
Since 4.2 is not in the range of +-1.95 reject null hypothesis
t-crit -1.71088208
Since -4.42 < -1.71 accept null hypothesis
Sp2 254
SE 7.127411872
t-stat -3.044583418
t-crit -2.10092204
Since -3 is not in range of -2 to +2 null hypothesis is rejected
Sp2 8.8985
SE 1.334053972
t-stat -1.634116794
t-crit -2.10092204
Since -1 is in range of -2 to +2 null hypothesis is not rejected
Problem 1
SE 10.94925 3.890796
t-stat 3.890796173
t-crit -1.753050356
Since `3.89 is between 1.7 and -1.7 null hypothesis can be rejected
Problem 1
whether the proportion of guests likely to return in two hotels of a chain is equal?
In the survey for the hotel 1
Total 227
Yes 163
Yes proportion 0.718061674
z-stat 3.00875353
z-crit -1.959963986
Since 3 is not in between -1.6 and 1.6. Hence null hypothesis is rejected
Problem 2
One tail hypothesis proportion testing
H0 >= H1
H0 < H1
In the survey
Total 459
Yes 193
Yes proportion 0.4204793028
Total 501
Yes 250
Yes proportion 0.499001996
z-stat -2.437860632
z-crit -1.644853625
Since -2.4 is less than -1.6 null hypothesis is rejected
Problem 2
S1 350
S2 157
F-stat 2.229299363
F-crit 4.025994158
Since 2.2 is in the range of 4 and -4 null hypothesis is accepted
Problem 1
We need to find the variance among the group and within the groups
va2 = vw2
First we need to find the sum of squares of among the groups (SSA)
Formula is sum of differences of each group from the grand mean, with number of observations as weightage
sum(n*(xi-X)^2)
In our example
x1 29.98 here x is mean of each group
x2 31.99
x3 30.91
x4 30.33
gx 30.8055 Grand mean of all the groups (look in to the excel formula)
n 5
number of groups 4
va2 SSA/dof
va2 3.869185
SSW 0.7026
dof is equal to number of observation - number of groups
vw2 SSW/dof
number of observ 20
dof 16
vw2 0.0439125
F-critical 4.076823062
Chi-square test
A customer satisfaction suvey was conducted in three hotels and the results are in below table
Results Golden Palm Princess Total
Yes 128 199 186 513
No 88 33 66 187
Total 216 232 252 700
Are the three hotel results are equal?
Solution
Observed frequncies
Results Golden Palm Princess Total
Yes 128 199 186 513
No 88 33 66 187
Total 216 232 252 700
Expected frequencies
Results Golden Palm Princess Total
Yes 158.2971428664 170.02286 184.68 513
No 57.7028571336 61.977143 67.32 187
Total 216 232 252 700
chi-square table
Results Golden Palm Princess Total
Yes 5.79869509484298 4.9385996 0.009435 10.74673
No 15.9076501834526 13.548137 0.025882 29.48167
Total 21.7063452782956 18.486736 0.035317 40.2284
Problem 2
Observed frequencies
Reason Golden Palm Princess Total
Price 23 7 37 67
Location 39 13 8 60
Room 13 5 13 31
Other 13 8 8 29
Total 88 33 66 187
Expected frequencies
Reason Golden Palm Princess Total
Price 31.5294117688 11.823529 23.64706 67
Location 28.2352941176471 10.588235 21.17647 60
Room 14.5882352941176 5.4705882 10.94118 31
Other 13.6470588235294 5.1176471 10.23529 29
Total 88.0000000040941 33 66 187
Chi-square 27.41
number of observ 4
number of groups 3
dof 6
chi-crit 12.59158724
60
50
90
80
70
40
30
20
Person Height Weight x-x! y-y! (x-x!)*(y-y!)
A 58 70 -7 -1 7 10
B 66 72 1 1 1 0
C 63 48 -2 -23 46 56 58 60 62
D 69 85 4 14 56
E 69 80 4 9 36
Average 65 71 146
x! y!
n 5
covriance 36.5
Problem 2
Person Experience Salary x-x! y-y! (x-x!)*(y-y!)
A 14 5 -1 1 -1
B 16 6 1 2 2
C 10 3 -5 -1 5
D 20 4 5 0 0
E 15 2 0 -2 0
Average 15 4 6
x! y!
n 5
covriance 1.5
corelation formula
covariance(x,y)/(std.x*std.y)
corelation 0.5538573836
Problem 2 covariance 1.5
Std of x 3.6055513
Std of y 1.5811388
corelation formula
covariance(x,y)/(std.x*std.y)
corelation 0.2631174058
Now
b= SSXY/SSX
a = y!-bx!
SSXY sum((x-x!)*(y-y!))/(n-1)
SSX sum((x-x!)^2)/(n-1)
Probability
Refer below excel file for Probabiity Problems
https://drive.google.com/file/d/1ehSUB7O5EYq2TdttMVeH7NPeWL8iOlEU/view?usp=sharing
ability Distributions
Bill gates sample
A fair coin is tossed 4 times. What is the A fair coin is tossed 40 times. What is
probability of 0, 1, 2, 3, and 4 heads? Expected number (or Mean) and
Standard deviation (SD) of heads?
= n! / x!(n – x)!
Trials 4 Tosses 40
bability of Event2)
X P(X) Mean Sd
0 6.3 20 3.2
1 25.0
2 37.5
3 25.0
4 6.3
Total 100.0
rmal Distribution
Find area at the left side of X. Mean and Sd of Find area at the right side of X. Mean
Normal distribution are given below. and Sd of Normal distribution are given
below.
Mean = 7 Mean = 7
Sd = 2 Sd = 2
X Area % X Area %
0 0.02 0 99.98
1 0.13 1 99.87
2 0.62 2 99.38
3 2.28 3 97.72
4 6.68 4 93.32
5 15.87 5 84.13
6 30.85 6 69.15
7 50.00 7 50.00
8 69.15 8 30.85
ng 9 84.13 9 15.87
10 93.32 10 6.68
11 97.72 11 2.28
12 99.38 12 0.62
val Estimation
haring
Testing
equal to 0 or not
opulations
ons as weightage
e excel formula)
If we need to find the proportions of the variables are same or not use chi-square
80
70
60
50
90
80
70
60
50
Column C
40
30
20
10
0
56 58 60 62 64 66 68 70
4
Column C
3
0
8 10 12 14 16 18 20 22
90
80
f(x) = 1.69767441860465 x − 39.3488372093023
70 R² = 0.306758001381533
60
50
Column C
40 Linear (Column C)
30
20
10
0
56 58 60 62 64 66 68 70
ID Num Gender
ID01 m
ID02 m
ID03 m
ID04 m
ID05 m
ID06 m
ID07 m
ID08 m
ID09 f
ID10 m
ID11 m
ID12 f
ID13 f
ID14 f
ID15 f
ID16 m
ID17 f
ID18 m
ID19 m
ID20 m
ID21 f
ID22 f
w?usp=sharing ID23 f
ID24 f
ID25 f
ID26 f
ID27 m
ID28 m
ID29 f
ID30 m
ID31 f
ID32 f
ID33 f
ID34 m
ID35 f
ID36 m
ID37 f
ID38 f
ID39 m
ID40 f
ID41 f
ID42 f
ID43 m
ID44 m
ID45 m
ID46 m
ID47 f
ID48 m
ID49 m
ID50 f
view?usp=sharing
Poisson Distribution
In a hospital the average number of nurses who are on leave
on a day is 4. What is the probability 0, 1, 2, 3, … nurses are
on leave?
Mean 4
X P(X)
0 1.8
1 7.3
2 14.7
3 19.5
4 19.5
5 15.6
6 10.4
7 6.0
8 3.0
9 1.3
10 0.5
11 0.2
12 0.1
12+
Total 100.0
KnzQcKx6voI0fv6o3D6tSJC1ILfWgxQ/view?usp=sharing
Mean = 7
Sd = 2
X1 X2 Area %
- infinity 7 50.00
- infinity 5 15.87
- infinity 9 84.13
- infinity 10 93.32
2 3 2.28 MS Excel formula for area from -i
2 5 15.87 =NORM.DIST(X,Mean,Sd,TRUE)*
2 8 69.15
7 9 84.13
7 11 97.72
8 11 97.72
2 8 69.15
6 10 93.32
8 +infinity
Number
Annual Employ
Grad Expecte of
Age Height Class Major GPA Salary in ment
School d Salary Affiliatio
5 Years Status
19 69 so mr y 3.19 40 70 un 0
ns
21 67 sr m un 3.11 50 60 pt 0
20 68 jr ef n 3.02 50 60 pt 0
18 79 fr ef y 4.00 50 57 pt 0
19 67 so m y 2.75 40 100 pt 1
21 70 jr a y 3.24 60 100 pt 2
20 68 jr ef y 2.93 50 75 un 0
21 71 jr m y 3.26 40 60 pt 0
20 62 so mr n 3.21 45 65 pt 0
19 70 so a y 3.23 50 70 pt 0
36 67 so a un 3.77 60 120 pt 1
19 65 so a un 3.71 40 60 un 0
20 65 jr a un 3.20 45 65 pt 3
21 65 jr mr y 2.94 40 60 pt 0
19 66 so mr y 3.22 40 80 pt 0
20 69 jr un un 3.34 60 90 pt 0
19 64 fr ib un 3.09 40 65 un 1
20 67 jr mr n 3.72 50 80 pt 2
23 70 jr ef un 2.50 50 75 un 0
20 70 so ef y 2.74 60 75 un 0
20 63 so mr y 3.55 60 100 pt 2
19 67 so m un 3.00 45 65 pt 0
19 65 so mr y 3.62 40 90 pt 0
20 63 jr m un 2.60 40 60 pt 1
22 63 sr ef y 3.63 50 150 pt 3
21 65 sr o n 2.38 40 60 pt 2
21 73 jr m y 2.45 40 65 pt 0
30 71 jr m n 3.28 50 75 pt 0
20 66 so ib un 3.18 50 75 un 1
24 62 so a n 3.33 55 85 pt 0
19 69 so mr un 2.87 30 50 pt 0
33 67 sr a n 3.14 45 75 ft 0
19 64 fr ib n 3.44 45 90 pt 1
20 72 so m y 3.85 60 100 pt 1
22 61 jr o y 3.50 45 60 un 0
21 69 so ef n 2.92 55 85 pt 0
19 60 fr a un 2.80 55 80 pt 0
21 66 jr mr un 2.67 40 65 pt 0
20 69 so a un 2.65 45 80 un 0
20 63 so is n 2.88 50 80 un 1
19 65 so ef un 3.43 50 100 pt 0
21 63 jr ef y 3.48 60 110 pt 0
20 68 so a un 2.91 45 90 pt 1
19 72 so a n 2.75 50 80 pt 0
22 69 jr is y 3.62 55 85 un 2
21 68 jr m n 2.42 35 60 pt 1
22 66 jr mr n 2.76 40 65 pt 0
19 69 fr un un 3.10 45 70 pt 0
20 68 so is n 2.61 40 65 pt 1
20 66 so is n 3.13 45 80 pt 0
formula for area from -infinity to X,
DIST(X,Mean,Sd,TRUE)*100
Satisfact
ion Spendin
Advisem g
2
ent 550
2 400
5 450
5 360
1 500
5 650
4 500
1 500
4 350
6 300
4 200
5 550
5 425
4 600
3 600
5 400
4 250
4 350
2 400
4 400
5 500
3 600
3 400
3 500
6 1000
4 300
2 450
5 550
5 600
4 400
3 700
5 500
6 350
1 450
7 600
5 400
3 450
3 800
3 400
4 375
3 400
5 500
4 350
5 525
4 400
3 450
3 500
4 400
3 450
2 500