Computer Performance Modeling Dirk Grunwald Spring ‘96 Jain, Chapter 12 Summarizing Data With Statistics.

Slides:



Advertisements
Similar presentations
Probability Probability Principles of EngineeringTM
Advertisements

Chapter 2 Concepts of Prob. Theory
Chapter 2 Probability. 2.1 Sample Spaces and Events.
Probability Theory Part 1: Basic Concepts. Sample Space - Events  Sample Point The outcome of a random experiment  Sample Space S The set of all possible.
7 Probability Experiments, Sample Spaces, and Events
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
Chapter 6: Probability : The Study of Randomness “We figured the odds as best we could, and then we rolled the dice.” US President Jimmy Carter June 10,
NIPRL Chapter 1. Probability Theory 1.1 Probabilities 1.2 Events 1.3 Combinations of Events 1.4 Conditional Probability 1.5 Probabilities of Event Intersections.
Probability Probability Principles of EngineeringTM
Chapter 4 Probability.
Introduction to Probability and Statistics
Chapter 2: Probability.
Probability Distributions
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
Probability Review ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar.
© Buddy Freeman, 2015Probability. Segment 2 Outline  Basic Probability  Probability Distributions.
Lecture II.  Using the example from Birenens Chapter 1: Assume we are interested in the game Texas lotto (similar to Florida lotto).  In this game,
Engineering Probability and Statistics
1 Performance Evaluation of Computer Systems By Behzad Akbari Tarbiat Modares University Spring 2009 Introduction to Probabilities: Discrete Random Variables.
1 Chapter 12 Introduction to Statistics A random variable is one in which the exact behavior cannot be predicted, but which may be described in terms of.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 2 Probability.
Chapter 4 Probability See.
Chapter 1 Probability and Distributions Math 6203 Fall 2009 Instructor: Ayona Chatterjee.
10/1/20151 Math a Sample Space, Events, and Probabilities of Events.
Chapter 8 Probability Section R Review. 2 Barnett/Ziegler/Byleen Finite Mathematics 12e Review for Chapter 8 Important Terms, Symbols, Concepts  8.1.
Sample space The set of all possible outcomes of a chance experiment –Roll a dieS={1,2,3,4,5,6} –Pick a cardS={A-K for ♠, ♥, ♣ & ♦} We want to know the.
Ex St 801 Statistical Methods Probability and Distributions.
Topic 2 – Probability Basic probability Conditional probability and independence Bayes rule Basic reliability.
AP Statistics Chapter 6 Notes. Probability Terms Random: Individual outcomes are uncertain, but there is a predictable distribution of outcomes in the.
Engineering Probability and Statistics Dr. Leonore Findsen Department of Statistics.
CPSC 531: Probability Review1 CPSC 531:Probability & Statistics: Review Instructor: Anirban Mahanti Office: ICT Class.
Random Experiment Random Variable: Continuous, Discrete Sample Space: S Event: A, B, E Null Event Complement of an Event A’ Union of Events (either, or)
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Review of Exam I Sections Jiaping Wang Department of Mathematical Science 02/18/2013, Monday.
Probability The calculated likelihood that a given event will occur
Chapter 4 Probability ©. Sample Space sample space.S The possible outcomes of a random experiment are called the basic outcomes, and the set of all basic.
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
Computing Fundamentals 2 Lecture 6 Probability Lecturer: Patrick Browne
STA347 - week 31 Random Variables Example: We roll a fair die 6 times. Suppose we are interested in the number of 5’s in the 6 rolls. Let X = number of.
PROBABILITY IN OUR DAILY LIVES
확률및공학통계 (Probability and Engineering Statistics) 이시웅.
Probability You’ll probably like it!. Probability Definitions Probability assignment Complement, union, intersection of events Conditional probability.
Topic 2 – Probability Basic probability - pages Conditional probability and independence - pages Bayes rule - pages 72 -
2. Introduction to Probability. What is a Probability?
Natural Language Processing Giuseppe Attardi Introduction to Probability IP notice: some slides from: Dan Jurafsky, Jim Martin, Sandiway Fong, Dan Klein.
Probability (outcome k) = Relative Frequency of k
Copyright © 2006 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Review of Statistics I: Probability and Probability Distributions.
Random Variables Example:
Engineering Probability and Statistics Dr. Leonore Findsen Department of Statistics.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
Chapter 10 – Data Analysis and Probability 10.7 – Probability of Compound Events.
Probability. Randomness When we produce data by randomized procedures, the laws of probability answer the question, “What would happen if we did this.
Chapter 2: Probability. Section 2.1: Basic Ideas Definition: An experiment is a process that results in an outcome that cannot be predicted in advance.
2.5 Additive Rules: Theorem 2.10: If A and B are any two events, then: P(A  B)= P(A) + P(B)  P(A  B) Corollary 1: If A and B are mutually exclusive.
1 Math 10 Part 2 Probability © Maurice Geraghty 2015.
PROBABILITY 1. Basic Terminology 2 Probability 3  Probability is the numerical measure of the likelihood that an event will occur  The probability.
6.2 – Probability Models It is often important and necessary to provide a mathematical description or model for randomness.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Review of Final Part I Sections Jiaping Wang Department of Mathematics 02/29/2013, Monday.
Conditional Probability 423/what-is-your-favorite-data-analysis-cartoon 1.
L Basic Definitions: Events, Sample Space, and Probabilities l Basic Rules for Probability l Conditional Probability l Independence of Events l Combinatorial.
Math a - Sample Space - Events - Definition of Probabilities
What is Probability? Quantification of uncertainty.
Natural Language Processing
Probability.
CSCI 5832 Natural Language Processing
Probability Principles of Engineering
Probability Principles of Engineering
Welcome to the wonderful world of Probability
Probability Probability Principles of EngineeringTM
Probability Principles of Engineering
Business and Economics 7th Edition
Presentation transcript:

