Lec 7 Practical Exercise Bio Statistics

15
Practical Exercise Biostatistics Muhammad Afzal Senior Research Officer Community Medicine Department

Transcript of Lec 7 Practical Exercise Bio Statistics

Page 1: Lec 7 Practical Exercise Bio Statistics

Practical Exercise Biostatistics

Muhammad Afzal Senior Research Officer

Community Medicine Department

Page 2: Lec 7 Practical Exercise Bio Statistics

For the following data set calculate

1) Range 2) Mean3) Median4) Mode5) Standard deviation 6) Quartiles (Q1, Q2, Q3)

14241315112213201619

Page 3: Lec 7 Practical Exercise Bio Statistics

1. Range:

Range: Maximum value – Minimum Value

Range = 13

Page 4: Lec 7 Practical Exercise Bio Statistics

2. Mean: Mean: Sum of all values / n

Mean = 167 / 10 = 16.70

Page 5: Lec 7 Practical Exercise Bio Statistics

3. Median:

Median: (if No. of values Even, n = 10) Arrange All values in Ascending order then (n+1)/2 th Value 11 / 2 = 5.5 th value = 15+16/2 = 15.50 11, 13, 13, 14, 15, 16, 19, 20, 22, 24

Page 6: Lec 7 Practical Exercise Bio Statistics

3. Median:

Median: (if No. of values Odd, n = 11) Arrange All values in Ascending order then (n+1)/2 th Value 12 / 2 = 6 th value 11, 13, 13, 14, 15, 16, 19, 20, 22, 24, 31

Page 7: Lec 7 Practical Exercise Bio Statistics

4. Mode:

Mode: Most Frequently Occurring value

11, 13, 13, 14, 15, 16, 13, 20, 22, 24 Mode = 13

Page 8: Lec 7 Practical Exercise Bio Statistics

4. Mode:

Mode: (2nd case) Most Frequently Occurring value

11, 13, 13, 14, 15, 16, 16, 20, 22, 24 Mode = ????

Page 9: Lec 7 Practical Exercise Bio Statistics

5. Standard Deviation:

Standard Deviation:

SD=

Page 10: Lec 7 Practical Exercise Bio Statistics

Steps to calculate SD:

10

1. Calculate mean of all observations2. Calculate difference between each individual

measurement and mean3. Square all these differences4. Take sum of all squared differences5. Divide this sum by number of measurements6. Finally take the square root of value

Page 11: Lec 7 Practical Exercise Bio Statistics

x x-mean (x-mean)**214 -2.7 7.2924 7.3 53.2913 -3.7 13.6915 -1.7 2.8911 -5.7 32.4922 5.3 28.0913 -3.7 13.6920 3.3 10.8916 -0.7 0.4919 2.3 5.29167 168.1

Page 12: Lec 7 Practical Exercise Bio Statistics

So,

SD = Sqr ( 168.10 / 10 ) = Sqr ( 16.81) SD = 4.10

Page 13: Lec 7 Practical Exercise Bio Statistics

6. Quartiles: (Q1, Q2, Q3)

Q1 = n+1/4

Q2= n+1/2  Q3= 3(n+1)/4

11, 13, 13, 14, 15, 16, 19, 20, 22, 24, 31

Page 14: Lec 7 Practical Exercise Bio Statistics

Q1 = n+1/4 = 3rd Value

Q2= n+1/2 = 6th Value   Q3= 3(n+1)/4 = 9th Value

11, 13, 13, 14, 15, 16, 19, 20, 22, 24, 31

Page 15: Lec 7 Practical Exercise Bio Statistics

Exercise 2: For the following data set calculate

Mean Median Standard deviation and Quartiles (i.e. Q1, Q2, Q3) 

13 21 13 15 16 11 19 13 16