Sunteți pe pagina 1din 12

1

Computer Based Assignment #2


Aly Mohamed Elreefaei
201303696
Jameel Hannun
201300284
Qatar University
Probability and statistics
May 26, 2015
Dr. Adel Elomri

2
Exercise #1
length(mm)
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

Type
short-staple
short-staple
short-staple
short-staple
short-staple
short-staple
short-staple
short-staple
short-staple
short-staple
short-staple
short-staple
short-staple
short-staple
short-staple
medium -staple
medium -staple
medium -staple
medium -staple
medium -staple
medium -staple
medium -staple
medium -staple
medium -staple
medium -staple
medium -staple
medium -staple
medium -staple
medium -staple
Long-staple
Long-staple
Long-staple
Long-staple
Long-staple
Long-staple
Long-staple
Long-staple
Long-staple
Long-staple
Long-staple
Long-staple

mediumstaple
long-staple
2.6766E-05
2.6766E-05
5.83894E-05
5.83894E-05
0.00012238
0.00012238
0.000246444
0.000246444
0.000476818
0.000476818
0.00088637
0.00088637
0.00158309
0.00158309
0.002716594
0.002716594
0.004478906
0.004478906
0.007094919
0.007094919
0.010798193
0.010798193
0.015790032
0.015790032
0.022184167
0.022184167
0.029945493
0.029945493
0.038837211
0.038837211
0.048394145
0
0.057938311
0
0.066644921
0
0.073654028
0
0.078208539
0
0.079788456
0
0.078208539
0
0.073654028
0
0.066644921
0
0.057938311
0
0.048394145
0
0.038837211
0
0.029945493
0
0.022184167
0
0.015790032
0
0.010798193
0
0.007094919
0
0.004478906
0
0.002716594
0
0.00158309
0
0.00088637
0
0.000476818
0
0.000246444
0
0.00012238
0
5.83894E-05
0
2.6766E-05
0

short-staple
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0.015790032
0.010798193
0.007094919
0.004478906
0.002716594
0.00158309
0.00088637
0.000476818
0.000246444
0.00012238
5.83894E-05
2.6766E-05

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0.048394
0.057938
0.066645
0.073654
0.078209
0.079788
0.078209
0.073654
0.066645
0.057938
0.048394
0.038837
0.029945
0.022184
0
0
0
0
0
0
0
0
0
0
0
0

3
Graph
0.09

0.08

0.07

0.06

0.05

0.04

0.03

0.02

0.01

0
1

11

13

15

17

19

21

23

25

27

29

31

33

35

37

39

41

43

45

Graph.1: normal distribution curve


The question is asking about defining the different lengths and to divide it into
three sections. Long, medium and short. We have found the normal distribution of
all Numbers and then put them in the graph according to their lengths.
P.S. The green color refers to the short-stable while the medium-stables are in blue
and finally the red color part in the graph represents the long-stables.

4
Exercise #2
Data
Player

Game Played

Points Per Game

Blocks Per Game

Dwyane Wade

62

21.5

0.34

Chris Bosh

44

21.1

0.57

Goran Dragic

26

66.6

0.23

Luol Deng

72

14

0.31

Hassan Whiteside

48

11.8

2.56

Mario Chalmers

80

10.2

0.13

Michael Beasley

24

8.8

0.54

Henry Walker

24

7.3

0.38

Shawne Williams

44

6.6

0.39

Norris Cole

47

6.3

0.17

Danny Granger

30

6.3

0.2

Tyler Johnson

32

5.9

0.28

Chris Andersen

60

5.3

1.02

Shabazz Napier

51

5.1

0.08

James Ennis

62

0.27

Josh McRoberts

17

4.2

0.18

Udonis Haslem

62

4.2

0.21

Shannon Brown

Justin Hamilton

24

2.8

0.1

Zoran Dragic

10

2.2

Andre Dawkins

0.8

We have used a basketball statistics for the Miami heat team in 2014-2015 season. Our data retrieved
from http://espn.go.com/nba/team/stats/_/name/mia . However, we have collected 21 basketball
player and got their game played, points per game and block per game statistics. After that, we did more
than eight kind of statistic based on their information and finally, we have plotted the graphs.

5
Data analysis: descriptive statistics
By using excel we creates following information
Points Per Game

Game Played
Mean

39.42857

Mean

10.47619

Standard Error

4.833697

Standard Error

3.051041

Median

44

Median

6.3

Mode

62

Mode

6.3

Standard Deviation

