Computer Architecture Experimental Design

Slides:



Advertisements
Similar presentations
Assumptions underlying regression analysis
Advertisements

T-test Charmaine Bird.
Design of Experiments Lecture I
Computational Statistics. Basic ideas  Predict values that are hard to measure irl, by using co-variables (other properties from the same measurement.
Displaying data and calculations  How many trials have been performed?  Were there enough to satisfy the IB Internal Assessment criteria? FYI: IB wants.
Experiments and Variables
Copyright © 2009 Pearson Education, Inc. Chapter 29 Multiple Regression.
FTP Biostatistics II Model parameter estimations: Confronting models with measurements.
Measurements and Errors Introductory Lecture Prof Richard Thompson 4 th October 2007.
Regression Analysis Module 3. Regression Regression is the attempt to explain the variation in a dependent variable using the variation in independent.
Regression Analysis Once a linear relationship is defined, the independent variable can be used to forecast the dependent variable. Y ^ = bo + bX bo is.
Copyright 2004 David J. Lilja1 Errors in Experimental Measurements Sources of errors Accuracy, precision, resolution A mathematical model of errors Confidence.
Correlation 2 Computations, and the best fitting line.
IB Internal Assessment Design. Designing an Experiment Formulate a research question. Read the background theory. Decide on the equipment you will need.
Linear Trend Lines Y t = b 0 + b 1 X t Where Y t is the dependent variable being forecasted X t is the independent variable being used to explain Y. In.
What are the objectives of Unit 3? To learn how to critically analyze data using graphs. To learn how to critically analyze data using graphs. To learn.
Linear Trend Lines = b 0 + b 1 X t Where is the dependent variable being forecasted X t is the independent variable being used to explain Y. In Linear.
Multivariate Analysis. One-way ANOVA Tests the difference in the means of 2 or more nominal groups Tests the difference in the means of 2 or more nominal.
+ Chapter 12: More About Regression Section 12.1 Inference for Linear Regression.
Simple Linear Regression. The term linear regression implies that  Y|x is linearly related to x by the population regression equation  Y|x =  +  x.
Linear Trend Lines = b 0 + b 1 X t Where is the dependent variable being forecasted X t is the independent variable being used to explain Y. In Linear.
Analysis of Residuals ©2005 Dr. B. C. Paul. Examining Residuals of Regression (From our Previous Example) Set up your linear regression in the Usual manner.
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
Summary Part 1 Measured Value = True Value + Errors = True Value + Errors Errors = Random Errors + Systematic Errors How to minimize RE and SE: (a)RE –
Significant Figures Always record data as accurately as you can (as many sig. figs. as method allows) The last digit of the value that you record should.
Internal Assessment InvestigationAssessmentCriteria.
Physical Science and You Chapter One: Studying Physics and Chemistry Chapter Two: Experiments and Variables Chapter Three: Key Concepts in Physical Science.
Quiz 2.
Topic 11 Measurement and data processing
PSY 626: Bayesian Statistics for Psychological Science
SUR-2250 Error Theory.
REGRESSION G&W p
Regression.
How do you assign an error to a measurement?
Have you got your workbook with you
Normal Distribution.
Computations, and the best fitting line.
PROCESSES OF SCIENTIFIC INQUIRY
Statistics for the Social Sciences
BUSINESS MATHEMATICS & STATISTICS.
Prepared by Vince Zaccone
Lecture 2d1: Quality of Measurements
Break and Noise Variance
A Brief Introduction of RANSAC
Regression.
Chapter 8: Inference for Proportions
Central Limit Theorem, z-tests, & t-tests
Forecasting The Future of Movies
Theory of Measurements and Errors
PSY 626: Bayesian Statistics for Psychological Science
Correlation and Regression
Adjustment of Temperature Trends In Landstations After Homogenization ATTILAH Uriah Heat Unavoidably Remaining Inaccuracies After Homogenization Heedfully.
Introduction to Instrumentation Engineering
Statistics for the Social Sciences
Warm up 8/17-18 What is a hypothesis?.
CHAPTER 22: Inference about a Population Proportion
RAM XI Training Summit October 2018
6.7 Practical Problems with Curve Fitting simple conceptual problems
Regression Chapter 8.
When You See (This), You Think (That)
How Science Works The following PowerPoint is aimed at enhancing skills learnt at GCSE when performing experiments. Pupils must commit the terminology.
1. Homework #2 (not on posted slides) 2. Inferential Statistics 3
SIMPLE LINEAR REGRESSION
Regression Forecasting and Model Building
The Physical Sciences. The Physical Sciences Chapter Two: Science and Measurement 2.1 Inquiry and the Scientific Method 2.2 Distance, Time, and Speed.
Diagnostics and Remedial Measures
GRAPHING RULES, DATA ANALYSIS
KISS …Keep It Simple: .. and get accepted!
F test for Lack of Fit The lack of fit test..
Evaluation David Kauchak CS 158 – Fall 2019.
Presentation transcript:

Computer Architecture Experimental Design CA406 Computer Architecture Experimental Design

Experimental Design Good design Hypothesis - essential starting point Saves Time Gets better results! Hypothesis - essential starting point Form one before doing the experiment Use theory to predict results Examples Time for this program will be proportional to the size of the problem O (n) running time

Theoretical Prediction Example Time is linear in size of problem Time (sec) Time Complexity O(n) Size of problem - n

Theoretical Prediction but ... Time will increase sharply when cache is full Time (sec) Running time jumps! Data fits in cache Cache overflows Size of problem - n

Refine the prediction! Time will increase sharply when cache is full How sharply? More likely! You can probably estimate the shape of this curve Time (sec) Data fits in cache Cache overflows Size of problem - n

Why not just do some measurements? Experiments are always subject to errors Expectation Sharp jump here Time (sec) Experiment Measure up to here Data fits in cache Cache overflows Size of problem - n

Why not just do some measurements? Experiments are always subject to errors Actual measurements No clear trend, so fit a straight line No sharp jump? \ No cache! Time (sec) Data fits in cache Cache overflows Size of problem - n

Why not just do some measurements? Make sure to carry the experiment far enough! but .. Measure as far as here and it’s clear! Time (sec) Measure up to here No sharp jump but sharp increase in slope as predicted! Data fits in cache Cache overflows Size of problem - n

Cache Problem Real Shape! From simple model L1 Cache Size

Errors Random errors Repeat a measurement Deviations from mean are random errors Limited clock resolution can produce these dt = 0.8*(timer resolution) randomly reported as 0 or 1

Errors Systematic errors Error Reduction Results are perturbed in one direction OS will interrupt All times are lengthened Error Reduction Reduce quantisation effects Ensure dt >> timer resolution Make several measurements Use minimum? Still likely to have OS contribution! Use mean? Includes average amount of OS overhead

Generating conclusions Estimate errors first Add error bars before fitting curves Same data - different errors Only a curve fits! A linear relation is possible!

Generating conclusions If your original hypothesis suggested a linear relation, failure to adequately allow for error would have sent you off on a fruitless search for a new hypothesis! Only a curve fits! A linear relation is possible!

Transform Data Use your hypothesis Usually transform data to linear form O(n2) algorithm Running time for problem size n, t(n) = c n2 Divide experimental times, t(n) by n2 constant, c Use the computer to generate a table of normalised data It’s very good at these simple, boring tasks! It’ll also print out a neat table for your report!

Presenting data Trap - Computer calculates result to 6 significant figures Put these numbers directly in your report Average time = 4.53456 s implies 4.53456 +/- 0.000005 s Obviously ridiculous! Accuracy of 1% would be excellent here Average time = 4.5 s implies 4.5 +/- 0.05 s Present a realistic number of significant figures in your report!