Plotting Frequency Distributions

90
Plotting Frequency Distributions Mike Slater

Transcript of Plotting Frequency Distributions

Page 1: Plotting Frequency Distributions

Plotting Frequency Distributions

Mike Slater

Page 2: Plotting Frequency Distributions

Here is some data – the number of pupils in a class with birthdays in each month

Month No of pupils born that month

January 2February 2March 1April 4May 5June 5July 4August 3September 2October 2November 1December 1

Page 3: Plotting Frequency Distributions

Let’s plot a histogram for this dataMonth No of pupils born that

month

January 2February 2March 1April 4May 5June 5July 4August 3September 2October 2November 1December 1

Page 4: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

1

2

3

4

5

6

No of pupils with birthday in a given month

2 pupils had birthdays in January

Page 5: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

1

2

3

4

5

6

No of pupils with birthday in a given month

2 pupils had birthdays in January

Page 6: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

1

2

3

4

5

6

No of pupils with birthday in a given month

2 pupils had birthdays in February

Page 7: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

1

2

3

4

5

6

No of pupils with birthday in a given month

1 pupils had a birthdays in March

Page 8: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

1

2

3

4

5

6

No of pupils with birthday in a given month

4 pupils had birthdays in January

Page 9: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

1

2

3

4

5

6

No of pupils with birthday in a given month

Page 10: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

1

2

3

4

5

6

No of pupils with birthday in a given month

Page 11: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

1

2

3

4

5

6

No of pupils with birthday in a given month

Page 12: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

1

2

3

4

5

6

No of pupils with birthday in a given month

Page 13: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

1

2

3

4

5

6

No of pupils with birthday in a given month

Page 14: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

1

2

3

4

5

6

No of pupils with birthday in a given month

Page 15: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

1

2

3

4

5

6

No of pupils with birthday in a given month

Page 16: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

1

2

3

4

5

6

No of pupils with birthday in a given month

Page 17: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

1

2

3

4

5

6

This is a frequency density plot

Page 18: Plotting Frequency Distributions

Now there is another way of looking at our data

Page 19: Plotting Frequency Distributions

Now there is another way of looking at our data

Lets look at it cummatively

Page 20: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2February 2March 1April 4May 5June 5July 4August 3September 2October 2November 1December 1

Page 21: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2February 2March 1April 4May 5June 5July 4August 3September 2October 2November 1December 1

Page 22: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2+ 0 = 2February 2March 1April 4May 5June 5July 4August 3September 2October 2November 1December 1

January is the first month, so there is no data prior to

this

Page 23: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2March 1April 4May 5June 5July 4August 3September 2October 2November 1December 1

Page 24: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2March 1April 4May 5June 5July 4August 3September 2October 2November 1December 1

For the other months add the data from the

month in question

Page 25: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2March 1April 4May 5June 5July 4August 3September 2October 2November 1December 1

For the other months add the data from the

month in question

Page 26: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2March 1April 4May 5June 5July 4August 3September 2October 2November 1December 1

To the cumulative figure from the previous month

Page 27: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2March 1April 4May 5June 5July 4August 3September 2October 2November 1December 1

To the cumulative figure from the previous month

Page 28: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 2 + 2March 1April 4May 5June 5July 4August 3September 2October 2November 1December 1

Page 29: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 2 + 2 = 4March 1April 4May 5June 5July 4August 3September 2October 2November 1December 1

Page 30: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1April 4May 5June 5July 4August 3September 2October 2November 1December 1

Page 31: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1April 4May 5June 5July 4August 3September 2October 2November 1December 1

Now do the same for March

Page 32: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 1 + 4April 4May 5June 5July 4August 3September 2October 2November 1December 1

Page 33: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 1 + 4 = 5April 4May 5June 5July 4August 3September 2October 2November 1December 1

Page 34: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 5April 4May 5June 5July 4August 3September 2October 2November 1December 1

Page 35: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 5April 4May 5June 5July 4August 3September 2October 2November 1December 1

Now do the same for

April

Page 36: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 5April 4 4 + 5May 5June 5July 4August 3September 2October 2November 1December 1

Page 37: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 5April 4 4 + 5 = 9May 5June 5July 4August 3September 2October 2November 1December 1

Page 38: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 5April 4 9May 5June 5July 4August 3September 2October 2November 1December 1

Page 39: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 5April 4 9May 5June 5July 4August 3September 2October 2November 1December 1

