Download presentation
Presentation is loading. Please wait.
Published byBlake Dawson Modified over 9 years ago
1
Lecture 8 Probabilities and distributions Probability is the quotient of the number of desired events k through the total number of events n. If it is impossible to count k and n we might apply the stochastic definition of probability. The probability of an event j is approximately the frequency of j during n observations.
2
What is the probability to win in Duży Lotek? The number of desired events is 1. The number of possible events comes from the number of combinations of 6 numbers out of 49. We need the number of combinations of k events out of a total of N events Bernoulli distribution
3
What is the probability to win in Duży Lotek? Wrong! Hypergeometric distribution P = 0.0186 N K=n+k n We need the probability that of a sample of K elements out of a sample universe of N exactly n have a desired probability and k not.
4
Assessing the number of infected persons Assessing total population size Capture – recapture methods The frequency of marked animals should equal the frequency wothin the total population Assumption: Closed population Random catches Random dispersal Marked animals do not differ in behaviour N real = 38 We take a sample of animals/plants and mark them We take a second sample and count the number of marked individuals
5
The two sample case You take two samples and count the number of infected persons in the first sample m 1, in the second sample m 2 and the number of infected persons noted in both samples k. How many persons have a certain infectuous desease?
6
m species l species k species In ecology we often have the problem to compare the species composition of two habitats. The species overlap is measured by the Soerensen distance metric. We do not know whether S is large or small. To assess the expectation we construct a null model. Both habitats contain species of a common species pool. If the pool size n is known we can estimate how many joint species k contain two random samples of size m and l out of n. n species Common species pool Habitat A Habitat B The expected number of joint species. Mathematical expectation The probability to get exactly k joint species. Probability distribution.
7
Ground beetle species of two poplar plantations and two adjacent wheet fields near Torun (Ulrich et al. 2004, Annales Zool. Fenn.) Pool size 90 to 110 species. There are much more species in common than expected just by chance. The ecological interpretation is that ground beetles colonize fields and adjacent seminatural habitats in a similar manner. Ground beetles do not colonize according to ecological requirements (niches) but according to spatial neighborhood.
8
First steps in statistics
9
Literature Planning Data Analysis Interpretation Defining the problem Identifying the state of art Formulating specific hypothesis to be tested Study design, power analysis, choosing the analytical methods, design of the data base, Observations, experiments Meta analysis Statistical analysis, modelling Comparing with current theory Publication Scientific writing, expertise How to perform a biological study Theory
10
Preparing the experimental or data collecting phase Let’s look a bit closer to data collecting. Before you start any data collecting you have to have a clear vision of what you want to do with these data. Hence you have to answer some important questions For what purpose do I collect data? Did I read the relevant literature? Have similar data already been collected by others? Is the experimental or observational design appropriate for the statistical data analytical tests I want to apply? Are the data representative? How many data do I need for the statistical data analytical tests I want to apply? Does the data structure fit into the hypothesis I want to test? Can I compare my data and results with other work? How large are the errors in measuring? Do theses errors prevent clear final results? How large might the errors be for the data being still meaningful?
11
How to lie with statistics
12
Representative sampling
18
Scientific publications of any type are classically divided into 6 major parts Title, affiliations and abstract In this part you give a short and meaningful title that may contain already an essential result. The abstract is a short text containing the major hypothesis and results. The abstract should make clear why a study has been undertaken The introduction The introduction should shortly discuss the state of art and the theories the study is based on, describe the motivation for the present study, and explain the hypotheses to be tested. Do not review the literature extensively but discuss all of the relevant literature necessary to put the present paper in a broader context. Explain who might be interested in the study and why this study is worth reading! Materials and methods A short description of the study area (if necessary), the experimental or observational techniques used for data collection, and the techniques of data analysis used. Indicate the limits of the techniques used. Results This section should contain a description of the results of your study. Here the majority of tables and figures should be placed. Do not double data in tables and figures. Discussion This part should be the longest part of the paper. Discuss your results in the light of current theories and scientific belief. Compare the results with the results of other comparable studies. Again discuss why your study has been undertaken and what is new. Discuss also possible problems with your data and misconceptions. Give hints for further work. Acknowledgments Short acknowledgments, mentioning of people who contributed material but did not figure as co-authors. Mentioning of fund giving institutions Literature
19
The source data base Each row gets a single data record. Columns contain variables. Variables can be of text or metric type. Never use the original data base for calculations. Use only a replicate. Take care of empty cells. In calculated cells take care of impossible values.
20
http://folk.uio.no/ohammer/past/
21
NoRaw dataClassesClass meansCounter Number of occassions Frequencies Cummulative frquencies 10.1544970-0.10.0520 0.1 20.9194980.1-0.20.1548280.140.24 30.5179780.2-0.30.2583350.1750.415 40.7420130.3-0.40.35107240.120.535 50.2959320.4-0.50.45127200.10.635 60.8196470.5-0.60.55149220.110.745 70.6939820.6-0.70.65172230.1150.86 80.1949820.7-0.80.75185130.0650.925 90.2769910.8-0.90.85198130.0650.99 100.0548680.9-10.9520020.011 110.386411 120.00286+D10+0.1 +LICZ.JEŻE LI(B$2:B$2 01;"<1") =E11-E12=F11/E$11=G11+H12 130.129657 Frequency distribution
22
NoRaw dataClassesClass meansCounter Number of occassions Frequencies Cummulative frquencies 10.1544970-0.10.0520 0.1 20.9194980.1-0.20.1548280.140.24 30.5179780.2-0.30.2583350.1750.415 40.7420130.3-0.40.35107240.120.535 50.2959320.4-0.50.45127200.10.635 60.8196470.5-0.60.55149220.110.745 70.6939820.6-0.70.65172230.1150.86 80.1949820.7-0.80.75185130.0650.925 90.2769910.8-0.90.85198130.0650.99 100.0548680.9-10.9520020.011 110.386411 120.00286+D10+0.1 +LICZ.JEŻE LI(B$2:B$2 01;"<1") =E11-E12=F11/E$11=G11+H12 130.129657 Cumulative frequency distribution
23
Probability density function (pdf) Statistical or probability distributions add up to one. Discrete distribution Continuous distribution Discrete and continuous distributions Probability generating function (pgf)
24
Shapes of frequency distributions
25
Many statistical methods rely on a comparison of observed frequency distributions with theoretical distributions. Deviations from theory (from expectation) (so called residuals) are measures of statistical significance. f(x) If the f(x) are too large we accept the hypothesis that our observations differ from the theoretical expectation. The problem in statistical inference is to find the appropriate theoretical distribution that can be applied to our data.
26
Home work and literature Refresh: Arithmetic, geometric, harmonic mean Variance, standard deviation standard error Central moments Third and fourth central moment Mean and variance of power and exponental function statistical distributions Pseudocorrelation Sample bias Coefficient of variation Representative sample Prepare to the next lecture: Bernoulli distribution Pascal distribution Hypergeometric distribution Linear random number Literature: Mathe-online Łomnicki: Statystyka dla biologów.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.