Computer Performance Modeling Dirk Grunwald Spring ‘96 Jain, Chapter 12 Summarizing Data With Statistics

Review of Statistics u A sample space is the set of all possible outcomes of an experiment l Time it takes to deliver a packet l The number of “hops” a packet travels in a network u From a set of experiments, we draw a set of elements of a sample space. l The set may be discrete and possible countably infinite (i.e., maps onto the natural numbers) Discrete - number of cars in Colorado Countably Infinite - number of cars that may ever exist l The set may be continuous or drawn from a continuum Sulfur-dioxide emissions per gallon of gas used u An event is a subset of an appropriate sample space l The set of all packets taking less than 5ms to be delivered l The set of all packets that travel exactly three hops

Operations on Events u Given two sets, A & B, in a sample space U l Complement All elements in U not in A l Union All elements in either A or B l Intersection All elements in both A and B l Difference All elements in A that are not in B u Example: l The sample space is all network packets. l Set A is the set of all IP packets, set B is the set of all TCP packets l Thus, A - B is the set of all IP packets that are not TCP packets l Note that A & B contain multiple samples from the sample space

Additive Set Formulas u From a sample S of 500 machine parts l The set I are improperly assembled l The set D contain defective parts u N(S) is the number of elements in S, or the cardinality of S. u Given u We know N(I) = , N(I’) = N(S) - N(I) = 470 u N(D) = 15, N(D’) = N(S) - N(I) = 485 u Given that the sets are mutually exclusive, we can use the set addition formula

Sets and Probability u Given an event A in a sample space S, the probability of A occurring is an additive set function P that satisfies l P(S) = 1 l If A and B are any mutually exclusive events in S, then u A probability is a relative frequency l If the probability that a network packet latency is less than 100ms is 84%, then 84% of the packets that arrive will have a latency of less than 100ms. l But, given a sample of 100 packets, we do not expect precisely 84 packets to arrive in less than 100ms. u You can also view it as a subjective measure l If you’re willing to bet $A vs. $B concerning an outcome, you believe in that outcome with probability

