Docsity

Hospital Patient Diagnoses & FEV1: Frequency Distributions & Analysis, Study notes of Mathematical Methods

Toggle sidebar
bg1
1
Applied Biostatistics
Frequency distributions
Martin Bland
Professor of Health Statistics
University of York
http://www-users.york.ac.uk/~mb55/
Types of data
Qualitative data arise when individuals may fall into
separate classes. E.g. diagnosis, alive/dead.
A qualitative variable is also termed a categorical variable
or an attribute.
Quantitative data are numerical, arising from counts or
measurements.
If the values of the measurements are integers (whole
numbers) those data are said to be discrete. E.g. family
size.
If the values of the measurements can take any number in a
range, such as height or weight, the data are said to be
continuous. E.g. blood pressure, weight.
Types of data
Variables are qualities or quantities which vary from one
member of a sample to another.
A statistic is anything calculated from the data alone.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Hospital Patient Diagnoses & FEV1: Frequency Distributions & Analysis and more Study notes Mathematical Methods in PDF only on Docsity!

Applied Biostatistics

Frequency distributions

Martin Bland

Professor of Health Statistics

University of York

http://www-users.york.ac.uk/~mb55/

Types of data

Qualitative data arise when individuals may fall into

separate classes. E.g. diagnosis, alive/dead.

A qualitative variable is also termed a categorical variable

or an attribute.

Quantitative data are numerical, arising from counts or

measurements.

If the values of the measurements are integers (whole

numbers) those data are said to be discrete. E.g. family

size.

If the values of the measurements can take any number in a

range, such as height or weight, the data are said to be

continuous. E.g. blood pressure, weight.

Types of data

Variables are qualities or quantities which vary from one

member of a sample to another.

A statistic is anything calculated from the data alone.

Frequency distributions

Principle diagnosis of patients in Tooting Bec Hospital

**Diagnosis Number of patients

Schizophrenia 474 (32.3%) Affective disorders 277 (18.9%) Organic brain syndrome 405 (27.6%) Subnormality 58 (4.0%) Alcoholism 57 (3.9%) Other and not known 196 (13.4%)


Total 1467 (100.0%) -----------------------------------------**

Diagnosis is a qualitative variable.

Frequency distributions

Principle diagnosis of patients in Tooting Bec Hospital

**Diagnosis Number of patients

Schizophrenia 474 (32.3%) Affective disorders 277 (18.9%) Organic brain syndrome 405 (27.6%) Subnormality 58 (4.0%) Alcoholism 57 (3.9%) Other and not known 196 (13.4%)


Total 1467 (100.0%) -----------------------------------------**

The count of individuals having a particular quality is called

the frequency of that quality. The proportion of individuals

having the quality is called the relative frequency or

proportional frequency. The relative frequency of

schizophrenia is 474/1467 = 0.323 or 32.3%.

Frequency distributions

Principle diagnosis of patients in Tooting Bec Hospital

**Diagnosis Number of patients

Schizophrenia 474 (32.3%) Affective disorders 277 (18.9%) Organic brain syndrome 405 (27.6%) Subnormality 58 (4.0%) Alcoholism 57 (3.9%) Other and not known 196 (13.4%)


Total 1467 (100.0%) -----------------------------------------**

The set of frequencies of all the possible categories is

called the frequency distribution of the variable.

Continuous variable:

FEV1 (litres) of 57 male medical students

2.85 3.19 3.50 3.69 3.90 4.14 4.32 4.50 4.80 5. 2.85 3.20 3.54 3.70 3.96 4.16 4.44 4.56 4.80 5. 2.98 3.30 3.54 3.70 4.05 4.20 4.47 4.68 4.90 5. 3.04 3.39 3.57 3.75 4.08 4.20 4.47 4.70 5. 3.10 3.42 3.60 3.78 4.10 4.30 4.47 4.71 5. 3.10 3.48 3.60 3.83 4.14 4.30 4.50 4.78 5.

The class intervals should not overlap, so we must decide

which interval contains the boundary point to avoid it being

counted twice.

It is usual to put the lower boundary of an interval into that

interval and the higher boundary into the next interval.

Thus the interval starting at 3.0 and ending at 3.5 contains

3.0 but not 3.5.

We can write this as ā€˜3.0 —’ or ā€˜3.0 — 3.5-’ or ā€˜3.0 — 3.499’.

Continuous variable:

FEV1 (litres) of 57 male medical students

2.85 3.19 3.50 3.69 3.90 4.14 4.32 4.50 4.80 5. 2.85 3.20 3.54 3.70 3.96 4.16 4.44 4.56 4.80 5. 2.98 3.30 3.54 3.70 4.05 4.20 4.47 4.68 4.90 5. 3.04 3.39 3.57 3.75 4.08 4.20 4.47 4.70 5. 3.10 3.42 3.60 3.78 4.10 4.30 4.47 4.71 5. 3.10 3.48 3.60 3.83 4.14 4.30 4.50 4.78 5.

Frequency distribution of FEV1 in 57 male medical students

