University of Maryland Automatically Adapting Sampling Rates to Minimize Overhead Geoff Stoker.

Slides:



Advertisements
Similar presentations
Probability models- the Normal especially.
Advertisements

II. Potential Errors In Epidemiologic Studies Random Error Dr. Sherine Shawky.
Topics
Sampling: Final and Initial Sample Size Determination
Introduction to Confidence Intervals using Population Parameters Chapter 10.1 & 10.3.
Hypothesis Testing I 2/8/12 More on bootstrapping Random chance
Regression Analysis Once a linear relationship is defined, the independent variable can be used to forecast the dependent variable. Y ^ = bo + bX bo is.
Chapter 11- Confidence Intervals for Univariate Data Math 22 Introductory Statistics.
Confidence Intervals Underlying model: Unknown parameter We know how to calculate point estimates E.g. regression analysis But different data would change.
Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,
Copyright 2004 David J. Lilja1 Errors in Experimental Measurements Sources of errors Accuracy, precision, resolution A mathematical model of errors Confidence.
Adaptive Sampling for Sensor Networks Ankur Jain ٭ and Edward Y. Chang University of California, Santa Barbara DMSN 2004.
Parameter Estimation Chapter 8 Homework: 1-7, 9, 10.
Sampling Methods and Sampling Distributions Chapter.
1 A heart fills with loving kindness is a likeable person indeed.
Ka-fu Wong © 2003 Chap 9- 1 Dr. Ka-fu Wong ECON1003 Analysis of Economic Data.
Typical Sample Sizes Incidence Rate Calculation.
C82MCP Diploma Statistics School of Psychology University of Nottingham 1 Overview Central Limit Theorem The Normal Distribution The Standardised Normal.
Population Proportion The fraction of values in a population which have a specific attribute p = Population proportion X = Number of items having the attribute.
Estimation Goal: Use sample data to make predictions regarding unknown population parameters Point Estimate - Single value that is best guess of true parameter.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 9 Section 1 – Slide 1 of 39 Chapter 9 Section 1 The Logic in Constructing Confidence Intervals.
© 2002 Thomson / South-Western Slide 8-1 Chapter 8 Estimation with Single Samples.
LECTURE 17 THURSDAY, 2 APRIL STA291 Spring
Chapter 7 Statistical Inference: Confidence Intervals
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 8-1 Confidence Interval Estimation.
Chapter 8 Introduction to Inference Target Goal: I can calculate the confidence interval for a population Estimating with Confidence 8.1a h.w: pg 481:
Estimation Bias, Standard Error and Sampling Distribution Estimation Bias, Standard Error and Sampling Distribution Topic 9.
Biostatistics IV An introduction to bootstrap. 2 Getting something from nothing? In Rudolph Erich Raspe's tale, Baron Munchausen had, in one of his many.
Choosing Sample Size for Knowledge Tracing Models DERRICK COETZEE.
Analytic Models and Empirical Search: A Hybrid Approach to Code Optimization A. Epshteyn 1, M. Garzaran 1, G. DeJong 1, D. Padua 1, G. Ren 1, X. Li 1,
Slide 1 © 2002 McGraw-Hill Australia, PPTs t/a Introductory Mathematics & Statistics for Business 4e by John S. Croucher 1 n Learning Objectives –Identify.
Highlighting Standards for Mathematical Practice in an Intro Stats Course by Fides Ushe Springfield College, MA.
STA Lecture 181 STA 291 Lecture 18 Exam II Next Tuesday 5-7pm Memorial Hall (Same place) Makeup Exam 7:15pm – 9:15pm Location TBA.
ICOM 6115: Computer Systems Performance Measurement and Evaluation August 11, 2006.
Determination of Sample Size: A Review of Statistical Theory
Module 14: Confidence Intervals This module explores the development and interpretation of confidence intervals, with a focus on confidence intervals.
STA Lecture 191 STA 291 Lecture 19 Exam II Next Tuesday 5-7pm Memorial Hall (Same place as exam I) Makeup Exam 7:15pm – 9:15pm Location CB 234.
© 2013 Pearson Education, Inc. Active Learning Lecture Slides For use with Classroom Response Systems Introductory Statistics: Exploring the World through.
6.1 Inference for a Single Proportion  Statistical confidence  Confidence intervals  How confidence intervals behave.
Céline Scheidt and Jef Caers SCRF Affiliate Meeting– April 30, 2009.
Introduction to Confidence Intervals using Population Parameters Chapter 10.1 & 10.3.
Buffer-pool aware Query Optimization Ravishankar Ramamurthy David DeWitt University of Wisconsin, Madison.
Chapter 8 Estimating with Confidence.  A point estimator is a statistic that provides an estimate of a population parameter. The value of that statistic.
CONFIDENCE INTERVALS.
Modeling Virtualized Environments in Simalytic ® Models by Computing Missing Service Demand Parameters CMG2009 Paper 9103, December 11, 2009 Dr. Tim R.
One Sample Mean Inference (Chapter 5)
Ch 8 Estimating with Confidence 8.1: Confidence Intervals.
Lecturer’s desk INTEGRATED LEARNING CENTER ILC 120 Screen Row A Row B Row C Row D Row E Row F Row G Row.
10.1 – Estimating with Confidence. Recall: The Law of Large Numbers says the sample mean from a large SRS will be close to the unknown population mean.
Understanding CI for Means Ayona Chatterjee Math 2063 University of West Georgia.
Topics Semester I Descriptive statistics Time series Semester II Sampling Statistical Inference: Estimation, Hypothesis testing Relationships, casual models.
Chapter 12 Inference for Proportions AP Statistics 12.2 – Comparing Two Population Proportions.
Lab Chapter 9: Confidence Interval E370 Spring 2013.
Margin of Error S-IC.4 Use data from a sample survey to estimate a population mean or proportion; develop a margin of error through the use of simulation.
Sample Size and CI’s for the Population Mean ( .
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 8: Estimating with Confidence Section 8.1 Confidence Intervals: The.
Pairwise comparisons: Confidence intervals Multiple comparisons Marina Bogomolov and Gili Baumer.
Towards a Methodology for Deliberate Sample-Based Statistical Performance Analysis Geoff Stoker.
Inferences Based on a Single Sample
Estimating with PROBE II
CHAPTER 22: Inference about a Population Proportion

Sample Size and Accuracy
Estimation Goal: Use sample data to make predictions regarding unknown population parameters Point Estimate - Single value that is best guess of true parameter.
Estimating the Value of a Parameter Using Confidence Intervals
Confidence Interval.
Chapter 8: Estimating with Confidence
Chapter 12 Inference for Proportions
The steps of scientific computation
Confidence Intervals Usually set at 95 % What does that mean ?
Presentation transcript:

University of Maryland Automatically Adapting Sampling Rates to Minimize Overhead Geoff Stoker

University of Maryland Sample of Sampling Practices 200 samples/sec [T09] 20,000 samples/sec [A05] 2.5% of all memory operations [O05] 15 sec periods of detailed CPU analysis; 10 sec periods for memory [R08] 1,000,000 consecutive memory accesses – then skip 9,000,000 [W08] 2

University of Maryland Intuition 3 Performance (time) actual program performance Perturbation Error Measurement Error Best Possible Measurement # of samples

University of Maryland Mathematical Model How much run time is attributable to foo() ? T(n) = measured time when taking n samples p = proportion of given function o = overhead cost per sample T a = running time of entire program z = confidence level z value 4

University of Maryland Mathematical Model 5

University of Maryland Example T a = may not know it, so best guess z = 1.96 for 95% CL p = probably don’t know it, so use.15 –Why? 0<=p<=1; p(1-p) ranges ; when p=.15, p(1-p) is.1275, a middle value o = 250 µseconds (empirical tool use) 6

University of Maryland Example Continued Time in seconds, # of samples to best measurement is: –T a = 300, n = 19,863 –T a = 600, n = 31,531 –T a = 900, n = 41,317 Observation: sampling rate decreases non-linearly as time increases –T a = 300, sample rate = 66/s –T a = 600, sample rate = 53/s –T a = 900, sample rate = 46/s 7

University of Maryland Sample Size vs Accuracy 8 One order of magnitude accuracy change Two orders of magnitude sample size change

University of Maryland Adapting Sampling Rates Prior to a performance analysis run –Calculate “best” sampling rate per parameters of run Confidence level Confidence interval Estimated execution time Sampling overhead During a performance analysis run –Adjust the sampling rate based on intermediate analysis Function taking largest proportion of execution time Total observed execution time 9

University of Maryland Example Simulation Result 10 Best Possible Measurement Measured value for target function (time) # of samples

University of Maryland Future Work/Conclusion Finish tool construction Generate results –Validate simulation results on test programs –Test technique with real programs Explore dynamic overhead calculation Questions? 11

University of Maryland BACK-UP SLIDES 12

University of Maryland Jain vs Lilja Sample size for determining proportions –J: r is CI for p/100 –L: r is CI for ci/p J, The Art of Computer Systems Performance Analysis, 1991, pg 217. L, Measuring Computer Performance, 2000, pg

University of Maryland Intuition Refined 14 Best Possible Measurement