1841f06detprob3 Testing Basics Detection probability.

Slides:



Advertisements
Similar presentations
Simple Probability and Odds
Advertisements

3 Types of Probabilities
Extension of E(Θ) metric for Evaluation of Reliability.
Probability Three basic types of probability: Probability as counting
Probability Lesson
Statistics Chapter 3: Introduction to Discrete Random Variables.
Vocabulary: Probability– expressed as a ratio describing the # of ___________________ outcomes to the # of _______________________ outcomes. Probability.
Introduction to Probability
16.4 Probability Problems Solved with Combinations.
Use the above table to answer the questions about people’s favorite foods based on their age. If a person is chosen randomly, what is the probability they.
Exam 1 Review u Scores Min 30 Max 96 Ave 63.9 Std Dev 14.5.
Calculating Probabilities for Chance Experiments with Equally Likely Outcomes.
1 740f02frankl25 Evaluating Testing Methods by Delivered Reliability Frankl, Hamlet, Littlewood, Strigini IEEE TOSE Aug98.
Math 409/409G History of Mathematics
EQUILATERAL & ISOSCELES Quiz tomorrow. CLASSIFY the triangle by ANGLES and SIDES Angles: acute, obtuse, right Sides:equilateral, isosceles, scalene 91.
1841f06detprob3 MM Stroustrup Ch26 u Comments? u Agree or disagree with his testing approach?
1 testing17 Software Testing Functional, MCC, Dataflow Testing, Cause-Effect Graphing.
Summarizing “Structural” Testing Now that we have learned to create test cases through both: – a) Functional (blackbox)and – b) Structural (whitebox) testing.
841f07frankl12oct21 Evaluating Testing Methods by Delivered Reliability Frankl, Hamlet, Littlewood, Strigini IEEE TOSE Aug98.
Software Testing. Software testing is the execution of software with test data from the problem domain. Software testing is the execution of software.
Triangle A polygon with three sides and three angles. A triangle can be names by its’ side lengths and angles. – Side lengths: isosceles, equilateral,
1841f07subdomains2Aug23 Question u What is the main purpose of software testing?
EXAMPLE 1 Standardized Test Practice SOLUTION Let ( x 1, y 1 ) = ( –3, 5) and ( x 2, y 2 ) = ( 4, – 1 ). = (4 – (–3)) 2 + (– 1 – 5) 2 = = 85 (
Exam 1 Review u Scores Min 30 Max 96 Ave 63.9 Std Dev 14.5.
10-2 Experimental Probability Course 3 Warm Up Warm Up Problem of the Day Problem of the Day Lesson Presentation Lesson Presentation.
Introduction  Probability Theory was first used to solve problems in gambling  Blaise Pascal ( ) - laid the foundation for the Theory of Probability.
1 Input Space Partitioning(2). Reading Assignment P. Ammann and J. Offutt “Introduction to Software Testing” ◦ Chapter 4  Section 4.1  Section
TRIANGLES AND TYPES OF TRIANGLES. A triangle has three sides.
10-2 Experimental Probability Course 3 Warm Up Warm Up Problem of the Day Problem of the Day Lesson Presentation Lesson Presentation.
Probability.
What is the probability of two or more independent events occurring?
Multiplication Rule Statistics B Mr. Evans. Addition vs. Multiplication Rule The addition rule helped us solve problems when we performed one task and.
8/23/00ISSTA Comparison of Delivered Reliability of Branch, Data Flow, and Operational Testing: A Case Study Phyllis G. Frankl Yuetang Deng Polytechnic.
PROBABILITY UNLIKELY – LESS ½ LIKELY – MORE ½ CERTAIN - ALL IMPOSSIBLE- CAN’T HAPPEN, 0 EQUAL CHANCE- SAME NUMBER.
Unit 4 Probability Day 3: Independent and Dependent events.
Evaluating Testing Methods by Delivered Reliability Frankl, Hamlet, Littlewood, Strigini IEEE TOSE Aug98 Section 3.4.
Scalene triangle: A scalene triangle is a triangle that has no equal sides. The following is a scalene triangle.
An urn contains 1 green, 2 red, and 3 blue marbles. Draw two without replacement. 1/6 2/6 3/6 2/5 3/5 1/5 3/5 1/5 2/5 2/30 3/30 2/30 6/30 3/30 6/30.
1. A sample space consists of 18 separate events that are equally likely. What is the probability of each? A) 0 C) 1 B) 1 D)
1841f06detprob4 Testing Basics Detection probability.
2 pt 3 pt 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt Chapter 9.
Properties of Triangles
Angles In Triangles Types of Triangles Isosceles triangle
Mid Unit 5 Review 2-Dimensional Figures.
Triangles.
Software Testing Structural testing 540f07testing17oct25 1.
Software Testing Structural testing 1.
Boundaries and C0,C1 Pressman pp
Triangles.
Mid Unit 5 Review 2-Dimensional Figures.
9.7 – Probability of Multiple Events
7.7.3 Triangles.
Angles In Triangles Types of Triangles Isosceles triangle
Sample space diagrams 1. A blue and a red dice are thrown and the scores added together. (a) Complete the sample space diagram. (b) What is the probability.
Detection probability
Section 4.1 : Classifying Triangles
Triangles A polygon with 3 sides.
Agenda: 4.1 Notes Exit Slip Work on Supplement
Angles In Triangles Types of Triangles Isosceles triangle
Coordinate Proofs Lesson 6-2.
Probability: Test Tomorrow
Objective - To classify triangles.
Evaluating Testing Methods by Delivered Reliability
Probability Problems Solved with
Probability: Test Tomorrow
Triangles.
Evaluating Testing Methods by Delivered Reliability
Intro to Triangles.
Probability of two events
Probability Lesson 4: Non-Equally Likely Events
Presentation transcript:

