SlideShare a Scribd company logo
1 of 12
MODULE-5
EVALUATING HYPOTHESES
VARSHITHA BAI D
1JB19CS155
CONTENT
• Motivation
• Estimation Hypothesis Accuracy
• Sample Error and True Error
• Confidence intervals for Discrete –Valued Hypotheses
MOTIVATION
•It is important to evaluate the performance of learned hypotheses as precisely as possible
•One reason is simply to understand whether to use the hypothesis
•A second reason is that evaluating hypotheses is an integral component of many
learning methods
•Two key difficulties arise while learning a hypothesis and estimating its future accuracy
given only a limited set of data:
1.Bias in the estimate
2.Variance in the estimate
1.Bais in the estimate
•The observed accuracy of the learned hypothesis over the training examples is often a poor
estimator of its accuracy over future examples
•The learned hypothesis was derived from these examples, they will typically provide an
optimistically biased estimate of hypothesis accuracy over future examination.
•This is especially likely when the learner considers a very rich hypothesis space, enabling it to
overfit the training examples.
•To obtain an unbiased estimate of future accuracy, test the hypothesis on some set of test
examples chosen independently of the training examples and the hypothesis.
2.Variance in the estimate
•The hypothesis accuracy is measured over an unbiased set of test example independent of the
training examples
•The measured accuracy can still vary from the true accuracy, depending on the makeup of the
particular set of test examples.
•The smaller set of test examples, the greater the expected variance
ESTIMATING HYPOTHESIS ACCURACY
Sample Error : The sample error of a hypothesis with respect to some sample S of
instances drawn from X is the fraction of S that it misclassifies.
Definition: The sample error (errors(h)) of hypothesis h with respect to target function
f and data sample S is
Where n is the number of examples in S, and the quantity δ(f(x), h(x)) is 1 if f (x) ≠ h(x), and
0 otherwise.
ESTIMATING HYPOTHESIS ACCURACY
True Error : The true error of a hypothesis is the probability that it will misclassify a
single randomly drawn instance from the distribution D.
Definition: The true error (errorD(h)) of hypothesis h with respect to target function f
and distribution D, is the probability that h will misclassify an instance drawn at random
according to D.
Here the notation Pr denotes that the probability is taken over the instance distribution D.
Confidence intervals for Discrete -Valued
Hypothesis
Suppose we wish to estimate the true error for some discrete valued hypothesis h, based on its
observed sample error over a sample S, where
•The sample S contains n examples drawn independent of one another, and independent of h,
according to the probability distribution D.
•n ≥ 30.
•Hypothesis h commits r errors over these n examples (i.e., errors (h) = r/n).
Confidence intervals for Discrete -Valued
Hypothesis
Under these conditions, statistical theory allows to make the following assertions:
1. Given no other information, the most probable value of errorD (h) is errors(h).
2. With approximately 95% probability, the true error errorD (h) lies in the interval.
Confidence intervals for Discrete -Valued
Hypothesis
Example:
Suppose the data sample S contains n = 40 examples and that hypothesis h commits r =12 errors
over this data.
•The sample error is errors(h) = r/n = 12/40 = 0.30
• Given no other information, true error is errorD (h) = errors(h), i.e., errorD (h) =0.30
•With the 95% confidence interval estimate for errorD (h).
= 0.30 ± (1.96 * 0.07)
= 0.30 ± 0.14
Confidence intervals for Discrete -Valued
Hypothesis
3. A different constant, ZN, is used to calculate the N% confidence interval. The general expression for
approximate N% confidence intervals for errorD (h) is
Where the above equation describes how to calculate the confidence intervals, or error bars, for estimates of
errorD (h) that are based on errors(h).
•A more accurate rule of thumb is that the above approximation works well when
•Values of ZN for two-sided N% confidence intervals.
Table1.1:Values of ZN for two-sided N% confidence intervals.
where the constant ZN is chosen depending on the desired confidence level, using the values of ZN given in
Table 1.1.
Confidence intervals for Discrete -Valued
Hypothesis
Example:
Suppose the data sample S contains n = 40 examples and that hypothesis h commits r =12 errors
over this data.
•The sample error is errors(h) = r/n = 12/40 = 0.30
•With the 68% confidence interval estimate for errorD (h).
= 0.30 ± (1.00 * 0.07)
= 0.30 ± 0.07

More Related Content

