ISE 2: PROBABILITY And STATISTICS

3y ago
126 Views
2 Downloads
733.63 KB
54 Pages
Last View : 21d ago
Last Download : 3m ago
Upload by : Cade Thielen
Transcription

ISE 2: PROBABILITY and STATISTICSLecturerDr Emma McCoy,Room 522, Department of Mathematics, Huxley Building.Phone: X 48553email: e.mccoy@ic.ac.ukWWW: http://www.ma.ic.ac.uk/ ejm/ISE.2.6/Course Outline1. Random experiments2. Probability axioms of probability elementary probability results conditional probability the law of total probability Bayes theorem3. Systems reliability4. Discrete random variables Binomial distribution Poisson distribution5. Continuous random variables uniform distribution1

Exponential distribution Normal distribution6. Statistical Analysis Point and interval estimation7. Reliability and hazard ratesTextbooksStatistics for the engineering and computer sciences, second edition.William Mendenhall and Terry Sincich, Dellen Publishing Company.Probability concepts in engineering planning and design. AlfredoAng and Wison Tang, Wiley.2

1Introduction – Random experimentsIn general a statistical analysis may consist of: Summarization of data. Prediction. Decision making. Answering a specific question of interest.We may view a statistical analysis as attempting to separate the signal inthe data from the noise.The accompanying handout of datasets gives two examples of types of datathat we may be interested in.1.1Methods of summarizing dataDataset 1We need to find a simple model to describe the variability that we see.This will allow us to answer questions of interest such as: What is the probability that 3 or more syntax errors will be present inanother module?Here the number of syntax errors is an example of a discrete random variable– it can only take one of a countable number of values.Other examples of discrete random variables include: The toss of a coin where the outcome is Head/Tail.3

No of defective items found when 10 components are selected and tested.Can we summarize dataset 1 in a more informative manner ?Frequency Table:NUMBER OF 0.067 300.0TOTAL301.0So referring to the question of interest described above the observed proportionof 3 or more syntax errors is 0.067. This is an estimate of the ‘true’ probability.We envisage an infinite number of modules – this is the population. We haveobtained a sample of size 30 from this population. We are really interested inthe population probability of 3 or greater syntax errors.We are interested in finding those situations in which we can find ‘good’estimates.Frequency diagram (bar chart)A frequency diagram provides a graphical representation of the data. If weplot the proportions against number of syntax errors then we have an estimateof the probability distribution from which the data have been generated.4

1510frequency5001234errorsFigure 1: Frequency diagram for dataset 1Dataset 2Each value is a realization of what is known as a continuous random variable.One assumption we may make is that there is no trend with time. The valueschange from day to day in a way which we cannot predict – again we need to finda model for the downloading time. For example we assume that the downloadingtimes are in general close to some value μ but there is some unpredictablevariability about this value which produces the day-to-day values. The waysuch variability is described is via a probability distribution. For example we mayassume that the day-to-day values can be modelled by a probability distributionwhich is symmetric about μ. We then may wish to estimate the value of μ.Questions of interest here may include: What is our best guess (or estimate) of the average downloading time ?5

What sort of spread around the average value would we expect ?We can summarize the data more informatively using a histogram.A histogram is simply a grouping of the data into a number of boxes and isan estimate of the probability distribution from which the data arise.This allows us to understand the variability more easily – for example are the051015202530data symmetric or skewed? Are there any outlying (or extreme) observations?45678downloading times (seconds)Figure 2: Histogram of Dataset 21.2Summary statisticsAny quantity which is calculated from the data is known as a statistic. Statisticscan be used to summarize a given dataset. Most simple statistics are measuresof either the location or the spread of the data.6

0.40.30.2PROBABILITY DENSITY0.10.0-3-2-10123X0.40.20.0PROBABILITY DENSITY0.6Figure 3: Normal distribution0246810XFigure 4: A right-skewed distribution7