1841f06detprob3 Testing Basics Detection probability

2841f06detprob3 Methodology to evaluate testing criterion u Pick sample program, sample faults, sample operational profile, two criteria. u For each criterion, randomly generate test suites that satisfy the criterion. u Calculate the percentage of the suites that detect each of the faults. u The criterion that has the higher percentage is better.

3841f06detprob3 Triangle Example cin >> a >> b >> c ; type = “scalene”; if (a == b || a == c || b == c) type= “isosceles”; if (a == b && a == c) type = “equilateral”; if (a >= b+c || b >= a+c || c >= a+b) type=“not a triangle”; if (a <= 0 || b <= 0 || c <= 0) type=“bad input”; cout<< type;

4841f06detprob3 Control Flow Graph Operational profile 3,3,3abcdegiequi 3,3,4abcegiisos 3,3,5abcegiisos 3,3,6abcefginot 3,4,3abcegiisos 3,4,4abcegiisos 3,4,5acegiscal 3,4,6acegiscal All inputs are equally likely

5841f06detprob3 What are the failure probability for each color (separately)? cin >> a >> b >> c ; type = “scalene”; if (a == b || a == c && b == c) type= “isosceles”; if (a == b || a == c) type = “equilateral”; if (a >= b+c || b >= a+c || c > a+b) type=“not a triangle”; if (a <= 0 || b <= 0 || c <= 0) type=“bad input”; cout<< type; Blue GreenRed

6841f06detprob3 TTYP – probability of detection u What is the probability of detection with one randomly chosen test case? u What is the probability of detection with two randomly chosen test cases?

8841f06detprob3 TTYP – per path u What is the probability of detection with one randomly chosen test case per path? u What is the probability of detection with an equal number of randomly chosen test cases?

9841f06detprob3 TTYP – smaller subdomains u What might be better smaller subdomains?

10841f06detprob3 TTYP - subdomains u Are paths the best subdomains? u Would a functional decomposition be better? u Should we re-define the term subdomain?

11841f06detprob3 fault 1 fault 2 fault 3 fault 4 criterion criterion criterion criterion Comparing Criteria

12841f06detprob3 Solving this choice u What are the assumptions? u Analogy with dice?

13841f06detprob3 TTYP – smaller subdomains u What might be better smaller subdomains? u Would MCC (multiple condition coverage) be better subdomains

14841f06detprob3 TTYP2 – C0 and C1 coverage u How do we deal with C0 and C1 coverage since they are not subdomain testing methodologies?

15841f06detprob3 TTYP3 u How could you estimate the det prob of C0 or C1 testing?

16841f06detprob3 Marble Problem u Assume that there is a bag of marbles from which marbles are drawn with replacement. u What is the maximum likelihood estimate of p (the probability of drawing a purple) marble if you draw exactly n purple marbles in a row? u ? P such that (p) n (1-p) is max or u ? P such that (p) n =.5

17841f06detprob3 Evaluating Testing Methods by Delivered Reliability Frankl, Hamlet, Littlewood, Strigini IEEE TOSE Aug98 For Tuesday, Sep 4– study through section 2.3