Quality Assurance vs. Quality Control Quality Assurance An overall management plan to guarantee the integrity of data (The “system”) Quality Control A.

Slides:



Advertisements
Similar presentations
Quality is a Lousy Idea-
Advertisements

Estimation using COCOMO More Science, Less Art. COCOMO History COCOMO History Constructive Cost Model Dr. Barry Boehm TRW in 1970s COCOMO
Lecturer: Sebastian Coope Ashton Building, Room G.18 COMP 201 web-page: Software.
So far.. We have covered a) Requirements gathering: observation & interview. b) Requirements specification. c) Requirements validation. d) Design/paper.
Project Risks and Feasibility Assessment Advanced Systems Analysis and Design.
©Ian Sommerville 2000Software Engineering, 6th edition. Chapter 23Slide 1 Software Cost Estimation.
Ch8: Management of Software Engineering. 1 Management of software engineering  Traditional engineering practice is to define a project around the product.
1 COST ESTIMATION Basics, COCOMO, FP. 2 What is estimated? TIME MONEY TIME: –duration, chronological weeks, months, years –effort, person-month (man-month)
CSC 395 – Software Engineering
Chapter 23 – Project planning Part 2. Estimation techniques  Organizations need to make software effort and cost estimates. There are two types of technique.
Software Cost Estimation Hoang Huu Hanh, Hue University hanh-at-hueuni.edu.vn.
1 Cost Estimation CIS 375 Bruce R. Maxim UM-Dearborn.
Cost Estimation Van Vliet, chapter 7 Glenn D. Blank.
Information System Economics Software Project Cost Estimation.
Cmpe 589 Spring Software Quality Metrics Product  product attributes –Size, complexity, design features, performance, quality level Process  Used.
Cost22 1 Question of the day u If you were the boss, what would you do for cost estimation?
1 ECE 453 – CS 447 – SE 465 Software Testing & Quality Assurance Lecture 22 Instructor Paulo Alencar.
COCOMO Models Ognian Kabranov SEG3300 A&B W2004 R.L. Probert.
Chapter 6 : Software Metrics
Project Management Estimation. LOC and FP Estimation –Lines of code and function points were described as basic data from which productivity metrics can.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 26 Slide 1 Software cost estimation 1.
©Ian Sommerville 2000Software Engineering, 6th edition. Chapter 23Slide 1 Chapter 23 Software Cost Estimation.
Quality WHAT IS QUALITY
CS /39 Illinois Institute of Technology CS487 Software Engineering David A. Lash.
A Brief Introduction to COCOMO Hossein Saiedian EECS810: Software Engineering.
Software cost estimation Predicting the resources required for a software development process 1.
Cost13 1 Cost Estimation Estimates based on LOC. cost13 2 Boehm's COCOMO u Software Engineering Economics u Prentice-Hall c1981 u type COCOMO in a search.
T. E. Potok - University of Tennessee CS 594 Software Engineering Lecture 3 Dr. Thomas E. Potok
Lecture 4 Software Metrics
10/27/20151Ian Sommerville.  Fundamentals of software measurement, costing and pricing  Software productivity assessment  The principles of the COCOMO.
Cost Estimation. Problem Our ability to realistically plan and schedule projects depends on our ability to estimate project costs and development efforts.
Cost Estimation What is estimated? –resources (humans, components, tools) –cost (person-months) –schedule (months) Why? –Personnel allocation –Contract.
Project Estimation Model By Deepika Chaudhary. Factors for estimation Initial estimates may have to be made on the basis of a high level user requirements.
Software Project Planning Part II. Troutman's Postulates Profanity is the one language understood by all programmers. Not until a program has been in.
SEG3300 A&B W2004R.L. Probert1 COCOMO Models Ognian Kabranov.
SFWR ENG 3KO4 Slide 1 Management of Software Engineering Chapter 8: Fundamentals of Software Engineering C. Ghezzi, M. Jazayeri, D. Mandrioli.
Software Project Estimation IMRAN ASHRAF
Cost9a 1 Software Estimating Technology: A Survey Richard Stutzke Crosstalk, May96 text pp
©Ian Sommerville, adapted by Werner Wild 2004Project Management Slide 1 Software cost estimation u Predicting the resources required for a software development.
Software cost estimation. Fundamental estimation questions How much effort is required to complete an activity? How much calendar time is needed to complete.
Estimation using COCOMO
Function Points Synthetic measure of program size used to estimate size early in the project Easier (than lines of code) to calculate from requirements.
Estimating “Size” of Software There are many ways to estimate the volume or size of software. ( understanding requirements is key to this activity ) –We.
Effort Estimation In WBS,one can estimate effort (micro-level) but needed to know: –Size of the deliverable –Productivity of resource in producing that.
LECTURE 13 QUALITY ASSURANCE METHOD VALIDATION
Project Estimation. Planning Prerequisites The planning process requires the following inputs: –Required human effort (man-months) –Project duration (months)
بشرا رجائی برآورد هزینه نرم افزار.
Software Engineering, COMP201 Slide 1 Software Engineering CSE470.
Cost9b 1 Living with Function Points Bernstein and Lubashevsky Text pp
Objectives Introduce the necessity for software metrics Differentiate between process, project and product metrics Compare and contrast Lines-Of-Code (LOC)
Quality is a Lousy Idea-
Software Estimating Technology: A Survey
Software Planning
COCOMO Models 26/12/2016.
Constructive Cost Model
COCOMO Models 26/12/2016.
Quality is a Lousy Idea-
Chapter 26 Estimation for Software Projects
COCOMO Model Basic.
Personal Software Process Software Estimation
Chapter 5: Software effort estimation- part 2
Software Metrics “How do we measure the software?”
Activities During SPP Size Estimation
More on Estimation In general, effort estimation is based on several parameters and the model ( E= a + b*S**c ): Personnel Environment Quality Size or.
COCOMO Models.
Cost Estimation Van Vliet, chapter 7 Glenn D. Blank.
Software Cost Estimation
COnstructive COst MOdel
Software Cost Estimation
COCOMO MODEL.
Presentation transcript:

