




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































UNDERSTANDING
STATISTICS
Download free eBooks at bookboon.com
UNDERSTANDING STATISTICS Contents
About the author 6
1 Lots of figures – with quality and without 8
2 More or less probable 11
3 Dependence and independence 16
4 My first confidence interval 24
5 Location and dispersion in theory and practice 31
6 A useful root 41
7 Completely normal and almost normal 47
8 Within the error margin 57
9 Pure juridical matters 63
10 Some old classics 70
Download free eBooks at bookboon.com Click on the ad to read more
www.sylvania.com
Fascinating lighting offers an infinite spectrum of possibilities: Innovative technologies and new markets provide both opportunities and challenges. An environment in which your expertise is in high demand. Enjoy the supportive working atmosphere within our global group and benefit from international career paths. Implement sustainable ideas in close cooperation with other specialists and contribute to influencing our future. Come and join us in reinventing light every day.
Light is OSRAM
UNDERSTANDING STATISTICS About the Author
From 1984 to 1993 Sture Holm was the professor in Statistics at the School of Economics in Göteborg which gave insight in a new type of applications. Since it was the only professorship at the department it also meant to give PhD courses in all parts of statistical inference. Bootstrap is a nice idea for statistical applications, which interested him much in those years. He gave seminars on bootstrap at several universities and made also some theoretical contributions to the field.
In 1993 there was created a new professorship in Biostatistics at the faculty of Natural sciences and mathematics at Göteborg University supported by the medical faculty. The job was placed at the Institute for mathematical sciences, which is common for Göteborg University and Chalmers Technical University. It gave a better possibility to get good coworkers and students as well better contact with many important applications, among them also medical.
One type of data appearing often in ‘soft sciences’ is results of scale judgments. Holm started a development of suitable methods for analysis together with a coworker, who has later developed the methods further. Another type of work is design of experiments and analysis of variance dependence in those, starting also with a coworker, who has continued the development. He has also given courses for industry in experimental design, and there is a Swedish book by him on this subject available at bookboon.com. With a colleague he has done some works on models for metal fatigue life analysis. Application work has been done for instance also within odontology on the analysis of oral implants, analysis of weight modules in archeological gold and silver finds and numerous other types of applications.
Of recent interests on application oriented statistical methods may be mentioned development of statistically proper methods for rankings between units concerning some quality, e.g. operation results for different hospitals, and investigation of properties of methods using imputation e.g. in educational studies.
During the years Sture Holm has also had some leading academic positions. He has been the head of the Department of Mathematical sciences at Chalmers and Department of statistics at the School of economics, head of education in Engineering physics at Chalmers, chairman of the Swedish statistical association for two periods and chairman (president) of the Nordic region of Biometric society for one period.
Download free eBooks at bookboon.com
UNDERSTANDING STATISTICS Lots of figures – with quALity And without
There are lots of figures that appear in the newspapers, and figures are often mentioned on TV as well. A certain gene may increase the risk of getting a certain disease by a factor of three, a certain fraction of thirteen-year-old girls smoke almost every day, three out of four citizens think that the mayor should resign and the support for the labor party has increased since last month. But this last change is said to be within the error margin.
What is all this now? Figures are figures which may perhaps be understood. But what quality do they have? Error margin, what is that? And what is it useful for?
Everyone ought to understand that statistical estimates may have different qualities depending on how they have been collected, how many units have been included in the estimate and so on. In a certain time period, there were 66.7% women among the professors of biostatistics in Sweden. A clear indication of a change of gender distribution in academic life? Of course, the fact that two out of three professors were women may give some tiny little indication, but we must regard these 67.7% as a poor quality estimate due to the small sample size.
The central statistical office as well as others who conduct studies on people’s preferences among political parties, have much bigger sample sizes. They also make their estimates based on random samples. They then get much better precision in their estimates. Further, they often have a quality declaration by reporting an error margin. Even if one does not fully understand the exact mathematical meaning of this concept, it gives quite a good idea of the possible errors in the estimates. A change within the error margin is ‘not much to talk about’. Margins of error also appear in other contexts in general life. If we say that the distance to the town centre is four and a half kilometers, there is certainly some error margin in this figure. And if we estimate the cost of a holiday trip at 3000 euros, and the real cost appears to be 3107 euros we think that it is within the error margin. In forthcoming sections we will further discuss error margins and similar things, but for the moment we focus on the basic problem that quality declarations so often miss.
Download free eBooks at bookboon.com
UNDERSTANDING STATISTICS Lots of figures – with quALity And without
From a psychological point of view it is easy to be trapped in erroneous thinking in this situation. When some communities are quite far from each other on the list, there may truly seem to be a substantial difference between these communities. But without the knowledge of mean errors or an equivalent parameter, the discussion is meaningless. The right place for this so-called investigation is the waste-paper basket.
Unfortunately, such comparisons without quality declarations appear in many different fields. You may for instance see comparisons between services in medical care units, comparisons between shirking in schools and so on.
Why are such statistics produced then? Quite often it would not be so very difficult to give at least approximate quality measures. If the producers had at least a basic knowledge of statistical theory, they would be able to do that. There may be two reasons. One is that perhaps they do not have this basic knowledge. Another reason may be that perhaps they could make some proper calculations, but do not want to, because that would reveal how bad their data are. It would then be more difficult to sell this type of work to newspapers and other organisations in the future.
The ambition of this book is to explain statistical principles to those who are not specialists in the field. I will discuss different types of common statistical methods and concepts. Those who have studied a little more of statistics, have quite often studied these in a technical computational way, sometimes without a basic understanding. They may perhaps also make good use of a little book which concentrates on the understanding of statistics. And thirdly, it might be good to have an accompanying text which concentrates on the basic principles, while you study any course in statistics. So I hope that this little book may serve all these cases well.
Download free eBooks at bookboon.com
UNDERSTANDING STATISTICS More or Less probAbLe
Statistics has a lot to do with probabilities. We will not go into the theory of probability in any depth, but with respect to the following sections it may be helpful to first have a look at the most elementary probability concepts.
If we toss a dice, the probability of getting a six is equal to a sixth, or about 17%. Everyone
knows that. And that a lottery with 2 million lottery-tickets and 492624 winning lottery-
tickets has a winning chance of (^) m^ g =^2000000492624 =^ 0, 246^ =^ 24, 6 % is also rather self evident.
Almost one fourth of the lottery-tickets are winning ones. Well, in this lottery, 400007 of
the prizes have the value which is the same as the price of the lottery-ticket, so there are
only 92617 lottery-tickets which give a gain. Thus the probability of gaining when you buy
a lottery-ticket is only (^92617) 0, 046 4, 6 % 2000000
g m =^ =^ =^
.
These trivial calculations follow the simplest model for determining probabilities, the so-
called classical probability model, where you determine the probability p for an event as the
ratio p g = (^) m , between the number g of cases favorable for the event and the total number
m of possible cases.
Probably people have thought this way earlier too, but a formal definition and slightly more advanced calculations of this type were first used in the seventeen hundreds, in connection with interest in some game problems. To calculate how many cases of different kinds there are, is a topic of mathematics which is called combinatorial analysis. The combinatorial problems, although often easily stated, are sometimes very tricky to solve. We will not go into these things. Now we turn to a very simple example. The calculations are trivial, but in a quality control situation, this type of calculation is just what is needed.
Example
Let us suppose that some kind of units are manufactured for sale, and that the producers want to keep track of the units’ ability to function. Perhaps a certain amount of time goes into a control function for this. Can this time be decreased by checking only a sample of units in each batch? We study this problem in a numerical example.
Download free eBooks at bookboon.com
UNDERSTANDING STATISTICS More or Less probAbLe
This number is extremely large. In mathematical terms, it can be written as (^) 62.82 10⋅ 18. The number 1018 is, simply put, millions of millions of millions (which is certainly true here, since 106 is a million).
The simplest way to calculate the number of favourable cases is to take all cases minus the unfavourable ones. This latter number here equals 80 79 78 77 76 75 74 73 72 71⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ or 5.97 10⋅ 18. The number of favorable cases is now 62.82 10⋅ 18 − 5.97 10⋅ 18 = 56.85 10⋅ 18 ,
and the probability we want to calculate is
18 18
56,85 10 (^) 0,905 90,5% 62,82 10
g m
= ⋅ = = ⋅
After this journey in the world of big numbers, we arrive at the statement that if there are in fact 20 non-functioning units in the batch, the chance is 90.5% that we will discover it and make a general control of the whole batch.
Enough of calculations for the moment. I think that you now understand the principles well enough so you could make your own calculations for this type as also for other numbers of real non-functioning units in the batch. I have run calculations for all cases from 1 to 30 non- functioning units in the batch, and exhibited the result in the following figure.
Figure 2.1. Probability (y-axis) of discovering problems in the batch with 100 units as a function of the true number of non- functioning units (x-axis) in the whole batch, for a quality control based on a sample size of 10.
Download free eBooks at bookboon.com
UNDERSTANDING STATISTICS More or Less probAbLe
We have used a very simple probability model here and made very elementary calculations, even if the numbers are big. Yet we have found results which may be useful in practice. We can for instance, see in the figure that if there are about 30 non-functioning units in the whole batch, we are almost sure to discover that there are problems with the production. On the other hand if there are 5 or less non-functioning units in the batch, we have rather a small probability of going ahead with a general control of the whole batch.
You can also gain some general understanding from this simple problem. You see that due to random influence there is always a risk of wrong conclusions in a statistical investigation. But you can also learn that with suitable calculations you can find the size of that risk.
We finish the section by looking at how we could suitably change the control procedure by changing the sample size. In the figure below, I show calculated probabilities of discovering problems as a function of the real number of non-functioning units in the batch, both, for double the sample size 20 and for the half the sample size 5, instead of 10 as before. Some calculations have to be done, but they all have the same elementary character as before.
Figur 2.2. Probability (y-axis) of discovering problems as a function of the real number of non- functioning units (x-axis) in quality controls with sample sizes 20 (upper curve) and 5 (lower curve).
Download free eBooks at bookboon.com
UNDERSTANDING STATISTICS dependenCe And independenCe
In the previous section we considered probabilities only according to the classical definition, as the ratio of favorable and possible cases. However, this simple definition is not enough for most application situations. In this section we will take a look at another simple form of probability calculation and its practical applications. We start with the principle coupling between the theoretical probability model and the empirical reality, where the model is used.
What does it mean if a medical paper declares that a there is an 8% probability of a mild adverse effect? It ought to mean that this adverse effect appears in 8% of a large population or that this percentage has been estimated in a smaller sample from the population. We talk here of the relative frequency of 8% in the population. This relative frequency in the sample is an empirical estimate of the theoretical probability of the adverse effect, which can be thought of as the relative frequency in the whole considered population. This is the coupling we have between the empirical and theoretical world, and which should be there for all kinds of situations and for all kinds of events.
If an item of a mathematical test for some grade in school has a degree of difficulty with a chance of 40% for the pupils to get it right, this ought to mean that one has either observed that 40% of the pupils in a representative big population have got the test item right or that some authority has made the judgment that this is the case. We take this figure as a basis for a simple numerical discussion of a very important concept in statistics, the independence concept.
Now think of two randomly chosen pupils A and B, who have to solve the above mentioned item. When we consider the two pupils at the same time, there are four possible combined outcomes: both A and B get it right, A gets it right but not B, B gets it right but not A, and neither A nor B gets it right. What value is reasonable for the probability for the combined event that both A and B get it right?
Download free eBooks at bookboon.com
UNDERSTANDING STATISTICS dependenCe And independenCe
One randomly chosen pupil has the probability 40% to get it right. Either this event has happened or not; there is 40% probability that the other randomly chosen pupil should get it right. The chance that both pupils A and B get it right, is 40% of 40%, which is 0, 40 0, 40⋅ = 0,16 = 16 %. In a similar manner we find that the reasonable value of the probability that A gets it right but B does not, is 0, 40 0, 60⋅ = 0, 24 = 24 %. The probability that B gets it right but A does not is also 24% and finally the event that none of them get it right, is 0, 60 0, 60⋅ = 0,36 = 36 %. Observe that the sum of the probabilities for the four cases adds up to 16 % + 24 % + 24 % + 36 % = 100 %.
When two events in this way have a probability that both should happen, which is equal to the product of the probability of the individual events, we say that the events are independent.
The most important statistical independence concept is independent sub-trials. Suppose a trial consists of two sub-trials. If any event in the first sub-trial is independent of any event in the second sub-trial, we say that the sub-trials are independent. Observe that it should hold for all possible combinations of events in the two sub-trials.
Independent sub-trials is usually not something you make a calculation to find. It is usually an assumption that you have reason to make when there are sub-trials, whose random results do not influence each other. When we can make this assumption of independence we can in principle calculate the probability for all combined events. Here is a table for a simple numerical example.
0,1 0,03 0,05 0,
0,7 0,21 0,35 0,
0,2 0,06 0,10 0,
Sub-trial 2 itself
Sub-trial 1 itself 0,3 0,5 0,
Table. Probabilities in a trial which consists of two independent sub-trials with three possible outcomes and different probability distributions.
A trial which consists of more than two sub-trials whose results do not influence each other randomly, can also be supposed to be independent in a generalised definition. There the probability of any combined event is the product of all the events in the individual sub- trials. We take a simple example.
Download free eBooks at bookboon.com
UNDERSTANDING STATISTICS dependenCe And independenCe
Number getting right
0 1 2 3 4
Probability for one case
(1 – p )^4 p (1 – p ) 3 p^2 (1 – p ) 2 p^3 (1 – p ) p^4
Number of cases
1 4 6 4 1
Going back to our numerical example with p -value 0.4, for instance, the probability that exactly two pupils get the item right equals (^) 6 0, 4⋅ 2 ⋅ 0, 6^2 = 0,3456and the whole distribution of the number of pupils getting the item right can be mapped as in the following figure.
Figure 3.1. Probability distribution for the number of pupils getting the item right.
What am I doing here? I have just introduced you to the most important probability distribution for random variables, with outcomes in form of countable numbers. It is called the binomial distribution. The motivation for its use is just that it fits well as a distribution for the number of times a given event occurs in a number of independent sub-trials of the same kind.
Download free eBooks at bookboon.com
UNDERSTANDING STATISTICS dependenCe And independenCe
The binomial distribution has two parameters, the size parameter, often denoted by n and the probability parameter, often denoted by p. Thus in our introductory example, the parameters are n = 4 and p = 0.4. In a mathematical description the probability of outcome k equals
n P X k p p k
= = ⎛^ ⎞ −^ − ⎜ ⎟ ⎝ ⎠
Here the factor n k
^ , the so called binomial coefficient, is the number of ways to choose^ k
units out of n units, without respect to the order of units.
The motivation for the use of binomial distribution can be generally deduced mathematically. It follows, in principle, our simple motivation for the case n = 4 above. We do not care very much about the mathematical technique here, but I hope that you understand the importance of the motivation for the use of the distribution. This simple type of situation appears in many applications. To get the numerical values of probabilities in the distribution is a job for a computer. It's rather cumbersome to make it by hand.
All reasonably big mathematical or statistical computer programs can handle the necessary calculations. If you do not already have a program available, you can always download the statistics program R from the internet, free of cost. One such url is http://ftp.sunet.se/ pub/lang/CRAN/. You can also google, for instance, ‘statistics program R’. There is also an instruction booklet for the program. I have used that program for compiling all calculations and figures in this book. It is a good program with a lot of possibilities. One drawback is that it is operated by commands. However these are listed in the instruction booklet. There are no menus with alternatives or other click alternatives.
Here are some examples of binomial distributions. The first one may, for instance, illustrate the distribution of the number of patients with mild adverse effects in a group of 50 patients, when the adverse effect has a probability of 8%. This is an example we had in the beginning of this section.
Download free eBooks at bookboon.com