Suppose that n measurements have been taken on the random variable underconsideration (eg number of syntax errors, downloading time).Denote these measurements by x1 , x2 , . . . , xn . So x1 is the first observation,x2 is the second observation, etc.Definition: the sample mean (or sample expected value) of the observations isgiven by:x1 x2 . xnx nPni 1xin(1)For dataset 1 we havex1 1, x2 0, , x30 0 and x 24 0.830(2)For dataset 2 we havex1 6.36, x2 6.73, , x100 5.18 and x 5.95Definition: the sample median of a sample of n measurements is the middlenumber when the measurements are arranged in ascending order.If n is odd then the sample median is given by measurement x(n 1)/2 .If n is even then the sample median is given by (xn/2 x(n/2) 1 )/2.ExamplesFor dataset 1 we have the value 0 occurring 14 times and the value 1 occurring10 times and so the median is the value 1. – for data of these type the samplemedian is not such a good summary of a ‘typical’ value of the data.For dataset 2 the sample median is given by the sample average of the 50thand 51st observations. In this case both of these values are 5.88 and so themedian is 5.88 also.8

When the distribution from which the data has arisen is heavily skewed (thatis, not symmetric) then the median may be thought of as ‘a more typical value’:ExampleYearly earnings of maths graduates (in thousands of pounds):24 19 18 23 22 19 16 55For these data the sample mean is 24.5 thousand pounds whilst the samplemedian is 20.5 thousand pounds. Hence the latter is a more representativevalue.Definition: the sample mode is that value of x which occurs with the greatestfrequency.ExamplesFor dataset 1 the sample mode is the value 0.For the yearly earnings data the sample mode is 19.All of these sample quantities we have defined are estimates of the corresponding population characteristics.Note that for a symmetric probability distribution the mean, the medianand the mode are the same.As well as a measure of the location we might also want a measure of thespread of the distribution.Definition: the sample variance s2 is given bys2 1n 1Pn x)2 .Pnx2i nx2 ]i 1 (xiIt is easier to use the formula:s2 1n 1[i 19

The sample standard deviation s is given by the square root of the variance.The standard deviation is easier to interpret as it is on the same scale as theoriginal measurements.As a measure of spread it is most appropriate to think about the standarddeviation for a symmetric distribution (such as the normal).10

2ProbabilityAs we saw in Section 1 we are required to propose probabilistic models fordata. In this chapter we will look at the theory of probability. Probabilitiesare defined upon events and so we first look at set theory and describe variousoperations that can be carried out on events.2.12.1.1Set theoryThe sample spaceThe collection of all possible outcomes of an experiment is called the samplespace of the experiment. We will denote the sample space by S.Examples:Dataset 1: S {0, 1, 2, .}Dataset 2: S {x : x 0}Toss of a coin: S {H, T }Roll of a six-sided die: S {1, 2, 3, 4, 5, 6}.2.1.2Relations of set theoryThe statement that a possible outcome of an experiment s is a member of S isdenoted symbolically by the relation s S.When an experiment has been performed and we say that some event hasoccurred then this is shorthand for saying that the outcome of the experimentsatisfied certain conditions which specified that event. Any event can be regarded as a certain subset of possible outcomes in the sample space S.11

Example: roll of a die. Denote by A the event that an even number is obtained.Then A is represented by the subset A {2, 4, 6}.It is said that an event A is contained in another event B if every outcomethat belongs to the subset defining the event A also belongs to the subset B.We write A B and say that A is a subset of B. Equivalently, if A B, wemay say that B contains A and may write B A.Note that A S for any event A.Example: roll of a die, suppose A is the event of an even number being obtainedand C is the event that a number greater than 1 is obtained. Then A {2, 4, 6}and C {2, 3, 4, 5, 6} and A C.Example 2.12.1.3The empty setSome events are impossible. For example when a die is rolled it is impossibleto obtain a negative number. Hence the event that a negative number will beobtained is defined by the subset of S that contains no outcomes. This subsetof S is called the empty set and is denoted by the symbol φ.Note that every set contains the empty set and so φ A S.2.1.4Operations of set theoryUnionsIf A and B are any 2 events then the union of A and B is defined to be theevent containing all outcomes that belong to A alone, to B alone or to both Aand B. We denote the union of A and B by A B.12

ABFor any events A and B the union has the following properties:A φ AA A AA S SA B B AThe union of n events A1 , A2 , , An is defined to be the event that containsall outcomes which belong to at least one of the n events.Notation: A1 A2 An or ni 1 Ai .IntersectionsIf A and B are any 2 events then the intersection of A and B is defined to bethe event containing all outcomes that belong both to A and to B. We denotethe intersection of A and B by A B.13

ABFor any events A and B the intersection has the following properties:A φ φA A AA S AA B B AThe intersection of n events A1 , A2 , , An is defined to be the event that contains all outcomes which belong to all of the n events.Notation: A1 A2 An or ni 1 Ai .Example 2.214

2.1.5ComplimentsThe complement of an event A is defined to be event that contains all outcomesin the sample space S which do not belong to A.Notation: the compliment of A is written as A0 .AThe compliment has the following properties:(A0 )0 Aφ0 SA A0 SA A0 φExamples:Dataset 1: if A { 3} errors then A0 {0, 1, 2}.Dataset 2: if15

A {x : 3 x 5}thenA0 {x : 0 x 3, x 5}.Example 2.32.1.6Disjoint eventsIt is said that 2 events A and B are disjoint or mutually exclusive if A and Bhave no outcomes in common. It follows that A and B are disjoint if and onlyif A B φ.Example: roll of a die: suppose A is the event of an odd number and B isthe event of an even number then A {1, 3, 5}, B {2, 4, 6} and A and B aredisjointExample: roll of a die: suppose A is the event of an odd number and C is theevent of a number greater than 1 then A {1, 3, 5}, C {2, 3, 4, 5, 6} and Aand C are not disjoint since they have the outcomes 3 and 5 in common.Example 2.42.1.7Further resultsa) DeMorgan’s Laws: for any 2 events A and B we have(A B)0 A0 B 0(A B)0 A0 B 0b) For any 3 events A, B and C we have:16