Quality Assurance vs. Quality Control Quality Assurance An overall management plan to guarantee the integrity of data (The “system”) Quality Control A series of analytical measurements used to assess the quality of the analytical data (The “tools”)

True Value vs. Measured Value True Value The known, accepted value of a quantifiable property Measured Value The result of an individual’s measurement of a quantifiable property

Accuracy vs. Precision Accuracy How well a measurement agrees with an accepted valuePrecision How well a series of measurements agree with each other

Accuracy vs. Precision

Systematic vs. Random Errors Systematic Error Avoidable error due to controllable variables in a measurement. Random Errors Unavoidable errors that are always present in any measurement. Impossible to eliminate

Blanks, Blanks, Blanks Laboratory Reagent Blanks Instrument Blanks Field Reagent Blanks Trip Blanks

Laboratory Reagent Blanks Contains every reagent used in the analysis Is subjected to all analytical procedures Must give signal below detection limit Most methods require one with every batch

Instrument Blank A clean sample (e.g., distilled water) processed through the instrumental steps of the measurement process; used to determine instrument contamination.

Field Reagent Blanks Prepared in the lab, taken to the field Opened at the sampling site, exposed to sampling equipment, returned to the lab.

Trip Blanks Prepared in the lab, taken to the field Not opened Returned to the lab Not always required in EPA methods

Recovery Studies Matrix Spikes Laboratory Control Samples Surrogates.

Matrix Spikes Sample spiked with a known amount of analyte Subjected to all sample prep and analytical procedures Determines the effect of the matrix on analyte recovery Normally one per batch

Laboratory Control Sample Subjected to all sample prep and analytical procedures Analyte spiked into reagent water