Similar to Evaluating Hypotheses Accuracy and Confidence Intervals

Econometrics chapter 5-two-variable-regression-interval-estimation-
Econometrics chapter 5-two-variable-regression-interval-estimation-Econometrics chapter 5-two-variable-regression-interval-estimation-
Econometrics chapter 5-two-variable-regression-interval-estimation-Alamin Milton
 
Interval Estimation & Estimation Of Proportion
Interval Estimation & Estimation Of ProportionInterval Estimation & Estimation Of Proportion
Interval Estimation & Estimation Of Proportionmathscontent
 
Interval Estimation & Estimation Of Proportion
Interval Estimation & Estimation Of ProportionInterval Estimation & Estimation Of Proportion
Interval Estimation & Estimation Of ProportionDataminingTools Inc
 
Testing differences between means_The Basics
Testing differences between means_The BasicsTesting differences between means_The Basics
Testing differences between means_The Basicskbernhardt2013
 
Computational Learning Theory
Computational Learning TheoryComputational Learning Theory
Computational Learning Theorybutest
 
statistical inference
statistical inference statistical inference
statistical inference BasitShah18
 
Bayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering College
Bayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering CollegeBayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering College
Bayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering CollegeDhivyaa C.R
 
Hypothesis Testing techniques in social research.ppt
Hypothesis Testing techniques in social research.pptHypothesis Testing techniques in social research.ppt
Hypothesis Testing techniques in social research.pptSolomonkiplimo
 
Mca admission in india
Mca admission in indiaMca admission in india
Mca admission in indiaEdhole.com
 
Review & Hypothesis Testing
Review & Hypothesis TestingReview & Hypothesis Testing
Review & Hypothesis TestingSr Edith Bogue
 
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesisTesting of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesissvmmcradonco1
 
Lesson04_new
Lesson04_newLesson04_new
Lesson04_newshengvn
 
Statistical inference with Python
Statistical inference with PythonStatistical inference with Python
Statistical inference with PythonJohnson Ubah
 

Similar to Evaluating Hypotheses Accuracy and Confidence Intervals (20)

More Statistics
More StatisticsMore Statistics
More Statistics
 
Econometrics chapter 5-two-variable-regression-interval-estimation-
Econometrics chapter 5-two-variable-regression-interval-estimation-Econometrics chapter 5-two-variable-regression-interval-estimation-
Econometrics chapter 5-two-variable-regression-interval-estimation-
 
Chapter09
Chapter09Chapter09
Chapter09
 
Interval Estimation & Estimation Of Proportion
Interval Estimation & Estimation Of ProportionInterval Estimation & Estimation Of Proportion
Interval Estimation & Estimation Of Proportion
 
Interval Estimation & Estimation Of Proportion
Interval Estimation & Estimation Of ProportionInterval Estimation & Estimation Of Proportion
Interval Estimation & Estimation Of Proportion
 
Testing differences between means_The Basics
Testing differences between means_The BasicsTesting differences between means_The Basics
Testing differences between means_The Basics
 
Computational Learning Theory
Computational Learning TheoryComputational Learning Theory
Computational Learning Theory
 
6. point and interval estimation
6. point and interval estimation6. point and interval estimation
6. point and interval estimation
 
statistical inference
statistical inference statistical inference
statistical inference
 
Bayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering College
Bayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering CollegeBayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering College
Bayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering College
 
UNIT II (7).pptx
UNIT II (7).pptxUNIT II (7).pptx
UNIT II (7).pptx
 
Hypothesis Testing techniques in social research.ppt
Hypothesis Testing techniques in social research.pptHypothesis Testing techniques in social research.ppt
Hypothesis Testing techniques in social research.ppt
 
Mca admission in india
Mca admission in indiaMca admission in india
Mca admission in india
 
Review & Hypothesis Testing
Review & Hypothesis TestingReview & Hypothesis Testing
Review & Hypothesis Testing
 
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesisTesting of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
 
Bayes Theorem.pdf
Bayes Theorem.pdfBayes Theorem.pdf
Bayes Theorem.pdf
 
TEST OF SIGNIFICANCE.pptx
TEST OF SIGNIFICANCE.pptxTEST OF SIGNIFICANCE.pptx
TEST OF SIGNIFICANCE.pptx
 
Lesson04_new
Lesson04_newLesson04_new
Lesson04_new
 
