SlideShare a Scribd company logo
1 of 12
Download to read offline
“How many hairs do you have on your head?”
            Scientific approximations

T Ashok
Founder & CEO, STAG Software
Architect-HBT

  in.linkedin.com/in/AshokSTAG
  ash_thiru




Mar 24, 2012
So what is the answer?




      © 2012. STAG Software Private Limited. All rights reserved.
SW Engg staff find it difficult
to deal with uncertainty
... on aspects whose “countability” is fuzzy.

So the typical answers seem to be based on seat-of-
the-pants approach.

In the few cases where we’ve encountered a similar
situation and solved it well, the estimates turn out to
be correct, otherwise it’s simply a shot in the dark,
praying to God that it turns out to be correct.




          © 2012. STAG Software Private Limited. All rights reserved.
An exact value may not be required

 ... rather it is the reasoning that allows us to
 come up with a value, and constantly
 improving the reasoning to better the value.




                                               Do not worry about
                                               PRECISION for now..

         © 2012. STAG Software Private Limited. All rights reserved.
Approximation is very natural to us.

It is in fact part of our instinct.

Think about this :
...we do not take measured steps when we walk
...we do not calculate the exact distance when reversing
the car and so on

Our natural learning system continuously learns in the
background and constantly adjusts the variables to refine
the approximation.



           © 2012. STAG Software Private Limited. All rights reserved.
“How long would it take to cart
                                    Mount Fuji away with dump
                                    trucks, one truckload at a time?”
                                    Answer is expected to be given in
                                    a minute..


                                    This book inspired me to develop
                                    the “Approximation Principle”
                                    that is a core concept in HBT
                                    (Hypothesis Based Testing).



© 2012. STAG Software Private Limited. All rights reserved.
Scientific Approximations
“Approximation Principle” (a core concept in HBT)

The measure whose value is to be approximated is based on a
set of parameters each having a varying sensitivity to the
outcome, with a formula that binds these.

The value of the parameters needs to be hypothesised, if
sensitive, needs to be tested and then the formula applied.
Iterate based on learning and potential estimated variation.

                                                     1. Identify the various variables
                                                     2. Connect them via a simple formula
                                                     3. compute the first value
                                                     4. Test the value quickly &
                                                     5. Refine



           © 2012. STAG Software Private Limited. All rights reserved.
Scientific approximations are vital to effective testing


                           .. to estimate effort..
                           ... to estimate #test cases
                           ... to estimate volume (data sizes)
                           ... to estimate load
                               and so on..




         © 2012. STAG Software Private Limited. All rights reserved.
Estimating #Test Cases
(Functionality Test)
Test Case is a combination of inputs
TC = {I1} x {I2} x {I3}

But it is bad idea to start from here!
Let us step back..

To validate an entity under test,
estimate #test scenarios (TS) &
then TC.
Test Scenario is a
combination of conditions.

Using approximation of #TC/TS,
estimate #TC.
                                                                        What do you is the #TS?

          © 2012. STAG Software Private Limited. All rights reserved.
Estimating Data Volumes..




                                              What is the volume of data that is
                                              typically created in year?




      © 2012. STAG Software Private Limited. All rights reserved.
Estimating Load




Depends on Operations, Users,
#Trains, #Seats/#Berths/train...



          © 2012. STAG Software Private Limited. All rights reserved.
After trying it on your head,
Use your head for doing this.

Cheers! Have a great conference.


                                Follow us                  @stagsoft

                                Check out our blog at www.stagsoftware.com/blog


     © 2012. STAG Software Private Limited. All rights reserved.

More Related Content

More from RIA RUI Society

Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...
Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...
Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...
RIA RUI Society
 
Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...
Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...
Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...
RIA RUI Society
 
Bug deBug Chennai 2012 Talk - Effective test management with triple t tools,...
Bug deBug Chennai 2012 Talk - Effective test management with triple t  tools,...Bug deBug Chennai 2012 Talk - Effective test management with triple t  tools,...
Bug deBug Chennai 2012 Talk - Effective test management with triple t tools,...
RIA RUI Society
 