Laboratory Control Sample Also known as: Laboratory Fortified Blank (LFB) Quality Control Sample (QCS)

Surrogates Similar to an internal standard Added to all analytical samples, and to all QC samples to monitor method performance, usually during sample prep Methods often have specific surrogate recovery criteria Most common in Organic methods

SEG3300 A&B W2004R.L. Probert16 COCOMO Models

SEG3300 A&B W2004R.L. Probert17 Project Management and Mr. Murphy 1.Logic is a systematic method of coming to the wrong conclusion with confidence. 2.Technology is dominated by those who manage what they do not understand. 3.Nothing ever gets built on schedule or within budget. 4.If mathematically you end up with the incorrect answer, try multiplying by the page number.

SEG3300 A&B W2004R.L. Probert18

SEG3300 A&B W2004R.L. Probert19 Motivation The software cost estimation provides: the vital link between the general concepts and techniques of economic analysis and the particular world of software engineering. Software cost estimation techniques also provides an essential part of the foundation for good software management.

SEG3300 A&B W2004R.L. Probert20 Cost of a project The cost in a project is due to: –due the requirements for software, hardware and human resources –the cost of software development is due to the human resources needed –most cost estimates are measured in person-months (PM)

SEG3300 A&B W2004R.L. Probert21 Cost of a project (.) the cost of the project depends on the nature and characteristics of the project, at any point, the accuracy of the estimate will depend on the amount of reliable information we have about the final product.

SEG3300 A&B W2004R.L. Probert22 Software Cost Estimation

SEG3300 A&B W2004R.L. Probert23 Introduction to COCOMO models The COstructive COst Model (COCOMO) is the most widely used software estimation model in the world. It The COCOMO model predicts the effort and duration of a project based on inputs relating to the size of the resulting systems and a number of "cost drives" that affect productivity.

SEG3300 A&B W2004R.L. Probert24 Effort Effort Equation –PM = C * (KDSI) n (person-months) where PM = number of person-month (=152 working hours), C = a constant, KDSI = thousands of "delivered source instructions" (DSI) and n = a constant.

SEG3300 A&B W2004R.L. Probert25 Productivity Productivity equation –(DSI) / (PM) where PM = number of person-month (=152 working hours), DSI = "delivered source instructions"

SEG3300 A&B W2004R.L. Probert26 Schedule Schedule equation –TDEV = C * (PM) n (months) where TDEV = number of months estimated for software development.

SEG3300 A&B W2004R.L. Probert27 Average Staffing Average Staffing Equation –(PM) / (TDEV) (FSP) where FSP means Full-time-equivalent Software Personnel.

SEG3300 A&B W2004R.L. Probert28 COCOMO Models COCOMO is defined in terms of three different models: –the Basic model, –the Intermediate model, and –the Detailed model. The more complex models account for more factors that influence software projects, and make more accurate estimates.

SEG3300 A&B W2004R.L. Probert29 The Development mode the most important factors contributing to a project's duration and cost is the Development Mode Organic Mode: The project is developed in a familiar, stable environment, and the product is similar to previously developed products. The product is relatively small, and requires little innovation. Semidetached Mode: The project's characteristics are intermediate between Organic and Embedded.

SEG3300 A&B W2004R.L. Probert30 The Development mode the most important factors contributing to a project's duration and cost is the Development Mode: Embedded Mode: The project is characterized by tight, inflexible constraints and interface requirements. An embedded mode project will require a great deal of innovation.

SEG3300 A&B W2004R.L. Probert31 Modes

SEG3300 A&B W2004R.L. Probert32 Modes (.)

SEG3300 A&B W2004R.L. Probert33 Cost Estimation Process Cost=SizeOfTheProject x Productivity

SEG3300 A&B W2004R.L. Probert34 Cost Estimation Process Errors Effort Development Time Size Table Lines of Code Number of Use Case Function Point Estimation Process Number of Personnel

