Statistical Methods for Data Science, Lecture 5 Interval Estimates; Comparing Systems

Total Page:16

File Type:pdf, Size:1020Kb

Statistical Methods for Data Science, Lecture 5 Interval Estimates; Comparing Systems Statistical methods for Data Science, Lecture 5 Interval estimates; comparing systems Richard Johansson November 18, 2018 statistical inference: overview I estimate the value of some parameter (last lecture): I what is the error rate of my drug test? I determine some interval that is very likely to contain the true value of the parameter (today): I interval estimate for the error rate I test some hypothesis about the parameter (today): I is the error rate significantly different from 0.03? I are users significantly more satisfied with web page A than with web page B? -20pt “recipes” I in this lecture, we’ll look at a few “recipes” that you’ll use in the assignment I interval estimate for a proportion (“heads probability”) I comparing a proportion to a specified value I comparing two proportions I additionally, we’ll see the standard method to compute an interval estimate for the mean of a normal I I will also post some pointers to additional tests I remember to check that the preconditions are satisfied: what kind of experiment? what assumptions about the data? -20pt overview interval estimates significance testing for the accuracy comparing two classifiers p-value fishing -20pt interval estimates I if we get some estimate by ML, can we say something about how reliable that estimate is? I informally, an interval estimate for the parameter p is an interval I = [plow ; phigh] so that the true value of the parameter is “likely” to be contained in I I for instance: with 95% probability, the error rate of the spam filter is in the interval [0:05; 0:08] -20pt frequentists and Bayesians again. I [frequentist] a 95% confidence interval I is computed using a procedure that will return intervals that contain p at least 95% of the time I [Bayesian] a 95% credible interval I for the parameter p is an interval such that p lies in I with a probability of at least 95% -20pt interval estimates: overview I we will now see two recipes for computing confidence/credible intervals in specific situations: I for probability estimates, such as the accuracy of a classifier (to be used in the next assignment) I for the mean, when the data is assumed to be normal I . and then, a general method -20pt the distribution of our estimator I our ML or MAP estimator applied to randomly selected samples is a random variable with a distribution I this distribution depends on the 0.15 sample size 0.10 I large sample ! more concentrated distribution 0.05 0.00 0.0 0.2 0.4 0.6 0.8 1.0 n = 25 -20pt estimator distribution and sample size (p = 0:35) 0.30 0.25 0.20 0.15 0.10 0.05 0.00 0.0 0.2 0.4 0.6 0.8 1.0 n = 10 0.15 0.14 0.10 0.10 0.12 0.08 0.10 0.05 0.06 0.08 0.00 0.06 0.0 0.2 0.4 0.6 0.8 1.0 0.04 n = 25 0.04 0.02 0.02 0.00 0.00 0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0 n = 50 n = 100 -20pt confidence and credible intervals for the proportion parameter I several recipes, see https: //en.wikipedia.org/wiki/Binomial_proportion_confidence_interval I traditional textbook method for confidence intervals is based on approximating a binomial with a normal I instead, we’ll consider a method to compute a Bayesian credible interval that does not use any approximations I works fine even if the numbers are small -20pt credible intervals in Bayesian statistics 1. choose a prior distribution 1.4 1.2 1.0 0.8 0.6 0.4 0.2 0.0 0.0 0.2 0.4 0.6 0.8 1.0 2. compute a posterior distribution from the prior and the data 5 4 3 2 1 0 0.0 0.2 0.4 0.6 0.8 1.0 3. select an interval that covers e.g. 95% of the posterior distribution 5 4 3 2 1 0 0.0 0.2 0.4 0.6 0.8 1.0 -20pt recipe 1: credible interval for the estimation of a probability I assume we carry out n independent trials, with k successes, n − k failures 1.4 1.2 choose a Beta prior for1.0 the probability; that is, select shape I 0.8 0.6 parameters a and b (for0.4 uniform prior, set a = b = 1) 0.2 0.0 0.0 0.2 0.4 0.6 0.8 1.0 5 4 then the posterior is also3 a Beta, with parameters k + a and I 2 (n − k) + b 1 0 0.0 0.2 0.4 0.6 0.8 1.0 5 4 I select a 95% interval 3 2 1 0 0.0 0.2 0.4 0.6 0.8 1.0 -20pt in Scipy I assume n_success successes out of n I recall that we use ppf to get the percentiles! I or even simpler, use interval a = 1 b = a n_fail = n - n_success posterior_distr = stats.beta(n_success + a, n_fail + b) p_low, p_high = posterior_distr.interval(0.95) -20pt example: political polling I we ask 87 randomly selected Gothenburgers about whether they support the proposed aerial tramway line over the river I 81 of them say yes I a 95% credible interval for the popularity of the tramway is 0.857 – 0.967 n_for = 81 n = 87 n_against = n - n_for p_mle = n_for / n posterior_distr = stats.beta(n_for + 1, n_against + 1) print(’ML / MAP estimate:’, p_mle) print(’95% credible interval: ’, posterior_distr.interval(0.95)) -20pt don’t forget your common sense I I ask 14 Applied Data Science students about whether they support free transporation between Johanneberg and Lindholmen, 12 of them say yes I will I get a good estimate? -20pt I frequentist confidence intervals, but also Bayesian credible intervals, are based on the t distribution I this is a bell-shaped distribution with longer tails than the normal 1.4 1.2 1.0 0.8 0.6 0.4 0.2 0.0 2.00 2.25 2.50 2.75 3.00 3.25 3.50 3.75 4.00 I the t distribution has a parameter called degrees of freedom (df) that controls the tails recipe 2: mean of a normal I we have some sample that we assume follows some normal distribution; we don’t know the mean µ or the standard deviation σ; the data points are independent I can we make an interval estimate for the parameter µ? -20pt 1.4 1.2 1.0 0.8 0.6 0.4 0.2 0.0 2.00 2.25 2.50 2.75 3.00 3.25 3.50 3.75 4.00 recipe 2: mean of a normal I we have some sample that we assume follows some normal distribution; we don’t know the mean µ or the standard deviation σ; the data points are independent I can we make an interval estimate for the parameter µ? I frequentist confidence intervals, but also Bayesian credible intervals, are based on the t distribution I this is a bell-shaped distribution with longer tails than the normal I the t distribution has a parameter called degrees of freedom (df) that controls the tails -20pt 1.4 1.2 1.0 0.8 0.6 0.4 0.2 0.0 2.00 2.25 2.50 2.75 3.00 3.25 3.50 3.75 4.00 recipe 2: mean of a normal (continued) I x_mle is the sample mean; the size of the dataset is n; the sample standard deviation is s I we consider a t distribution: posterior_distr = stats.t(loc = x_mle, scale = s/np.sqrt(n), df = n-1) I to get an interval estimate, select a 95% interval in this distribution 1.75 1.50 1.25 1.00 0.75 0.50 0.25 0.00 2.00 2.25 2.50 2.75 3.00 3.25 3.50 3.75 4.00 -20pt example I to demonstrate, we generate some data: x = pd.Series(np.random.normal(loc=3, scale=0.5, size=500)) I a 95% confidence/credible interval for the mean: mu_mle = x.mean() s = x.std() n = len(x) posterior_distr = stats.t(df=n-1, loc=mu_mle, scale=s/np.sqrt(n)) print(’estimate:’, mu_mle) print(’95% credible interval: ’, posterior_distr.interval(0.95)) -20pt alternative: estimation using bayes_mvs I SciPy has a built-in function for the estimation of mean, variance, and standard deviation: https://docs.scipy.org/doc/scipy-0.19.1/reference/generated/ scipy.stats.bayes_mvs.html I 95% credible intervals for the mean and the std: res_mean, _, res_std = stats.bayes_mvs(x, 0.95) mu_est, (mu_low, mu_high) = res_mean sigma_est, (sigma_low, sigma_high) = res_std -20pt recipe 3 (if we have time): brute force I what if we have no clue about how our measurements are distributed? I word error rate for speech recognition I BLEU for machine translation -20pt I the trick in bootstrapping – invented by Bradley Efron – is to assume that we can simulate the distribution of possible datasets by picking randomly from the original dataset the brute-force solution to interval estimates I the variation in our estimate depends on the distribution of possible datasets I in theory, we could find a confidence interval by considering the distribution of all possible datasets, but this can’t be done in practice -20pt the brute-force solution to interval estimates I the variation in our estimate depends on the distribution of possible datasets I in theory, we could find a confidence interval by considering the distribution of all possible datasets, but this can’t be done in practice I the trick in bootstrapping – invented by Bradley Efron – is to assume that we can simulate the distribution of possible datasets by picking randomly from the original dataset -20pt bootstrapping a confidence interval, pseudocode I we have a dataset D consisting of k items I we compute a confidence interval by generating N random datasets and finding the interval where most estimates end up repeat N times 4000 ∗ 3500 D = pick k items randomly from D 3000 ∗ 2500 m = estimate on D 2000 1500 store m in a list M 1000 return 2.5% and 97.5% percentiles of M 500 0 0.91 0.92 0.93 0.94 0.95 0.96 0.97 0.98 I see Wikipedia for different varieties -20pt overview interval estimates significance testing for the accuracy comparing two classifiers p-value fishing -20pt statistical significance testing for the accuracy I in the assignment, you will consider two questions: I how sure are we that the true accuracy is different from 0.80? I how sure are we that classifier A is better than classifier B? I we’ll see recipes that can be used in these two scenarios I these recipes work when we can assume that the “tests” (e.g.
Recommended publications
  • Points for Discussion
    Bayesian Analysis in Medicine EPIB-677 Points for Discussion 1. Precisely what information does a p-value provide? 2. What is the correct (and incorrect) way to interpret a confi- dence interval? 3. What is Bayes Theorem? How does it operate? 4. Summary of above three points: What exactly does one learn about a parameter of interest after having done a frequentist analysis? Bayesian analysis? 5. Example 8 from the book chapter by Jim Berger. 6. Example 13 from the book chapter by Jim Berger. 7. Example 17 from the book chapter by Jim Berger. 8. Examples where there is a choice between a binomial or a negative binomial likelihood, found in the paper by Berger and Berry. 9. Problems with specifying prior distributions. 10. In what types of epidemiology data analysis situations are Bayesian methods particularly useful? 11. What does decision analysis add to a Bayesian analysis? 1. Precisely what information does a p-value provide? Recall the definition of a p-value: The probability of observing a test statistic as extreme as or more extreme than the observed value, as- suming that the null hypothesis is true. 2. What is the correct (and incorrect) way to interpret a confi- dence interval? Does a 95% confidence interval provide a 95% probability region for the true parameter value? If not, what it the correct interpretation? In practice, it is usually helpful to consider the following graphic: Figure 1: How to interpret confidence intervals and/or credible regions. Depending on where the confidence/credible interval lies in relation to a region of clinical equivalence, different conclusions can be drawn.
    [Show full text]
  • The Bayesian New Statistics: Hypothesis Testing, Estimation, Meta-Analysis, and Power Analysis from a Bayesian Perspective
    Published online: 2017-Feb-08 Corrected proofs submitted: 2017-Jan-16 Accepted: 2016-Dec-16 Published version at http://dx.doi.org/10.3758/s13423-016-1221-4 Revision 2 submitted: 2016-Nov-15 View only at http://rdcu.be/o6hd Editor action 2: 2016-Oct-12 In Press, Psychonomic Bulletin & Review. Revision 1 submitted: 2016-Apr-16 Version of November 15, 2016. Editor action 1: 2015-Aug-23 Initial submission: 2015-May-13 The Bayesian New Statistics: Hypothesis testing, estimation, meta-analysis, and power analysis from a Bayesian perspective John K. Kruschke and Torrin M. Liddell Indiana University, Bloomington, USA In the practice of data analysis, there is a conceptual distinction between hypothesis testing, on the one hand, and estimation with quantified uncertainty, on the other hand. Among frequentists in psychology a shift of emphasis from hypothesis testing to estimation has been dubbed “the New Statistics” (Cumming, 2014). A second conceptual distinction is between frequentist methods and Bayesian methods. Our main goal in this article is to explain how Bayesian methods achieve the goals of the New Statistics better than frequentist methods. The article reviews frequentist and Bayesian approaches to hypothesis testing and to estimation with confidence or credible intervals. The article also describes Bayesian approaches to meta-analysis, randomized controlled trials, and power analysis. Keywords: Null hypothesis significance testing, Bayesian inference, Bayes factor, confidence interval, credible interval, highest density interval, region of practical equivalence, meta-analysis, power analysis, effect size, randomized controlled trial. he New Statistics emphasizes a shift of empha- phasis. Bayesian methods provide a coherent framework for sis away from null hypothesis significance testing hypothesis testing, so when null hypothesis testing is the crux T (NHST) to “estimation based on effect sizes, confi- of the research then Bayesian null hypothesis testing should dence intervals, and meta-analysis” (Cumming, 2014, p.
    [Show full text]
  • More on Bayesian Methods: Part II
    More on Bayesian Methods: Part II Rebecca C. Steorts Bayesian Methods and Modern Statistics: STA 360/601 Lecture 5 1 Today's menu I Confidence intervals I Credible Intervals I Example 2 Confidence intervals vs credible intervals A confidence interval for an unknown (fixed) parameter θ is an interval of numbers that we believe is likely to contain the true value of θ: Intervals are important because they provide us with an idea of how well we can estimate θ: 3 Confidence intervals vs credible intervals I A confidence interval is constructed to contain θ a percentage of the time, say 95%. I Suppose our confidence level is 95% and our interval is (L; U). Then we are 95% confident that the true value of θ is contained in (L; U) in the long run. I In the long run means that this would occur nearly 95% of the time if we repeated our study millions and millions of times. 4 Common Misconceptions in Statistical Inference I A confidence interval is a statement about θ (a population parameter). I It is not a statement about the sample. I It is also not a statement about individual subjects in the population. 5 Common Misconceptions in Statistical Inference I Let a 95% confidence interval for the average amount of television watched by Americans be (2.69, 6.04) hours. I This doesn't mean we can say that 95% of all Americans watch between 2.69 and 6.04 hours of television. I We also cannot say that 95% of Americans in the sample watch between 2.69 and 6.04 hours of television.
    [Show full text]
  • On the Frequentist Coverage of Bayesian Credible Intervals for Lower Bounded Means
    Electronic Journal of Statistics Vol. 2 (2008) 1028–1042 ISSN: 1935-7524 DOI: 10.1214/08-EJS292 On the frequentist coverage of Bayesian credible intervals for lower bounded means Eric´ Marchand D´epartement de math´ematiques, Universit´ede Sherbrooke, Sherbrooke, Qc, CANADA, J1K 2R1 e-mail: [email protected] William E. Strawderman Department of Statistics, Rutgers University, 501 Hill Center, Busch Campus, Piscataway, N.J., USA 08854-8019 e-mail: [email protected] Keven Bosa Statistics Canada - Statistique Canada, 100, promenade Tunney’s Pasture, Ottawa, On, CANADA, K1A 0T6 e-mail: [email protected] Aziz Lmoudden D´epartement de math´ematiques, Universit´ede Sherbrooke, Sherbrooke, Qc, CANADA, J1K 2R1 e-mail: [email protected] Abstract: For estimating a lower bounded location or mean parameter for a symmetric and logconcave density, we investigate the frequentist per- formance of the 100(1 − α)% Bayesian HPD credible set associated with priors which are truncations of flat priors onto the restricted parameter space. Various new properties are obtained. Namely, we identify precisely where the minimum coverage is obtained and we show that this minimum 3α 3α α2 coverage is bounded between 1 − 2 and 1 − 2 + 1+α ; with the lower 3α bound 1 − 2 improving (for α ≤ 1/3) on the previously established ([9]; 1−α [8]) lower bound 1+α . Several illustrative examples are given. arXiv:0809.1027v2 [math.ST] 13 Nov 2008 AMS 2000 subject classifications: 62F10, 62F30, 62C10, 62C15, 35Q15, 45B05, 42A99. Keywords and phrases: Bayesian credible sets, restricted parameter space, confidence intervals, frequentist coverage probability, logconcavity.
    [Show full text]
  • Bayesian Inference for Median of the Lognormal Distribution K
    Journal of Modern Applied Statistical Methods Volume 15 | Issue 2 Article 32 11-1-2016 Bayesian Inference for Median of the Lognormal Distribution K. Aruna Rao SDM Degree College, Ujire, India, [email protected] Juliet Gratia D'Cunha Mangalore University, Mangalagangothri, India, [email protected] Follow this and additional works at: http://digitalcommons.wayne.edu/jmasm Part of the Applied Statistics Commons, Social and Behavioral Sciences Commons, and the Statistical Theory Commons Recommended Citation Rao, K. Aruna and D'Cunha, Juliet Gratia (2016) "Bayesian Inference for Median of the Lognormal Distribution," Journal of Modern Applied Statistical Methods: Vol. 15 : Iss. 2 , Article 32. DOI: 10.22237/jmasm/1478003400 Available at: http://digitalcommons.wayne.edu/jmasm/vol15/iss2/32 This Regular Article is brought to you for free and open access by the Open Access Journals at DigitalCommons@WayneState. It has been accepted for inclusion in Journal of Modern Applied Statistical Methods by an authorized editor of DigitalCommons@WayneState. Bayesian Inference for Median of the Lognormal Distribution Cover Page Footnote Acknowledgements The es cond author would like to thank Government of India, Ministry of Science and Technology, Department of Science and Technology, New Delhi, for sponsoring her with an INSPIRE fellowship, which enables her to carry out the research program which she has undertaken. She is much honored to be the recipient of this award. This regular article is available in Journal of Modern Applied Statistical Methods: http://digitalcommons.wayne.edu/jmasm/vol15/ iss2/32 Journal of Modern Applied Statistical Methods Copyright © 2016 JMASM, Inc. November 2016, Vol. 15, No. 2, 526-535.
    [Show full text]
  • Bayestest Interval — Interval Hypothesis Testing
    Title stata.com bayestest interval — Interval hypothesis testing Description Quick start Menu Syntax Options Remarks and examples Stored results Methods and formulas Reference Also see Description bayestest interval performs interval hypothesis tests for model parameters and functions of model parameters using current Bayesian estimation results. bayestest interval reports mean estimates, standard deviations, and MCMC standard errors of posterior probabilities associated with an interval hypothesis. Quick start Posterior probability of the hypothesis that 45 < {y: cons} < 50 bayestest interval {y: cons}, lower(45) upper(50) As above, but skip every 5 observations from the full MCMC sample bayestest interval {y: cons}, lower(45) upper(50) skip(5) Posterior probability of a hypothesis about a function of model parameter {y:x1} bayestest interval (OR:exp({y:x1})), lower(1.1) upper(1.5) Posterior probability of hypotheses 45 < {y: cons} < 50 and 0 < {var} < 10 tested independently bayestest interval ({y: cons}, lower(45) upper(50)) /// ({var}, lower(0) upper(10)) As above, but tested jointly bayestest interval (({y: cons}, lower(45) upper(50)) /// ({var}, lower(0) upper(10)), joint) Posterior probability of the hypothesis {mean} = 2 for discrete parameter {mean} bayestest interval ({mean}==2) Posterior probability of the interval hypothesis 0 ≤ {mean} ≤ 4 bayestest interval {mean}, lower(0, inclusive) upper(4, inclusive) Posterior probability that the first observation of the first simulated outcome is positive (after bayesmh) bayespredict {_ysim},
    [Show full text]
  • Improvement of Bayesian Credible Interval for a Small Binomial Proportion Using Logit Transformation
    Current Research in Biostatistics Original Research Paper Improvement of Bayesian Credible Interval for a Small Binomial Proportion Using Logit Transformation 1Toru Ogura and 2Takemi Yanagimoto 1Clinical Research Support Center, Mie University Hospital, Tsu City, Mie, 514-8507, Japan 2Institute of Statistical Mathematics, Tachikawa City, Tokyo, 190-8562, Japan Article history Abstract: A novel credible interval of the binomial proportion is proposed Received: 23-10-2018 by improving the Highest Posterior Density (HPD) interval using the logit Revised: 30-10-2018 transformation. It is constructed in two steps: first the HPD interval for the Accepted: 19-11-2018 logit transformation of the binomial proportion is driven and then the corresponding credible interval of the binomial proportion is calculated by Corresponding Author: Toru Ogura the inverse logit transformation of that interval. Two characteristics of the Clinical Research Support proposed credible interval are: (i) the lower limit is over 0% when the zero Center, Mie University Hospital, events are obtained and (ii) the error probability is not large for any Tsu City, Mie, 514-8507, Japan population binomial proportion. The characteristic in (i) corresponds to the claims in the Rule of Three, which means that even if zero events are Email: [email protected] obtained from n trials, the events might occur three times in other n trials. The characteristic in (ii) is important for medical research. This is because the error probabilities of all groups do not increase even if there is a high population binomial proportion among some groups. The proposed credible interval is compared with the existing confidence and credible intervals.
    [Show full text]
  • The Support Interval
    The Support Interval Eric–Jan Wagenmakers1, Quentin F. Gronau1, Fabian Dablander1, and Alexander Etz2 1 University of Amsterdam 2 University of California, Irvine Correspondence concerning this manuscript should be addressed to: E.-J. Wagenmakers University of Amsterdam, Department of Psychology Nieuwe Achtergracht 129B 1018VZ Amsterdam, The Netherlands E–mail may be sent to [email protected]. Abstract A frequentist confidence interval can be constructed by inverting a hypothe- sis test, such that the interval contains only parameter values that would not have been rejected by the test. We show how a similar definition can be em- ployed to construct a Bayesian support interval. Consistent with Carnap’s theory of corroboration, the support interval contains only parameter val- ues that receive at least some minimum amount of support from the data. The support interval is not subject to Lindley’s paradox and provides an evidence-based perspective on inference that differs from the belief-based perspective that forms the basis of the standard Bayesian credible interval. In frequentist statistics, there is an intimate connection between the p-value null- hypothesis significance test and the confidence interval of the test-relevant parameter. Specifically, a [100×(1−α)]% confidence interval contains only those parameter values that would not be rejected if they were subjected to a null-hypothesis test with level α. That is, frequentists confidence intervals can often be constructed by inverting a null-hypothesis significance test (e.g., Natrella, 1960; Stuart, Ord, & Arnold, 1999, p. 175). Thus, the construction of the confidence interval involves, at a conceptual level, the computation of p-values.
    [Show full text]
  • Bayesian Random-Effects Meta-Analysis Using the Bayesmeta
    JSS Journal of Statistical Software MMMMMM YYYY, Volume VV, Issue II. doi: 10.18637/jss.v000.i00 Bayesian random-effects meta-analysis using the bayesmeta R package Christian R¨over University Medical Center G¨ottingen Abstract The random-effects or normal-normal hierarchical model is commonly utilized in a wide range of meta-analysis applications. A Bayesian approach to inference is very at- tractive in this context, especially when a meta-analysis is based only on few studies. The bayesmeta R package provides readily accessible tools to perform Bayesian meta-analyses and generate plots and summaries, without having to worry about computational details. It allows for flexible prior specification and instant access to the resulting posterior distri- butions, including prediction and shrinkage estimation, and facilitating for example quick sensitivity checks. The present paper introduces the underlying theory and showcases its usage. Keywords: evidence synthesis, NNHM, between-study heterogeneity. 1. Introduction 1.1. Meta-analysis arXiv:1711.08683v2 [stat.CO] 10 Oct 2018 Evidence commonly comes in separate bits, and not necessarily from a single experiment. In contemporary science, the careful conduct of systematic reviews of the available evidence from diverse data sources is an effective and ubiquitously practiced means of compiling relevant in- formation. In this context, meta-analyses allow for the formal, mathematical combination of information to merge data from individual investigations to a joint result. Along with qualita- tive, often informal assessment and evaluation of the present evidence, meta-analytic methods have become a powerful tool to guide objective decision-making (Chalmers et al. 2002; Liberati et al.
    [Show full text]
  • Estimating SARS-Cov-2 Seroprevalence And
    RESEARCH ARTICLE Estimating SARS-CoV-2 seroprevalence and epidemiological parameters with uncertainty from serological surveys Daniel B Larremore1,2*, Bailey K Fosdick3, Kate M Bubar4,5, Sam Zhang4, Stephen M Kissler6, C Jessica E Metcalf7, Caroline O Buckee8,9, Yonatan H Grad6* 1Department of Computer Science, University of Colorado Boulder, Boulder, United States; 2BioFrontiers Institute, University of Colorado Boulder, Boulder, United States; 3Department of Statistics, Colorado State University, Fort Collins, United States; 4Department of Applied Mathematics, University of Colorado Boulder, Boulder, United States; 5IQ Biology Program, University of Colorado Boulder, Boulder, United States; 6Department of Immunology and Infectious Diseases, Harvard T.H. Chan School of Public Health, Boston, United States; 7Department of Ecology and Evolutionary Biology and the Woodrow Wilson School, Princeton University, Princeton, United States; 8Department of Epidemiology, Harvard T.H. Chan School of Public Health, Boston, United States; 9Center for Communicable Disease Dynamics, Harvard T.H. Chan School of Public Health, Boston, United States Abstract Establishing how many people have been infected by SARS-CoV-2 remains an urgent priority for controlling the COVID-19 pandemic. Serological tests that identify past infection can be used to estimate cumulative incidence, but the relative accuracy and robustness of various *For correspondence: sampling strategies have been unclear. We developed a flexible framework that integrates [email protected]
    [Show full text]
  • Making Models with Bayes
    California State University, San Bernardino CSUSB ScholarWorks Electronic Theses, Projects, and Dissertations Office of aduateGr Studies 12-2017 Making Models with Bayes Pilar Olid Follow this and additional works at: https://scholarworks.lib.csusb.edu/etd Part of the Applied Statistics Commons, Multivariate Analysis Commons, Other Applied Mathematics Commons, Other Mathematics Commons, Other Statistics and Probability Commons, Probability Commons, and the Statistical Models Commons Recommended Citation Olid, Pilar, "Making Models with Bayes" (2017). Electronic Theses, Projects, and Dissertations. 593. https://scholarworks.lib.csusb.edu/etd/593 This Thesis is brought to you for free and open access by the Office of aduateGr Studies at CSUSB ScholarWorks. It has been accepted for inclusion in Electronic Theses, Projects, and Dissertations by an authorized administrator of CSUSB ScholarWorks. For more information, please contact [email protected]. Making Models with Bayes A Thesis Presented to the Faculty of California State University, San Bernardino In Partial Fulfillment of the Requirements for the Degree Master of Arts in Mathematics by Pilar Olid December 2017 Making Models with Bayes A Thesis Presented to the Faculty of California State University, San Bernardino by Pilar Olid December 2017 Approved by: Dr. Charles Stanton, Committee Chair Dr. Jeremy Aikin, Committee Member Dr. Yuichiro Kakihara, Committee Member Dr. Charles Stanton, Chair, Department of Mathematics Dr. Corey Dunn, Graduate Coordinator iii Abstract Bayesian statistics is an important approach to modern statistical analyses. It allows us to use our prior knowledge of the unknown parameters to construct a model for our data set. The foundation of Bayesian analysis is Bayes' Rule, which in its proportional form indicates that the posterior is proportional to the prior times the likelihood.
    [Show full text]
  • Bayesian Inference: Posterior Intervals
    Bayesian Inference: Posterior Intervals I Simple values like the posterior mean E[θ|X] and posterior variance var[θ|X] can be useful in learning about θ. I Quantiles of π(θ|X) (especially the posterior median) can also be a useful summary of θ. I The ideal summary of θ is an interval (or region) with a certain probability of containing θ. I Note that a classical (frequentist) confidence interval does not exactly have this interpretation. Definitions of Coverage I Defn.: A random interval L(X), U(X) has 100(1 − α)% frequentist coverage for θ if, before the data are gathered, P[L(X) < θ < U(X)|θ] = 1 − α. (Pre-experimental 1 − α coverage) I Note that if we observe X = x and plug x into our confidence interval formula, ( 0 if θ∈ / L(x), U(x) P[L(x) < θ < U(x)|θ] = 1 if θ ∈ L(x), U(x) (NOT Post-experimental 1 − α coverage) Definitions of Coverage I Defn.: An interval L(x), U(x) , based on the observed data X = x, has 100(1 − α)% Bayesian coverage for θ if P[L(x) < θ < U(x)|X = x] = 1 − α. (Post-experimental 1 − α coverage) I The frequentist interpretation is less desirable if we are performing inference about θ based on a single interval. Frequentist Coverage for Bayesian Intervals I Hartigan (1966) showed that for standard posterior intervals, an interval with 100(1 − α)% Bayesian coverage will have P[L(X) < θ < U(X)|θ] = (1 − α) + n, where |n| < a/n for some constant a.
    [Show full text]