Bug deBug Chennai 2012 Talk - Business value articulation in software project...
Bug deBug Chennai 2012 Talk - Business value articulation in software project...Bug deBug Chennai 2012 Talk - Business value articulation in software project...
Bug deBug Chennai 2012 Talk - Business value articulation in software project...
RIA RUI Society
 
Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...
Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...
Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...
RIA RUI Society
 
Html5 and beyond the next generation of mobile web applications - Touch Tou...
Html5 and beyond   the next generation of mobile web applications - Touch Tou...Html5 and beyond   the next generation of mobile web applications - Touch Tou...
Html5 and beyond the next generation of mobile web applications - Touch Tou...
RIA RUI Society
 
Achieving 5 Es in mobile testing
Achieving 5 Es in mobile testingAchieving 5 Es in mobile testing
Achieving 5 Es in mobile testing
RIA RUI Society
 
Importance of test coverage
Importance of test coverage Importance of test coverage
Importance of test coverage
RIA RUI Society
 
Automation Benefits and its future
Automation Benefits and its futureAutomation Benefits and its future
Automation Benefits and its future
RIA RUI Society
 

More from RIA RUI Society (20)

Creating delightful experiences
Creating delightful experiencesCreating delightful experiences
Creating delightful experiences
 
Typographic history, systems and perception
Typographic history, systems and perceptionTypographic history, systems and perception
Typographic history, systems and perception
 
Understanding Design and Brand Communication Workshop Content - Design Camp I...
Understanding Design and Brand Communication Workshop Content - Design Camp I...Understanding Design and Brand Communication Workshop Content - Design Camp I...
Understanding Design and Brand Communication Workshop Content - Design Camp I...
 
Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...
Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...
Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...
 
Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...
Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...
Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...
 
Bug deBug Chennai 2012 Talk - Web application usability by Parimala Hariprasad
Bug deBug Chennai 2012 Talk - Web application usability by Parimala HariprasadBug deBug Chennai 2012 Talk - Web application usability by Parimala Hariprasad
Bug deBug Chennai 2012 Talk - Web application usability by Parimala Hariprasad
 
Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...
Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...
Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...
 
Bug deBug Chennai 2012 Talk - Future of testing impact of mobile devices by S...
Bug deBug Chennai 2012 Talk - Future of testing impact of mobile devices by S...Bug deBug Chennai 2012 Talk - Future of testing impact of mobile devices by S...
Bug deBug Chennai 2012 Talk - Future of testing impact of mobile devices by S...
 
Bug deBug Chennai 2012 Talk - Effective test management with triple t tools,...
Bug deBug Chennai 2012 Talk - Effective test management with triple t  tools,...Bug deBug Chennai 2012 Talk - Effective test management with triple t  tools,...
Bug deBug Chennai 2012 Talk - Effective test management with triple t tools,...
 
Bug deBug Chennai 2012 Talk - Business value articulation in software project...
Bug deBug Chennai 2012 Talk - Business value articulation in software project...Bug deBug Chennai 2012 Talk - Business value articulation in software project...
Bug deBug Chennai 2012 Talk - Business value articulation in software project...
 
Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...
Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...
Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...
 
Usability testing for mobile apps - Touch Tour Chennai
Usability testing for mobile apps - Touch Tour ChennaiUsability testing for mobile apps - Touch Tour Chennai
Usability testing for mobile apps - Touch Tour Chennai
 
Introduction to Android OS - Touch Tour Chennai
Introduction to Android OS - Touch Tour ChennaiIntroduction to Android OS - Touch Tour Chennai
Introduction to Android OS - Touch Tour Chennai
 
Html5 and beyond the next generation of mobile web applications - Touch Tou...
Html5 and beyond   the next generation of mobile web applications - Touch Tou...Html5 and beyond   the next generation of mobile web applications - Touch Tou...
Html5 and beyond the next generation of mobile web applications - Touch Tou...
 
Demystyfing the touch device market - Touch Tour Chennai
Demystyfing the touch device market - Touch Tour ChennaiDemystyfing the touch device market - Touch Tour Chennai
Demystyfing the touch device market - Touch Tour Chennai
 
Cross platform mobile applications - Touch Tour Chennai
Cross platform mobile applications - Touch Tour ChennaiCross platform mobile applications - Touch Tour Chennai
Cross platform mobile applications - Touch Tour Chennai
 