A (B C) (A B) (A C)A (B C) (A B) (A C)Examples 2.5–2.72.2The definition of probabilityProbabilities can be defined in different ways:Physical.Relative frequency.Subjective.Probabilities, however assigned, must satisfy three specific axioms:Axiom 1: for any event A, P(A) 0.Axiom 2: P(S) 1.Axiom 3: For any sequence of disjoint events A1 , A2 , A3 , P ( i 1 Ai ) P i 1P(Ai ).The mathematical definition of probability can now be given as follows:Definition: A probability distribution, or simply a probability on a sample spaceS is a specification of numbers P(A) which satisfy Axioms 1–3.Properties of probability:(i) P(φ) 0.(ii) For any event A, P(A0 ) 1 P(A).(iii) For any event A, 0 P(A) 1.(iv) The addition law of probability17

For any 2 events A and B:P(A B) P(A) P(B) P(A B).So if A and B are disjointP(A B) P(A) P(B).For any 3 events A, B and C:P(A B C) P(A) P(B) P(C) P(A B) P(A C) P(B C) P(A B C).Example 2.82.2.1Conditional probabilityWe now look at the way in which the probability of an event A changes after ithas been learned that some other event B has occurred. This is known as theconditional probability of the event A given that the event B has occurred. Wewrite this as P(A B).Definition: if A and B are any 2 events with P(B) 0, thenP(A B) P(A B)/P(B)Note that now we can derive the multiplication law of probability:P(A B) P(A B)P(B) P(B A)P(A)18

2.2.2IndependenceTwo events A and B are said to be independent ifP(A B) P(A),that is, knowledge of B does not change the probability of A.So if A and B are independent we haveP(A B) P(A)P(B)Examples 2.9–2.102.2.3Bayes TheoremLet S denote the sample space of some experiment and consider k eventsA1 , , Ak in S such that A1 , , Ak are disjoint and ni 1 Ai S. Such aset of events is said to form a partition of S.Consider any other event B, thenA1 B, A2 B, , Ak Bform a partition of B. Note that Ai B may equal φ for some Ai .SoB (A1 B) (A2 B) (Ak B)Since the k events on the right are disjoint we haveP(B) Pkj 1P(Aj B) (Addition Law of Probability)Now P(Aj B) P(Aj )P(B Aj ) so19

P(B) Pkj 1P(Aj )P(B Aj )Recall thatP(Ai B) P(B Ai )P(Ai )/P(B)using the above we can therefore obtain Bayes Theorem:P(Ai B) P(B Ai )P(Ai )/Example 2.1120Pkj 1P(Aj )P(B Aj )

3Systems reliabilityConsider a system of components put together so that the whole system worksonly if certain combinations of the components work. We can represent thesecomponents as a NETWORK.3.1Series systemS e1 e2 e3 e4 TIf any component fails system fails. Suppose we have n components eachoperating independently:Let Ci be the event that component ei fails, i 1, ., n.P(Ci ) θ, i 1, ., n, P(Ci0 ) 1 θP(system functions) P(C10 C20 Cn0 ) P(C10 ) P(C20 ) P(Cn0 ) since the events are independent (1 θ)nExample: n 3, θ 0.1, P(system functions) 0.93 0.72921