Now let’s do the same for the

remaining months

Page 40: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 5April 4 9May 5 14June 5July 4August 3September 2October 2November 1December 1

Page 41: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 5April 4 9May 5 14June 5 19July 4August 3September 2October 2November 1December 1

Page 42: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 5April 4 9May 5 14June 5 19July 4 23August 3September 2October 2November 1December 1

Page 43: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 5April 4 9May 5 14June 5 19July 4 23August 3 26September 2October 2November 1December 1

Page 44: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 5April 4 9May 5 14June 5 19July 4 23August 3 26September 2 28October 2November 1December 1

Page 45: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 5April 4 9May 5 14June 5 19July 4 23August 3 26September 2 28October 2 30November 1December 1

Page 46: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 5April 4 9May 5 14June 5 19July 4 23August 3 26September 2 28October 2 30November 1 31December 1

Page 47: Plotting Frequency Distributions

Month No of pupils born that month

Cumulative

January 2 2February 2 4March 1 5April 4 9May 5 14June 5 19July 4 23August 3 26September 2 28October 2 30November 1 31December 1 32

Page 48: Plotting Frequency Distributions

Now let’s plot a chart for the cumulative dataMonth No of pupils

born that monthCumulative

January 2 2February 2 4March 1 5April 4 9May 5 14June 5 19July 4 23August 3 26September 2 28October 2 30November 1 31December 1 32

Page 49: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

5

10

15

20

25

30

35

In January 2 pupils had birthdays

Page 50: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

5

10

15

20

25

30

35

In the period January to February 2 + 2 = 4 pupils had birthdays(2 in January and 2 in February)

Page 51: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

5

10

15

20

25

30

35

In the period January to March 5pupils had birthdays(2 in January + 2 in February + 1 in March)

Page 52: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

5

10

15

20

25

30

35

In the period January to April 9 pupils had birthdays(2 in January + 2 in February + 1 in March + 4 in April)

Page 53: Plotting Frequency Distributions

Now let’s do the same for the remaining months

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

5

10

15

20

25

30

35

Page 54: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

5

10

15

20

25

30

35

Page 55: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

5

10

15

20

25

30

35

Page 56: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

5

10

15

20

25

30

35

Page 57: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

5

10

15

20

25

30

35

Page 58: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

5

10

15

20

25

30

35

Page 59: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

5

10

15

20

25

30

35

Page 60: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

5

10

15

20

25

30

35

Page 61: Plotting Frequency Distributions

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

5

10

15

20

25

30

35

Page 62: Plotting Frequency Distributions

We now have a cumulative frequency plot

Janu

ary

Febru

ary

Mar

ch

April

May

June

Ju

ly

Augus

t

Sept

embe

r

Oct

ober

Nov

embe

r

Decem

ber

0

5

10

15

20

25

30

35

Page 63: Plotting Frequency Distributions

Let’s try to apply this to toxicology testing

Page 64: Plotting Frequency Distributions

Dose (mg/kg) No of deaths No of test animals

% deaths

5 0 20 0

10 0 20 0

25 3 20 15

50 7 20 35

100 15 20 75

250 19 20 95

500 20 20 100

1000 20 20 100

Page 65: Plotting Frequency Distributions

Dose (mg/kg) No of deaths No of test animals

% deaths

5 0 20 0

10 0 20 0

25 3 20 15

50 7 20 35

100 15 20 75

250 19 20 95

500 20 20 100

1000 20 20 100

At 5 mg/kg no animals

died

Page 66: Plotting Frequency Distributions

Dose (mg/kg) No of deaths No of test animals

% deaths

5 0 20 0

10 0 20 0

25 3 20 15

50 7 20 35

100 15 20 75

250 19 20 95

500 20 20 100

1000 20 20 100

At 10 mg/kg no animals

died

Page 67: Plotting Frequency Distributions

Dose (mg/kg) No of deaths No of test animals

% deaths

5 0 20 0

10 0 20 0

25 3 20 15

50 7 20 35

100 15 20 75

250 19 20 95

500 20 20 100

1000 20 20 100

At 25 mg/kg

3 animals died

Page 68: Plotting Frequency Distributions

Dose (mg/kg) No of deaths No of test animals

% deaths

5 0 20 0

10 0 20 0

25 3 20 15

50 7 20 35

100 15 20 75

250 19 20 95