Mobile app development using PhoneGap - A comprehensive walkthrough - Touch T...
Mobile app development using PhoneGap - A comprehensive walkthrough - Touch T...Mobile app development using PhoneGap - A comprehensive walkthrough - Touch T...
Mobile app development using PhoneGap - A comprehensive walkthrough - Touch T...
 
Achieving 5 Es in mobile testing
Achieving 5 Es in mobile testingAchieving 5 Es in mobile testing
Achieving 5 Es in mobile testing
 
Importance of test coverage
Importance of test coverage Importance of test coverage
Importance of test coverage
 
Automation Benefits and its future
Automation Benefits and its futureAutomation Benefits and its future
Automation Benefits and its future
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Recently uploaded (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 

Bug deBug Chennai 2012 Talk - How many hairs do you have on your head by T Ashok

  • 1. “How many hairs do you have on your head?” Scientific approximations T Ashok Founder & CEO, STAG Software Architect-HBT in.linkedin.com/in/AshokSTAG ash_thiru Mar 24, 2012
  • 2. So what is the answer? © 2012. STAG Software Private Limited. All rights reserved.
  • 3. SW Engg staff find it difficult to deal with uncertainty ... on aspects whose “countability” is fuzzy. So the typical answers seem to be based on seat-of- the-pants approach. In the few cases where we’ve encountered a similar situation and solved it well, the estimates turn out to be correct, otherwise it’s simply a shot in the dark, praying to God that it turns out to be correct. © 2012. STAG Software Private Limited. All rights reserved.
  • 4. An exact value may not be required ... rather it is the reasoning that allows us to come up with a value, and constantly improving the reasoning to better the value. Do not worry about PRECISION for now.. © 2012. STAG Software Private Limited. All rights reserved.
  • 5. Approximation is very natural to us. It is in fact part of our instinct. Think about this : ...we do not take measured steps when we walk ...we do not calculate the exact distance when reversing the car and so on Our natural learning system continuously learns in the background and constantly adjusts the variables to refine the approximation. © 2012. STAG Software Private Limited. All rights reserved.
  • 6. “How long would it take to cart Mount Fuji away with dump trucks, one truckload at a time?” Answer is expected to be given in a minute.. This book inspired me to develop the “Approximation Principle” that is a core concept in HBT (Hypothesis Based Testing). © 2012. STAG Software Private Limited. All rights reserved.
  • 7. Scientific Approximations “Approximation Principle” (a core concept in HBT) The measure whose value is to be approximated is based on a set of parameters each having a varying sensitivity to the outcome, with a formula that binds these. The value of the parameters needs to be hypothesised, if sensitive, needs to be tested and then the formula applied. Iterate based on learning and potential estimated variation. 1. Identify the various variables 2. Connect them via a simple formula 3. compute the first value 4. Test the value quickly & 5. Refine © 2012. STAG Software Private Limited. All rights reserved.
  • 8. Scientific approximations are vital to effective testing .. to estimate effort.. ... to estimate #test cases ... to estimate volume (data sizes) ... to estimate load and so on.. © 2012. STAG Software Private Limited. All rights reserved.
  • 9. Estimating #Test Cases (Functionality Test) Test Case is a combination of inputs TC = {I1} x {I2} x {I3} But it is bad idea to start from here! Let us step back.. To validate an entity under test, estimate #test scenarios (TS) & then TC. Test Scenario is a combination of conditions. Using approximation of #TC/TS, estimate #TC. What do you is the #TS? © 2012. STAG Software Private Limited. All rights reserved.
  • 10. Estimating Data Volumes.. What is the volume of data that is typically created in year? © 2012. STAG Software Private Limited. All rights reserved.
  • 11. Estimating Load Depends on Operations, Users, #Trains, #Seats/#Berths/train... © 2012. STAG Software Private Limited. All rights reserved.
  • 12. After trying it on your head, Use your head for doing this. Cheers! Have a great conference. Follow us @stagsoft Check out our blog at www.stagsoftware.com/blog © 2012. STAG Software Private Limited. All rights reserved.