3.2Parallel systeme1S e2 Te3Again suppose we have n components each operating independently:Again let P(Ci ) θ.The system fails if all n components fail andP(system functions) 1 P(system fails)P(system fails) P(C1 C2 Cn ) P(C1 ) P(C2 ) P(Cn ) since independentSoP(system functions) 1 θnExample: n 3, θ 0.1, P(system functions) 1 0.13 0.999.3.3Mixed system– in lectures.22

4Random Variables and their distributions4.1Definition and notationRecall:Dataset 1: number of errors X, S {0, 1, 2, .}.Dataset 2: time Y , S {x : x 0}.Other example: Toss of a coin, outcome Z: S {H, T }.In the above X, Y and Z are examples of random variables.Important note: capital letters will denote random variables, lower case letters will denote particular values (realizations).When the outcomes can be listed we have a discrete random variable, otherwise we have a continuous random variable.Let pi P(X xi ), i 1, 2, 3, . Then any set of pi ’s such thati) pi 0, andii)P i 1pi P(X S) 1forms a probability distribution over x1 , x2 , x3 , .The distribution function F (x) of a discrete random variable is given byF (xj ) P(X xj ) jXpi p1 p2 . pj .i 1We now give some examples of distributions which can be used as models fordiscrete random variables.23

4.2The uniform distributionSuppose that the value of a random variable X is equally likely to be any oneof the k integers 1, 2, ., k.Then the probability distribution of X is given by:P(X x) 1for x 1, 2, ., kk 0 otherwiseThe distribution function is given byF (j) P(X j) jXpi p1 p2 . pj i 1jfor j 1, 2, ., k.kExamples:Outcome when we roll a fair die.Outcome when a fair coin is tossed.4.3The Binomial DistributionSuppose we have n independent trials with the outcome of each being either asuccess denoted 1 or a failure denoted 0. Let Yi , i 1, ., n be random variablesrepresenting the outcomes of each of the n trials.Suppose also that the probability of success on each trial is constant and isgiven by p. That is,P(Yi 1) pandP(Yi 0) 1 p.24

for i 1, ., n.Let X denote the number of successes we obtain in the n trials, that isX nXYi .i 1The sample space of X is given by S 0, 1, 2, ., n, that is, we can obtainbetween 0 and n successes. We now derive the probabilities of obtaining eachof these outcomes.Suppose we observe x successes and n x failures.Then the probability distribution of X is given by:P(X x) whereDerivation in lectures. n x p (1 p)n x for x 0, 1, 2, ., nx0 otherwise n! n . x!(n x)!xExamples 4.1–4.24.4The Poisson DistributionMany physical problems are concerned with events occurring independently ofone another in time or space.Examples(i) Counts measured by a Geiger counter in 8-minute intervals(ii) Traffic accidents on a particular road per day.(iii) Number of imperfections along a fixed length of cable.25

(iv) Telephone calls arriving at an exchange in 10 second periods.A Poisson process is a simple model for such examples. Such a model assumes that in a unit time interval (or a unit length) the event of interest occursrandomly (so there is no clustering) at a rate λ 0.Let X denote the number of events occurring in time intervals of length t.Since we have a rate of λ in unit time, the rate in an interval of length t is λt.The random variable X then has the Poisson distribution given by λtx e (λt)P(X x) x!for x 0, 1, 2, .0otherwiseNote: the sample here space is S {0, 1, 2, .}.We can simplify the above by putting μ λt. We then obtainP(X x) μ x e μ x!for x 0, 1, 2, .0otherwiseThe distribution function is given byF (j) P(X j) jXP(X i) for j 0, 1, 2, .i 0Example 4.34.5Continuous DistributionsFor a continuous random variable X we have a function f , called the probabilitydensity function (pdf). Every probability density function must satisfy:(i) f (x) 0, and(ii)R f (x)dx 1.For any interval A we have26

ZAf (x)dx.0.20.00.1PROBABILITY DENSITY0.30.4P(X A) -3-2-10123XFigure 5: Probability density functionThe distribution function is given byF (x0 ) P(X x0 ) Z x0 f (x)dx.Notes:(i) P(X x) 0 for a continuous random variable X.(ii)dF (x)dx f (x).(iii)P(a X b) F (b) F (a) Z b f (x)dx 27Z a f (x)dx Z baf (x)dx