**FEV1 Frequency Relative frequency 2.0 — 0 0. 2.5 — 3 5. 3.0 — 9 15. 3.5 — 14 24. 4.0 — 15 26. 4.5 — 10 17. 5.0 — 6 10. 5.5 — 0 0.


Total 57 100.**

Histograms and other frequency graphs

The most common way of depicting a frequency

distribution is by a histogram.

A diagram where the class intervals are on an axis and

rectangles with heights or areas proportional to the

frequencies erected on them.

Frequency

FEV1 (litre)

2 2.5 3 3.5 4 4.5 5 5.5 6

0

5

10

15

20

Frequency

FEV1 (litre)

2 2.5 3 3.5 4 4.5 5 5.5 6

0

5

10

15

20

Histogram of FEV1: frequency scale

Histogram of FEV1: frequency per unit FEV

or frequency density scale

Frequency density

FEV1 (litre)

2 2.5 3 3.5 4 4.5 5 5.5 6

0

10

20

30

40

In this case it the area under the histogram which

represents the frequency.

Frequency density

FEV1 (litre)

2 2.5 3 3.5 4 4.5 5 5.5 6

0

10

20

30

40

Frequency between 2.5 and 3 = 6 Ɨ 0.5 = 3.

Frequency density is particularly useful when we have

unequal intervals.

The frequency

density scale

gives a fair

representation

of the shape of

the distribution

when intervals

have different

widths.

Rel. freq. % per year of age

Age (years)

0 5 15 45 65 100

0

2

4

6

Relative frequency %

Age (years)

0 5 15 45 65 100

0

10

20

30

40

0

20

40

60

Frequency

0 1 2 3 4 5 6 Parity

For a discrete variable we can separate the bars:

This emphasises the discreteness.

Frequency

FEV1 {litre}

2 3 4 5 6

0

5

10

15

20

Frequency polygon:

join the tops of the bars

in the histogram

Frequency

FEV1 (litre)

2 2.5 3 3.5 4 4.5 5 5.5 6

0

5

10

15

20

Frequency polygon:

good for showing more than one distribution on the same

axes.

Females Males

(b) Distribution of PEF

Relative frequency

PEF (litre/min)

The mode

The most frequently occurring value is called the mode of

the distribution.

Unimodal:

Frequency density

FEV1 (litre)

2 2.5 3 3.5 4 4.5 5 5.5 6

0

10

20

30

40

The mode

The most frequently occurring value is called the mode of

the distribution.

Unimodal:

Rel. freq. % per year of age

Age (years)

0 5 15 45 65 100

0

2

4

6

The parts of the histogram near the extremes are called the

tails of the distribution.

If the tail on the right is longer than the tail on the left, the

distribution is skew to the right or positively skew :

Serum triglyceride in cord blood from 282 babies

Frequency

Triglyceride

0 .5 1 1.5 2

0

20

40

60

80

The parts of the histogram near the extremes are called the

tails of the distribution.

If the tail on the right is longer than the tail on the left, the

distribution is skew to the left or negatively skew :

Gestational age at birth

Frequency

Gestational age (weeks)

20 25 30 35 40 45

0

100

200

300

400

500

Most medical data have unimodal

distributions.

Most medical data follow either a

symmetrical or positively skew distribution.

Medians and quantiles

The quantiles are values which divide the distribution

such that there is a given proportion of observations

below the quantile.

The median is the central value of the distribution, such

that half the points are less than or equal to it and half

are greater than or equal to it.

For the FEV1 data the median is 4.1, the 29th of the 57

observations.

If we have an even number of points, we choose a

value midway between the two central values.

Hence the median may not be an actual observation.

Medians and quantiles

The three quartiles divide the distribution into four

equal parts. The second quartile is the median.

The first quartile has 25% of observations below it, the

third quartile has 25% of observations above it.

Q median

Q

0

20

40

60

80

Frequency

0 .5 1 1.5 2 Triglyceride

Medians and quantiles

Note that the quartile is the dividing point, not the area

below it. We should call this a quarter.

You will often see this misuse of the term.

Q median

Q

0

20

40

60

80

Frequency

0 .5 1 1.5 2 Triglyceride

Variability

The median is a measure of the central tendency or

position of the middle of the distribution. We shall also

need a measure of the spread, dispersion or variability

of the distribution.

Variability

The median is a measure of the central tendency or

position of the middle of the distribution. We shall also

need a measure of the spread, dispersion or variability

of the distribution.

Two which we often see are the range and the

interquartile range.

Variability

The range is the difference between the highest and

lowest values. This is a useful descriptive measure, but

has three disadvantages:

1. It depends only on the extreme values and so can

vary a lot from sample to sample.

2. It depends on the sample size. The larger the

sample is, the further apart the extremes are likely to

be.

3. It is difficult to deal with mathematically and is not

useful for use in analysis.

The range is often presented as the minimum and

maximum, rather than the difference between them.

Variability

The range depends on the sample size. The larger the

sample is, the further apart the extremes are likely to

be.

We can get round this problem by using the

interquartile range or IQR , the difference between the

first and third quartiles, a useful descriptive measure.

The IQR is less variable than the range, but is also

difficult to use in analysis.

The interquartile range is often presented as the first

quartile and third quartile, rather than the difference

between them.