Homework #2 solution Q1: Suppose you have a sample from a sport club and the distribution of the sample as: Tennis Basket ball Soccer Hand ball Male 15 20 28 25 Female 17
Homework #2 solution Plot bar chart for male and female separately
Homework #2 solution For Female
Homework #2 solution Plot companying bar chart over the entire club.
Homework #2 solution Plot Pie chart for Male and Female. a) For Male
Homework #2 solution For Male
Homework #2 solution For female
Homework #2 solution For female
Homework #2 solution Suppose you have the data set {5.1, 1.5, 1.9, 2.7, 4.5, 0.8, 4.1, 2.1,2.4, 1.2, 1.0, 3.5, 1.9} Calculate: mean –median- mean deviation-interquartile range- variance standard deviation- coefficient of variation.
Homework #2 solution Sort data as: {0.8,1,1.2,1.5,1.9,1.9,2.1,2.4,2.7,3.5,4.1,4.5,5.1}
Homework #2 solution Sort data as: {0.8,1,1.2,1.5,1.9,1.9,2.1,2.4,2.7,3.5,4.1,4.5,5.1} Mean deviation = 1.127 Deviation interquartiles = Q3 – Q1 Position of Q3 = 0.75 * 14 = 10.5
Homework #2 solution Position of Q1 = 0.25 * 14 = 3.5 Then Deviation interquartiles = 3.8 – 1.35 = 2.45
Homework #2 solution Variance
Homework #2 solution Plot Box plot
Homework #2 solution Construct a stem and leaf diagram. Minimum vale = 0.8 Maximum value = 5.1 Frequency 0 | 8 1 1 | 02599 5 2 | 1147 4 3 | 5 1 4 | 15 2 5 | 1 1
Homework #2 solution Suppose you have a marks of 59 student as {37, 51, 68, 55, 9, 18,54, 38, 32, 66, 19, 48, 6, 7,11 59, 13, 37, 36, 56, 58, 47, 41, 39, 21, 39, 49, 8, 17, 19, 15, 12, 67, 22, 23, 25, 21, 31, 29, 46, 34, 47, 33, 28, 27, 29, 25, 43, 49, 44, 41, 26, 36, 35, 46, 45,34,31,38}
Homework #2 solution Construct a frequency table for above data set with 7 classes and the length of each class is 10.
Homework #2 solution Frequency table for above. class frequency x x^2 fx fx^2 0 - 10 4 5 25 20 100 10 - 20 8 15 225 120 1800 20 - 30 11 625 275 6875 30 - 40 35 1225 525 18375 40 - 50 12 45 2025 540 24300 50 - 60 6 55 3025 330 18150 60 - 70 3 65 4225 195 12675 Total 59 2005 82275
Homework #2 solution Plot: Histograms
Homework #2 solution Polygon
Homework #2 solution Ogive
Homework #2 solution Box plot ملاحظة تم حساب أقل قيمة وأكبر قيمة وكذلك الربيع الاول والوسيط والوسط الحسابي ويمكن اضافتها يدوياً على رسم الصندوق
Homework #2 solution Calculate mean – median – mode -interquartile range- variance – standard deviation. Median Step (2) =59/2=29.5
Homework #2 solution Step(3): the median class is 30-40 Step (4): Lm =30 , Fm-1 = 23 , fm =15 , Cm = 10 Step (5)
Homework #2 solution IQR=Q3-Q1 IQR = Q3 - Q1 = 45.21 - 22.27 = 22.94
Homework #2 solution Table class frequency R.F x x^2 fx fx^2 cumulative 0-10 4 0.067797 5 25 20 100 0.067 10:20 8 0.135593 15 225 120 1800 0.2023 20:30 11 0.186441 625 275 6875 0.389 30:40 0.254237 35 1225 525 18375 0.643 40:50 12 0.20339 45 2025 540 24300 0.846 50:60 6 0.101695 55 3025 330 18150 0.948 60:70 3 0.050847 65 4225 195 12675 1 Total 59 2005 82275
Homework #2 solution Variance
Homework #2 solution You want to buy a new car: One car has a speed of 160 km/h, consume 11 litter of fuel/km and its capacity is 5 persons, another car has a speed of 180 km/h, consume 12 litter of fuel/km and its capacity is 4 persons. Which is the better? and how? Geometric mean for the first
Homework #2 solution Geometric mean for the first Geometric mean for the second The first one is better because it have the maximum geometric mean