1 / 49

Three Frameworks for Statistical Analysis

Three Frameworks for Statistical Analysis. Forest, N=6. Count ant nests per quadrat. Sample Design. Field, N=4. Data. Three Frameworks for Statistical Analysis. Monte Carlo Analysis Parametric Analysis Bayesian Analysis. The model.

Download Presentation

Three Frameworks for Statistical Analysis

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. Three Frameworks for Statistical Analysis

  2. Forest, N=6 Count ant nests per quadrat Sample Design Field, N=4

  3. Data

  4. Three Frameworks for Statistical Analysis • Monte Carlo Analysis • Parametric Analysis • Bayesian Analysis

  5. The model • yi= is a measurement on a “continuous” scale, which belongs to an individual type of habitat “i” • xi= is an indicator or dummy variable for groups (0,1) • The model includes three parameters: • α: the mean for groups • β: the mean difference between groups, and • The variance (σ2) of the normal distribution from which the residuals εi are assumed to have come from. For the Parametric and Bayesian

  6. Monte Carlo Analysis Involves a number of methods in which data are randomized or reshuffled so that observations are randomly reassigned to different treatment groups. This randomization specifies the null hypothesis under consideration

  7. Monte Carlo Analysis • Specify a test statistic or index to describe the pattern in the data • Create a distribution of the test statistic that would be expected under the null hypothesis • Decide on one- or two-tailed test • Compare the observed test statistic to a distribution of simulated values and estimate the appropriate P value as a tail probability

  8. 1. Specifying the Test Statistic

  9. 2. Creating the Null Distribution

  10. 3. Deciding on a One or Two tailed Test Abs (difference) = 3.750 P = 0.036 Threshold

  11. 4. Calculating the Tail Probability 36/1000=0.036

  12. Differences between means Difference = 3.7500 P1 = 0.0228

  13. Assumptions • The data collected represent random, independent samples • The test statistic describes the pattern of interest • The randomization creates an appropriate null distribution for the question

  14. Advantages • It makes clear and explicit the underlying assumptions and the structure of the null hypothesis • It does not require the assumption that the data are sampled from a specified probability distribution, such as the normal

  15. Disadvantages • It is computer intensive and is not included in most traditional statistical packages • Different analyses of the same data set can yield slightly different answers • The domain of inference for a Monte Carlo analysis is subtly more restrictive than that for a parametric analysis

  16. Parametric analysis • Refers to statistical tests built on the assumption that the data being analyzed were sampled from a specified distribution • Most statistical tests specify the normal distribution

  17. Parametric analysis • Specify the test statistic • Specify the null distribution • Calculate the tail probability

  18. 1. Specify the test statistict test

  19. Specify the test statistic Null hypothesis Forest Field

  20. 2. Specify the null distribution Critical value

  21. 3. Calculate the tail probability: Student’s t table http://www.statsoft.com/textbook/sttable.html#t

  22. Results of t-test

  23. Assumptions • The data collected represent random, independent samples • The data were sampled from a specified distribution

  24. Advantages • It uses a powerful framework based on known probability distributions

  25. Disadvantages • It may not be as powerful as sophisticated Monte Carlo models that are tailored to particular questions or data • It rarely incorporates a priori information or results from other experiments

  26. What About Non-Parametric Analyses? • Essentially, these analyses give the P-values that would be obtained by ranking the observations and then performing randomization tests on the ranked data • Like other resampling methods, non-parametric analyses do not require distributional assumptions. • However, they have less power than the equivalent parametric tests and can only be used with simple experimental designs.

  27. Bayesian analysis • It includes prior information and then uses current data to build on earlier results • It also allows us to quantify the probability of the observed difference [i.e., P(Ha|data)]

  28. Bayesian analysis • Specify the hypothesis • Specify parameters as random variables • Specify the prior probability distribution • Calculate the likelihood • Calculate the posterior probability distribution • Interpret the results

  29. 1. Specify the hypothesis • The primary goal of a Bayesian analysis is to determine the probability of the hypothesis given the data P(H | data) • The hypothesis needs to be quite specific, and need to be quantitative: P(diff>2 | diffobs =3.75)

  30. P(hypothesis | data) The left hand side of the equation is called the posterior probability distribution, and is the quantity of interest

  31. P(hypothesis | data) The right hand side of the equation consists of a fraction. In the numerator, the term P(hypothesis) is the prior probability distribution, and is the probability of the hypothesis of interest before you conducted the experiment

  32. P(hypothesis | data) The next term in the numerator is referred as the likelihood of the data; it reflects the probability of observing the data given the hypothesis

  33. P(hypothesis | data) The denominator is a normalizing constant that reflects the probability of the data given all possible hypotheses. It scales the posterior probability distribution to the range [0,1].

  34. P(hypothesis | data) We can focus our attention on the numerator

  35. 2. Specify the parameters as random variables The type of random variable used for each population parameter should reflect biological reality or mathematical convenience

  36. 3. Specify the prior probability distribution • We can combine and re-analyze data from the literature, talk to experts, etc. to come up with reasonable estimates for the density of ant nests in fields and forests • OR, we can use an “uninformative prior”, for which we initially estimate the density of ant nests to be equal to zero and the variances to be very large

  37. sigma ~ dunif(0,10)

  38. OpenBUGS code #Define BUGS model ttestmodel<- function(){ #Priors mu1 ~ dnorm(0,0.001) delta ~ dnorm(0,0.001) tau <- 1/(sigma*sigma) sigma ~ dunif(0,10) #Likelihood for (i in 1:n) { y[i]~ dnorm(mu[i],tau) mu[i] <- mu1 + delta*x[i] residual[i] <- y[i]-mu[i] } # Derived quantities mu2 <- mu1 + delta } write.model(ttestmodel,"ttestmodel.txt")

  39. Parametric Null hypothesis: P(data | H0) P(tobs= 2.96 |t>F theoretical=1.86) Parameters are fixed Bayesian Hypothesis: P(H | data) P(diff> 2 | diffobs =3.75) Parameters are random variables Comparison between approaches

  40. 4. Calculate the likelihood Maximum likelihood Forest Field Field mean Field variance The likelihood is a distribution that is proportional to the probability of the observed data given the hypothesis

  41. 5. Calculate the posterior probability distribution • We multiply the prior by the likelihood, and divide by the normalizing constant • In contrast to the results of the parametric or Monte Carlo analysis, the result of a Bayesian analysis is a probability distribution, not a single P-value

  42. Bayesian output Field Forest Delta (difference)

  43. Estimates

  44. 6. Interpreting the Results • Given the Bayesian estimate of mean diff= 3.698; [P(diff>2 | 3.75)=0.87 (2607/2997), In other words, the analysis indicates that there is a P=0.87 that ant nest densities between the two habitats are different by > 2 nests.

  45. Assumptions • The data collected represent random, independent samples • The parameters to be estimated are random variables with known distributions

  46. Advantages • It allows for the explicit incorporation of prior information, and the results from one experiment can be used to inform subsequent experiments • The results are interpreted in an intuitively straightforward way, and the inferences are conditional on both the observed data and the prior information

  47. Disadvantages • It has computational challenges and the requirement to condition the hypothesis on the data • Potential lack of objectivity, because different results will be obtained using different priors

More Related