SEG3300 A&B W2004R.L. Probert35 Project Size - Metrics 1.Number of functional requirements 2.Cumulative number of functional and non-functional requirements 3.Number of Customer Test Cases 4.Number of ‘typical sized’ use cases 5.Number of inquiries 6.Number of files accessed (external, internal, master) 7.Total number of components (subsystems, modules, procedures, routines, classes, methods) 8.Total number of interfaces 9.Number of System Integration Test Cases 10.Number of input and output parameters (summed over each interface) 11.Number of Designer Unit Test Cases 12.Number of decisions (if, case statements) summed over each routine or method 13. Lines of Code, summed over each routine or method

SEG3300 A&B W2004R.L. Probert36 Project Size – Metrics(.) Availability of Size Estimation Metrics: Development PhaseAvailable Metrics aRequirements Gathering1, 2, 3 bRequirements Analysis4, 5 dHigh Level Design6, 7, 8, 9 eDetailed Design10, 11, 12 fImplementation12, 13

SEG3300 A&B W2004R.L. Probert37 Function Points STEP 1: measure size in terms of the amount of functionality in a system. Function points are computed by first calculating an unadjusted function point count (UFC). Counts are made for the following categories –  External inputs – those items provided by the user that describe distinct application-oriented data (such as file names and menu selections) –  External outputs – those items provided to the user that generate distinct application-oriented data (such as reports and messages, rather than the individual components of these)

SEG3300 A&B W2004R.L. Probert38 Function Points(.) –  External inquiries – interactive inputs requiring a response –  External files – machine-readable interfaces to other systems –  Internal files – logical master files in the system

SEG3300 A&B W2004R.L. Probert39 Function Points(..) STEP 2: Multiply each number by a weight factor, according to complexity (simple, average or complex) of the parameter, associated with that number. The value is given by a table:

SEG3300 A&B W2004R.L. Probert40 Function Points(...) STEP 3: Calculate the total UFP (Unadjusted Function Points) STEP 4: Calculate the total TCF (Technical Complexity Factor) by giving a value between 0 and 5 according to the importance of the following points:

SEG3300 A&B W2004R.L. Probert41 Function Points(....) Technical Complexity Factors: –1.Data Communication –2.Distributed Data Processing –3.Performance Criteria –4.Heavily Utilized Hardware –5.High Transaction Rates –6.Online Data Entry –7.Online Updating –8.End-user Efficiency –9.Complex Computations –10.Reusability –11.Ease of Installation –12.Ease of Operation –13.Portability –14.Maintainability

SEG3300 A&B W2004R.L. Probert42 Function Points(.....) STEP 5: Sum the resulting numbers too obtain DI (degree of influence) STEP 6: TCF (Technical Complexity Factor) by given by the formula –TCF= *DI STEP 6: Function Points are by given by the formula –FP=UFP*TCF

SEG3300 A&B W2004R.L. Probert43 Example

SEG3300 A&B W2004R.L. Probert44 Example (.)

SEG3300 A&B W2004R.L. Probert45 Example (..) Technical Complexity Factors: –1.Data Communication3 –2.Distributed Data Processing0 –3.Performance Criteria4 –4.Heavily Utilized Hardware0 –5.High Transaction Rates3 –6.Online Data Entry3 –7.Online Updating3 –8.End-user Efficiency3 –9.Complex Computations0 –10.Reusability3 –11.Ease of Installation3 –12.Ease of Operation5 –13.Portability3 –14.Maintainability3 »DI =30(Degree of Influence)

SEG3300 A&B W2004R.L. Probert46 Example (…) Function Points –FP=UFP*( *DI)= 55*( *30)=52.25 –That means the is FP=52.25

SEG3300 A&B W2004R.L. Probert47 Relation between LOC and FP Relationship: – LOC = Language Factor * FP – where LOC (Lines of Code) FP (Function Points)