Probability is an Additive Set Function u Since probability is additive, we can conclude.. u Thus, our previous example indicated l N(I) = 30, N(I’) = 470P(I) = 30/500 or 0.06, P(I’) = 0.94 l N(D) = 15, N(D’) = 485P(D) = 0.03, P(D’) = 0.97 l Likewise,

Conditional Probability u A conditional probability defines the likelihood of an event given that another event has occurred. u Example: The probability that an item is defective given that it is improperly assembled l thus, given our previous data P(D|I) = 0.02 / 0.03 u 1/3 of the components that are improperly assembled contain a defective component u Two events are independent if P(A|B) = P(A) l But, if P(A|B) = P(A), then P(B|A) = P(B) u We can use this to conclude the law of multiplication l And, if A and B are independent,

Applications of Conditional Probability u Given a deck of 52 cards, l You draw a specific card (4 Hearts) with probability 1/52 l You replace that card and you draw another card l P(4H) = 1/52 on the first draw, P 2 (4H) = 1/52 on 2nd draw l The probability of drawing 4H twice from the space of all two-card draws is P(4H) * P 2 (4H), or 1/169 u If you don’t return the card, P(4H) for the second draw is obviously 0. u What’s the probability of drawing a 4H and a 3H if you don’t return the cards? l P(4H) = 1/52, P 2 (3H) = 1/51 on second draw l But, you can also draw 3H followed by 4H l Total is P(4H) * P 2 (3H) + P(3H) + P 2 (4H) = 2 / 2652

The Rule of Elimination u Example: l We buy voltage regulators from two suppliers l We buy 3/4 of our supplies from B 1, and they have a 5% failure rate l We buy 1/4 of our supplies from B 2, and they have a 20% failure rate l What is the overall failure rate? l We use fact that and the multiplication law

The Rule of Bayes u Given n mutually exclusive alternatives where one must occur, the rule of elimination states u What if we want to know the probability that a failing part came from B r ? u Use the rules.. u And we can derive bayes rule

Example of Bayes Rule u What is the probability that a voltage regular that fails came from supplier B 2 ? u The probabilities P(B i ) are called the priors or a priori probabilities. u We’ll talk more about Bayesian inference later

Random Variables u A random variable can be thought of as a function defined over the elements of a sample space u A probability distribution function (pdf) describes the probability that a specific sample will be selected u Example: l f(x) = 1/6 for x = 1, …, 6 l gives the probability distribution function for the number of points we roll with a balanced die. u We require u A cumulative distribution function (cdf) such as F(x) defines the probability that a random variable has a value less than or equal to x.

Sample Discrete Distributions

A Sample Discrete Distribution The Binomial Distribution u Many tests deal with repeated trials l What’s the probability that 1 in 5 rivets will rupture? l The probability that 9 of 10 vacuum tubes will last 1000 hours? u If these trials obey the following l There are only two possible out-comes l The probability of a success is the same for each trial l There are n trials, where n is constant l The n trials are independent Ø Then, this is known as a Bernoulli trial u A series of Bernoulli trials define a binomial distribution l Example: 0.001% of writes to a disk drive result in a recoverable error. What is the probability that 4 out of 1000 writes to a number of drives will result in a recoverable error?

Deriving the Binomial Distribution u Ordered Trials: given a sequence of n trials of which x are “successful”, with probability of success p l SSS…SSSSFFFF...FFFF x n-x l Multaplicative rule shows the probability of this sequence is p x (1-p) n-x u Unordered Trials: l There are “n choose x” ways to “shuffle” a given string of S & F’s l Thus, the probability of having x successful trials from n trials in any order is

Example of Binomial Distribution u Probability of a disk write error is 0.001%, or p= l The probability that exactly four of 1000 writes result in an error is u The probability that at least four failures occur is u Which can be reformulated as

Identities for Binomial Distributions u Given our definition for b(k;n,p), we can define a cumulative distribution u And several identities