1 / 23

Biostatistics

Biostatistics. Lecture 4 Descriptive Statistics “Indicators of dispersion”. Indicators of dispersion. If all observations are the same , there is no variability . If they are not all the same , then dispersion is present in the data.

meganv
Download Presentation

Biostatistics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Biostatistics Lecture 4 Descriptive Statistics “Indicators of dispersion” Dr. Alkilany 2012

  2. Indicators of dispersion • If all observations are the same, there is no variability.If they are not all the same, then dispersion is present in the data. • Variation is an inherent characteristic of experimental observations due to several reasons. • it is always important to get an estimate of how much given objects tend to differ from that central tendency • In any experiment, variation will depend on: • The instrument used for analysis. • The analyst performing the assay. • The particular sample chosen. • Unidentified error commonly known as noise. Dispersion (variability) Central tendency Dr. Alkilany 2012

  3. Indicators of dispersion (why we need them?) • 1. A, B, C have the same mean • Based on similarity of the mean, can we say the data sets are the same? • What is the differences between these data sets? • How we can describe the (differences)? A B C Dr. Alkilany 2012 Dr. Alkilany 2012

  4. Indicators of dispersion Dr. Alkilany 2012

  5. Standard deviation Alpha Bravo • Two tabletting machines producing erythromycin • tablets with a nominal content of 250 mg. • 500 tablets are randomly selected from each machine • and their erythromycin contents was assayed. Mean~250 mg/tablet Mean~250 mg/tablet Although tablets from both machines had equal mean, do you think the two machine still differ? How? Dr. Alkilany 2012

  6. Standard deviation • The two machines are very similar in terms of average drug content for the tablets, both producing tablets with a mean very close to 250 mg. However, the two products clearly differ. • With the Alpha machine, there is a considerable proportion of tablets with a content differing by more than 20 mg from the nominal dose (i.e. below 230 mg or above 270 mg), whereas with the Bravo machine, such outliers are much rarer. • An ‘indicator of dispersion’ is required in order to convey this difference in variability and to decide which one has better performance!! Dr. Alkilany 2012

  7. Standard deviation • This is the standard deviation (SD) for the sample • For population it is usually donated : σ • Same unit of the mean Standard deviation is a widely used measure of variability and central dispersion Let us go back to tabletting machines (raw data)! Dr. Alkilany 2012

  8. Standard deviation Xi __ X= Dr. Alkilany 2012

  9. Standard deviation • The Alpha machine produces rather variable tablets and so several of the tablets deviate considerably from the overall mean. • These relatively large figures then feed through the rest of the calculation, producing a high final SD (8.72 mg). • In contrast, the Bravo machine is more consistent and individual tablets never have a drug content much above or below the overall average. • The small figures in the column of individual deviations, leading to a lower SD (3.78 mg). Dr. Alkilany 2012

  10. Standard deviation • Reporting the SD: • The  symbol is used in reporting the SD • The symbol reasonably interpreted as meaning ‘more or less’. •  is used to indicate variability. • With the tablets from our two machines, we would report their drug contents as: • Alpha machine: 248.78.72 mg (MeanSD mg) • Bravo machine: 251.13.78 mg (MeanSD mg) • The figures quoted before summarize the true situation. The two machines produce tablets with almost identical mean contents, but those from the Alpha machine are two to three times more variable. Dr. Alkilany 2012

  11. Standard deviation and Coefficient of variation - Elephant tail=150±10 cm - Mouse tail=7±3 cm With this in mind, which is more variable: the elephant tail length results or the one for the mouse? • Elephant tail: CV=10/150x100=6.7% • Mouse tail: CV= 3/7x100=42.8% • Coefficient of variation (CV) expresses variation relative to the magnitude of data • Useful to compare variation in two or more sets of data with different mean values • CV is has no unit (it is a ratio!) Dr. Alkilany 2012

  12. The Variance: 2 (population) or S2 (sample) is a measure of spread that is related to the deviations of the data values from their mean. Unit: same as mean but squared. If mean in mg, variance will be in mg2 Variance sample Population Dr. Alkilany 2012

  13. Quartiles Q2 Median Q1 Q3 • Quartiles: the three points that divide the data set into four equal groups, each representing a fourth of the population being sampled • The median= Q2 Dr. Alkilany 2012

  14. Quartiles Interquartile range: difference between the upper and lower quartiles IQR= (Q3 – Q1) Dr. Alkilany 2012

  15. Finding Quartiles • To find the quartiles for a set of data, do the following: • Arrange the data from smallest to highest (ordered array) • Locate the median (Q2) • The half to the left: locate their median (Q1) • The half to the right: Locate their median (Q3) Half to the right Half to the left Median Q1 Q2 Q3 Dr. Alkilany 2012

  16. Finding Quartiles • Example with odd (n) Times needed for 15 tablets to disintegrate in minutes: 5, 10 10 10 10 12 15 20 20 25 30 30 40 40 60 • Data is already in an order from smallest to highest • Median is the (n+1/2)th=8th=20 (in bold red) • For the half to the right: n=7, median=4th=10 minutes • For the half to the right: n=7, median=4th=30 minutes • Q1=10 minutes; Q2= 20 minutes; Q3=30 minutes. IQR=Q3-Q1=20 minutes • This means that 25% of tablets need less than 10 minutes to disintegrate. Also 50% of tablets need 20 minutes to disintegrate. Before 30 minutes, 75% of all tables were disintegrated. 25% only of these tablets need more than 30 minutes to disintegrate. This question can come in this form Dr. Alkilany 2012

  17. Finding Quartiles • Example with even (n) Times needed for 20 capsules to disintegrate in minutes: 5, 10, 10, 15, 15, 15, 15, 20, 20, 20, 25, 30, 30 40, 40, 45, 60, 60, 65, 85 • Data is already in an order from smallest to highest • Median is the mean of the two middle values (n/2)th and ((n/2) + 1)th (in bold red)=10th and 11th=(20+25)/2= 22.5 • For the half to the right: n=10, median=mean of 5th & 6th=15 minutes • For the half to the right: n=10, median=mean of 5th & 6th=42.5 • Q1=15minutes; Q2= 22.5 minutes; Q3=42.5 minutes. IRQ=?? Dr. Alkilany 2012

  18. Quartiles • Consider the elimination half-lives of two synthetic steroids have been determined using two groups, each containing 15 volunteers. • The results are shown in the following table with the values ranked from lowest to highest for each steroid. Dr. Alkilany 2012

  19. Quartiles and IQR as a measurement for data spread The IQR for the half life of steroid 2 is only half that for steroid 1, duly reflecting its less variable nature. Just as the median is a robust indicator of central tendency, the interquartile range is a robust indicator of dispersion. The interquartile range is a more useful measure ofspread than range as it describes the middle 50% of the data values and thus less affected by outliers. 

  20. Box and whisker plot • A box-and-whisker plot can be useful for handling many data values. • It shows only certain statistics rather than all the data. • Five-number summary is another name for the visual representations of the box-and-whisker plot. • The five-number summary consists of the median, the quartiles, and the smallest and greatest values in the distribution (not including outliers). • Immediate visuals of a box-and-whisker plot are the center, the spread, and the overall range of distribution.

  21. Box and whisker plot • The first step in constructing a box-and-whisker plot is to first find the median (Q2), the lower quartile (Q1) and the upper quartile (Q3) of a given set of data. • Example: The following set of numbers are weights of 10 patients in hospital (kgs): S L Q3 Q2 Q1

  22. FYI • Outliers (extreme values) are values that are much bigger or smaller (distant) than the rest of the data. • In order to be an outlier, the data value must be: • larger than Q3 by at least 1.5 times the interquartile range (IQR), or • smaller than Q1 by at least 1.5 times the IQR. • Represented by a dot on the box and whisker plot

  23. HW2 (due: after a week!) 89, 90, 87, 95, 86, 81, 120, 105, 83, 88, 91, 79 Compute: mean, variance, standard deviation Compute: median, the quartiles, and IQR Construct a Box and Whisker plot for the data above If the data point 79 changed to 197, calculate the the new mean and the median and compare them to the old one? What do you conclude from this comparison?

More Related