SEG3300 A&B W2004R.L. Probert48 Relation between LOC and FP(.) Assuming LOC’s per FP for: Java = 53, C++ = 64 aKLOC = FP * LOC_per_FP / 1000 It means for the SpellChekcer Example: (Java) LOC=52.25*53= LOC or 2.76 KLOC

SEG3300 A&B W2004R.L. Probert49 Effort Computation The Basic COCOMO model computes effort as a function of program size. The Basic COCOMO equation is: –E = aKLOC^b Effort for three modes of Basic COCOMO. Mode a b Organic Semi- detached Embedded

SEG3300 A&B W2004R.L. Probert50 Example

SEG3300 A&B W2004R.L. Probert51 Effort Computation The intermediate COCOMO model computes effort as a function of program size and a set of cost drivers. The Intermediate COCOMO equation is: –E = aKLOC^b*EAF Effort for three modes of intermediate COCOMO. Mode a b Organic Semi- detached Embedded

SEG3300 A&B W2004R.L. Probert52 Effort computation(.) Effort Adjustment Factor Cost Driver Very Low NominalHighVery High Extra High Required Reliability Database Size Product Complexity Execution Time Constraint Main Storage Constraint Virtual Machine Volatility Comp Turn Around Time Analyst Capability Application Experience Programmers Capability Virtual machine Experience Language Experience Modern Prog Practices SW Tools Required Dev Schedule ,10

SEG3300 A&B W2004R.L. Probert53 Effort Computation (..) Total EAF = Product of the selected factors Adjusted value of Effort: Adjusted Person Months: APM = (Total EAF) * PM

SEG3300 A&B W2004R.L. Probert54 Example

SEG3300 A&B W2004R.L. Probert55 Software Development Time Development Time Equation Parameter Table: Development Time, TDEV = C * (APM **D) Number of Personnel, NP = APM / TDEV ParameterOrganicSemi- detached Embedded C2.5 D

SEG3300 A&B W2004R.L. Probert56 Distribution of Effort A development process typically consists of the following stages: - Requirements Analysis - Design (High Level + Detailed) - Implementation & Coding - Testing (Unit + Integration)

SEG3300 A&B W2004R.L. Probert57 Distribution of Effort (.) The following table gives the recommended percentage distribution of Effort (APM) and TDEV for these stages: Percentage Distribution of Effort and Time Table: Req Analysis Design, HLD + DD ImplementationTesting Effort23%29%22%21%100% TDEV39%25%15%21%100%

SEG3300 A&B W2004R.L. Probert58 Error Estimation Calculate the estimated number of errors in your design, i.e.total errors found in requirements, specifications, code, user manuals, and bad fixes: –Adjust the Function Point calculated in step1 AFP = FP ** 1.25 –Use the following table for calculating error estimates Error TypeError / AFP Requirements1 Design1.25 Implementation1.75 Documentation0.6 Due to Bug Fixes0.4

SEG3300 A&B W2004R.L. Probert59 All Together Design Unadjusted Function Point (UFP table) Modify FP=UFP*TCF ClassesClasses*(2Function Points) TCF KLOC=Max[aKLOC, bKLOC] LOC=13.20*Num of Method LOC=18.25*Num of Method AFP=FP*1.25 Compute Errors = AFP*Y Compute Effort: Person Month, PM=A*(KLOC**B) bKLOC=∑ (LOCs for all Classes)/1000 Adjusted PM: APM=(total EAF)*PM Development Time: TDEV=C*(APM**D) Factor:1-15 Number of personnel: NP=APM/TDEV DI=∑ratings of selected factors 14 TCF= *∑(DI) j 1 Min[TCF]=0.65; Max[TCF]=1.35 aKLOC=FP*LOC_per_FP/1000 Java=53; C++=64 EAF=Product of selected factor NPEfforttime ReqAPMTDEV Result