22.15078

Standard Deviation

13.98163

Sample Variance

490.6571

Sample Variance

195.4859

Kurtosis

-0.97888

Kurtosis

14.12194

Skewness

0.053951

Skewness

3.556184

Range

Range

76

65.8

Minimum

Minimum

0.8

Maximum

80

Maximum

66.6

Sum

220

Sum

828

Count

21

Count

Largest(1)

80

Largest(1)

66.6

Smallest(1)

Smallest(1)

0.8

Confidence Level (95.0%)

21

Confidence Level (95.0%)

10.08292

6.36436

Blocks Per Game


Mean
Standard Error
Median
Mode
Standard Deviation
Sample Variance
Kurtosis
Skewness
Range
Minimum
Maximum
Sum
Count
Largest(1)
Smallest(1)
Confidence Level (95.0%)

0.379048
0.12036
0.23
0
0.551561
0.304219
13.19049
3.421079
2.56
0
2.56
7.96
21
2.56
0
0.251067

Graphs above represents descriptive statistics for each variable separately next we will discuss it.

Fig.1: Descriptive statistics by using the mini tab


By using the mini tab program and we summarized the median, variance, mean and other
descriptive statistics the table above represents that:
1- Maximum points ratio per game was 66.60 while the minimum value was 0.80 and that
represents a large variation between that two variables.
2- The variance for game played here is quite large, especially when compared to the value
of the mean. This indicates that changing the ingredients had a strong effect.
3- The variance for points per game here is quite large, especially when compared to the
value of the mean. This indicates that changing the ingredients also had a strong effect.

7
Graph

comparing the three variables

90
80
70
60
50
40
30
20
10
0

Game Played

10 11 12 13 14 15 16 17 18 19 20 21

62 44 26 72 48 80 24 24 44 47 30 32 60 51 62 17 62

Points Per Game 21.5 21.1 66.6 14 11.8 10.2 8.8 7.3 6.6 6.3 6.3 5.9 5.3 5.1 5 4.2 4.2 4
Game Played
Points Per Game
Blocks Per Game
Blocks Per Game 0.34 0.57 0.23 0.31 2.56 0.13 0.54 0.38 0.39 0.17 0.2 0.28 1.02 0.08 0.27 0.18 0.21 0

24 10

2.8 2.2 0.8


0.1

games played VS points per game


80
60
40
20
0
1

10

11

12

Game Played

13

14

15

16

17

18

19

Game Played
20

21

Points Per Game

The graphs above is a comparison between the three variables that graph represents that there is a
fluctuation between the variables. And it is obvious because the number of points per game not
homogeneous with the number of game played. As shown above that data breaks the role that
say more played more scored in the graph above we can observe that there are players scored
more points and played less matches.

8
Next graphs represents a histograms and Boxplot for our data :

Game Played
90
80
70
60
50
40
30
20
10
0

The above graphs represents the ration of game played for each player as can be shown we have
a sharp fluctuation between the ratios.

Points Per Game


70
60
50
40
30
20
10
0

The above graphs represents the ration of points per game for each player as can be shown we
have a steady decreasing of ratios. As can be shown goaran dragic have the highest ratio of point
scored and his ratio above the mean which creates outliers in our boxplot.

Blocks Per Game


3
2.5
2
1.5
1
0.5
0

The above graphs represents the ration of blocks per game for each player as can be shown we
have a fluctuation between the ratios but some player break the average and record more blocks
than others that because his position in the playground .As can be shown hassan record break the
mean and median and has a unique record after him chris come secondly other than those two
players the rest have a blocks in a closed rang.

10

Boxplot of Game Played


80
70

Game Played

60
50
40
30
20
10
0

We do not have any outliers, which means that there was no particular combination of
ingredients that was exceptional when compared to all the rest. Our median is noticeably near to
the center, which indicates that most of the cases are near to mean.

11

Boxplot of Blocks Per Game


2.5

Blocks Per Game

2.0

1.5

1.0

0.5

0.0

Boxplot of Ponts Per Game


70

60

Ponts Per Game

50

40

30

20

10

In those two variables we have some outliers, which means that there was a particular
combination of ingredients that was exceptional when compared to other variables. Our median
is noticeably shifted downwards from the center in both variables above, which indicates that
most of the cases are below the mean.

12

References:
Exercise #2 data retrieved from
1-http://espn.go.com/
2- http://espn.go.com/nba/team/stats/_/name/mia

S-ar putea să vă placă și