Statistical inference with Python
Statistical inference with PythonStatistical inference with Python
Statistical inference with Python
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 

Recently uploaded

Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 

Evaluating Hypotheses Accuracy and Confidence Intervals

  • 2. CONTENT • Motivation • Estimation Hypothesis Accuracy • Sample Error and True Error • Confidence intervals for Discrete –Valued Hypotheses
  • 3. MOTIVATION •It is important to evaluate the performance of learned hypotheses as precisely as possible •One reason is simply to understand whether to use the hypothesis •A second reason is that evaluating hypotheses is an integral component of many learning methods •Two key difficulties arise while learning a hypothesis and estimating its future accuracy given only a limited set of data: 1.Bias in the estimate 2.Variance in the estimate
  • 4. 1.Bais in the estimate •The observed accuracy of the learned hypothesis over the training examples is often a poor estimator of its accuracy over future examples •The learned hypothesis was derived from these examples, they will typically provide an optimistically biased estimate of hypothesis accuracy over future examination. •This is especially likely when the learner considers a very rich hypothesis space, enabling it to overfit the training examples. •To obtain an unbiased estimate of future accuracy, test the hypothesis on some set of test examples chosen independently of the training examples and the hypothesis.
  • 5. 2.Variance in the estimate •The hypothesis accuracy is measured over an unbiased set of test example independent of the training examples •The measured accuracy can still vary from the true accuracy, depending on the makeup of the particular set of test examples. •The smaller set of test examples, the greater the expected variance
  • 6. ESTIMATING HYPOTHESIS ACCURACY Sample Error : The sample error of a hypothesis with respect to some sample S of instances drawn from X is the fraction of S that it misclassifies. Definition: The sample error (errors(h)) of hypothesis h with respect to target function f and data sample S is Where n is the number of examples in S, and the quantity δ(f(x), h(x)) is 1 if f (x) ≠ h(x), and 0 otherwise.
  • 7. ESTIMATING HYPOTHESIS ACCURACY True Error : The true error of a hypothesis is the probability that it will misclassify a single randomly drawn instance from the distribution D. Definition: The true error (errorD(h)) of hypothesis h with respect to target function f and distribution D, is the probability that h will misclassify an instance drawn at random according to D. Here the notation Pr denotes that the probability is taken over the instance distribution D.
  • 8. Confidence intervals for Discrete -Valued Hypothesis Suppose we wish to estimate the true error for some discrete valued hypothesis h, based on its observed sample error over a sample S, where •The sample S contains n examples drawn independent of one another, and independent of h, according to the probability distribution D. •n ≥ 30. •Hypothesis h commits r errors over these n examples (i.e., errors (h) = r/n).
  • 9. Confidence intervals for Discrete -Valued Hypothesis Under these conditions, statistical theory allows to make the following assertions: 1. Given no other information, the most probable value of errorD (h) is errors(h). 2. With approximately 95% probability, the true error errorD (h) lies in the interval.
  • 10. Confidence intervals for Discrete -Valued Hypothesis Example: Suppose the data sample S contains n = 40 examples and that hypothesis h commits r =12 errors over this data. •The sample error is errors(h) = r/n = 12/40 = 0.30 • Given no other information, true error is errorD (h) = errors(h), i.e., errorD (h) =0.30 •With the 95% confidence interval estimate for errorD (h). = 0.30 ± (1.96 * 0.07) = 0.30 ± 0.14
  • 11. Confidence intervals for Discrete -Valued Hypothesis 3. A different constant, ZN, is used to calculate the N% confidence interval. The general expression for approximate N% confidence intervals for errorD (h) is Where the above equation describes how to calculate the confidence intervals, or error bars, for estimates of errorD (h) that are based on errors(h). •A more accurate rule of thumb is that the above approximation works well when •Values of ZN for two-sided N% confidence intervals. Table1.1:Values of ZN for two-sided N% confidence intervals. where the constant ZN is chosen depending on the desired confidence level, using the values of ZN given in Table 1.1.
  • 12. Confidence intervals for Discrete -Valued Hypothesis Example: Suppose the data sample S contains n = 40 examples and that hypothesis h commits r =12 errors over this data. •The sample error is errors(h) = r/n = 12/40 = 0.30 •With the 68% confidence interval estimate for errorD (h). = 0.30 ± (1.00 * 0.07) = 0.30 ± 0.07