500 20 20 100

1000 20 20 100

At 50 mg/kg

7 animals died

Page 69: Plotting Frequency Distributions

Dose (mg/kg) No of deaths No of test animals

% deaths

5 0 20 0

10 0 20 0

25 3 20 15

50 7 20 35

100 15 20 75

250 19 20 95

500 20 20 100

1000 20 20 100

But some of these

would have died at a

lower dose

Page 70: Plotting Frequency Distributions

Dose (mg/kg) No of deaths No of test animals

% deaths

5 0 20 0

10 0 20 0

25 3 20 15

50 7 20 35

100 15 20 75

250 19 20 95

500 20 20 100

1000 20 20 100

3 animals died at

25 mg/kg

Page 71: Plotting Frequency Distributions

Dose (mg/kg) No of deaths No of test animals

% deaths

5 0 20 0

10 0 20 0

25 3 20 15

50 7 20 35

100 15 20 75

250 19 20 95

500 20 20 100

1000 20 20 100

So an EXTRA 4

died at the higher dose

Page 72: Plotting Frequency Distributions

Dose (mg/kg) No of deaths No of test animals

% deaths

5 0 20 0

10 0 20 0

25 3 20 15

50 7 20 35

100 15 20 75

250 19 20 95

500 20 20 100

1000 20 20 100

15 animals died at 100

mg/kg

Page 73: Plotting Frequency Distributions

Dose (mg/kg) No of deaths No of test animals

% deaths

5 0 20 0

10 0 20 0

25 3 20 15

50 7 20 35

100 15 20 75

250 19 20 95

500 20 20 100

1000 20 20 100

So an EXTRA 8 died than at lower

doses

Page 74: Plotting Frequency Distributions

The deaths at each administered dose represent the TOTAL number of deaths caused by administering doses UP TO that dose

Page 75: Plotting Frequency Distributions

So we have CUMMULATIVE data

Page 76: Plotting Frequency Distributions

If we plot this data we have a CUMMULATIVE frequency plot

Page 77: Plotting Frequency Distributions

Series10

5

10

15

20

25

Administered dose mg/kg body weight

No.

of

death

s

Page 78: Plotting Frequency Distributions

5 10 250

5

10

15

20

25

Administered dose mg/kg body weight

No.

of

death

s

Page 79: Plotting Frequency Distributions

5 10 25 500

5

10

15

20

25

Administered dose mg/kg body weight

No.

of

death

s

Page 80: Plotting Frequency Distributions

5 10 25 50 1000

5

10

15

20

25

Administered dose mg/kg body weight

No.

of

death

s

Page 81: Plotting Frequency Distributions

5 10 25 50 100 2500

5

10

15

20

25

Administered dose mg/kg body weight

No.

of

death

s

Page 82: Plotting Frequency Distributions

5 10 25 50 100 250 5000

5

10

15

20

25

Administered dose mg/kg body weight

No.

of

death

s

Page 83: Plotting Frequency Distributions

5 10 25 50 100 250 500 10000

5

10

15

20

25

Administered dose mg/kg body weight

No.

of

death

s

Page 84: Plotting Frequency Distributions

0 200 400 600 800 1000 12000

20

40

60

80

100

120

Administered dose mg/kg body weight

%.

of

an

imals

dead

Plot of the % deaths against administered dose (as an X Y Plot)

Page 85: Plotting Frequency Distributions

1 10 100 10000

20

40

60

80

100

120

Administered dose mg/kg body weight

%.

of

an

imals

dead

Plotted on a logarithmic scale

Page 86: Plotting Frequency Distributions

1 10 100 10000

20

40

60

80

100

120

Administered dose mg/kg body weight

%.

of

an

imals

dead

We can now determine the LD50

Page 87: Plotting Frequency Distributions

1 10 100 10000

20

40

60

80

100

120

Administered dose mg/kg body weight

%.

of

an

imals

dead

Page 88: Plotting Frequency Distributions

1 10 100 10000

20

40

60

80

100

120

Administered dose mg/kg body weight

%.

of

an

imals

dead

Page 89: Plotting Frequency Distributions

1 10 100 10000

20

40

60

80

100

120

Administered dose mg/kg body weight

%.

of

an

imals

dead

LD50

LD50

Page 90: Plotting Frequency Distributions

http://www.diamondenv.co.ukhttp://occhygiene.blogspot.com/