0.81.00.40.60.4DISTRIBUTION FUNCTION0.30.20.00.00.20.1PROBABILITY DENSITY-3-10123-3X-10123XFigure 6: Probability density function and distribution function28

4.6The Uniform DistributionSuppose we have a continuous random variable that is equally likely to occurin any interval of length c within the range [a, b]. Then the probability densityfunction of this random variable isf (x) 1b a 0for a x b.otherwiseNotes: show that this is a pdf and derive distribution function in lectures.4.7The exponential distributionSuppose we have events occurring in a Poisson process of rate λ but we are interested in the random variable describing the time between events T . It can beshown that this random variable has an exponential distribution with parameterλ. The probability density function of an exponential random variable is givenby:f (t) λ exp( λt)for t 0.0otherwise, that is for t 0This probability density function is shown with various values of λ in Figure 7.Notes: show that this is a probability density function and derive in lecturesthe distribution function, which is given byF (t0 ) 1 exp( λt0 ) for t0 0.29

1.02.03.001323445X1.0, (c) λ 2.0, (d) λ 3.0303.022.011.000.0PROBABILITY DENSITY FUNCTION0.0PROBABILITY DENSITY FUNCTION1.02.03.00.01.02.03.0PROBABILITY DENSITY FUNCTION0.0PROBABILITY DENSITY FUNC

Statistics for the engineering and computer sciences, second edition. William Mendenhall and Terry Sincich, Dellen Publishing Company. Probability concepts in engineering planning and design. Alfredo Ang and Wison Tang, Wiley. 2. 1 Introduction – Random experiments

Related Documents:

Joint Probability P(A\B) or P(A;B) { Probability of Aand B. Marginal (Unconditional) Probability P( A) { Probability of . Conditional Probability P (Aj B) A;B) P ) { Probability of A, given that Boccurred. Conditional Probability is Probability P(AjB) is a probability function for any xed B. Any

ISE Search Filters Introduction This document describes how Identitity Service Engine (ISE) and Active Directory (AD) communicate, protocols that are used, AD filters, and flows. Prerequisites Requirements Cisco reccomends a basic knowledge of : ISE 2.x and Active Directory integration . External identity authentication on ISE. Components Used

SNS-3415-K9 Secure Network Server for ISE and ACS applications (small) Customer must choose either ACS or ISE SNS-3495-K9 Secure Network Server for ISE and ACS applications (large) Customer must choose either ACS or ISE SNS-3515-K9 Secure Network Server for ISE and ACS ap

Cisco Identity Services Engine (ISE) 181 Cisco Platform Exchange Grid (pxGrid) 182 Cisco ISE Context and Identity Services 184 Cisco ISE Profiling Services 184 Cisco ISE Identity Services 187 Cisco ISE Authorization Rules 188 Cisco TrustSec 190 Posture Assessment 192 Change of Authorization (CoA) 193 Configuring TACACS Access 196

TOE Reference Cisco Identity Services Engine (ISE) v 2.0 TOE Models ISE 3400 series: SNS-3415 and 3495; ISE 3500 series: SNS-3515 and SNS-3595 TOE Software Version ISE v2.0, running on Cisco Application Deployment Engine (ADE) Release 2.4 operating system (ADE-OS) Keywords AAA, Audit, Authenticat

Page 6 of 12 Pre-ISE 2.4 release to VM Common license Customers with the old VM license (i.e., R-ISE-10VM-K9 ) cannot directly migrate the VM license to the VM Common license. They must migrate it to the VM Medium license, first. To do so, email ise-vm-license@cisco.com with the sales order numbers that reflect the ISE VM purchase and your .

SOLUTION MANUAL KEYING YE AND SHARON MYERS for PROBABILITY & STATISTICS FOR ENGINEERS & SCIENTISTS EIGHTH EDITION WALPOLE, MYERS, MYERS, YE. Contents 1 Introduction to Statistics and Data Analysis 1 2 Probability 11 3 Random Variables and Probability Distributions 29 4 Mathematical Expectation 45 5 Some Discrete Probability

the Cisco ISE enforcement mechanisms. The joint solution combines the strengths of both the Cisco ISE and Medigate platforms. Cisco ISE provides industry-leading access control capabilities, including granting network visibility of IT devices, enforcing highly customizable access polic