Type I Type II Error Example

In this post, we will discuss Type I Type II error examples from real-life situations. Whenever sample data is used to estimate a population parameter, there is always a probability of error due to drawing an unusual sample. Two main types of error occur in hypothesis tests, namely type I and type II Errors.

Type I Error (False Positive)

It is rejecting the null hypothesis ($H_0$) when it is actually true. The probability of Type I Error is denoted by $\alpha$ (alpha). The most common values for type I error are: 0.10, 0.05, and 0.01, etc. The example of Type I Error: A medical test indicates a person has a disease when they actually do not.

Type II Error (False Negative)

Type II Error is failing to reject the null hypothesis ($H_0$) when it is actually false. The probability of Type II Error is denoted by $\beta$ (beta). The power of the test is denoted by $1-\beta$, which is the probability of correctly rejecting a false null hypothesis. The example of a Type II error is: A medical test fails to detect a disease when the person actually has it.

Comparison Table

Error TypeWhat HappensRealityRisk Symbol
Type IReject Hâ‚€ when it is true$H_0$ is true$\alpha$
Type IIFail to reject $H_0$ when it is false$H_1$ (alternative) is true$\beta$
$H_0$ True$H_0$ False
$H_0$ RejectedType I ErrorCorrect Decision
$H_0$ Not RejectedCorrect DecisionType II Error

Type I Type II Error Example (Real-Life Examples)

  1. Medical Testing
    • Type I Error (False Positive): A healthy person is diagnosed with a disease. It may lead to unnecessary stress, further tests, or even treatment.
    • Type II Error (False Negative): A person with a serious disease is told they are healthy. It may delay treatment and worsen health outcomes.
      In this case, the more severe error is a Type II error, because missing a true disease can be life-threatening.
  2. Court Trial (Justice System)
    • Type I Error: An innocent person is found guilty. It leads to punishing someone who did nothing wrong.
    • Type II Error: A guilty person is found not guilty. It led to the criminal going free.
      In this example, the more severe is often Type I, because the justice system typically aims to avoid punishing innocent people.
  3. Fire Alarm System
    • Type I Error: The alarm goes off, but there’s no fire. Therefore, a false alarm causes panic and interruption.
    • Type II Error: There is a fire, but the alarm does not go off. It can cause loss of life or property.
      The more severe error is Type II error, due to the potential deadly consequences.
  4. Spam Email Filter
    • Type I Error: A legitimate email is marked as spam. It means one will miss important messages.
    • Type II Error: A spam email is not caught and lands in your inbox. The spam email may be a minor annoyance or a potential phishing risk.
      The more severe error in this case is usually Type I, especially if it causes loss of critical communication (like job offers, invoices, etc.).
  5. Quality Control in Manufacturing
    • A factory tests whether its products meet safety standards. The null hypothesis ($H_0$) states that the product meets requirements, while the alternative ($H_1$) claims it is defective.
    • Type I Error (False Rejection): If a good product is mistakenly labeled defective, the company rejects a true null hypothesis ($H_0$), leading to unnecessary waste and financial loss.
    • Type II Error (False Acceptance): If a defective product passes inspection, the company fails to reject a false null hypothesis ($H_0$). This could result in unsafe products reaching customers, damaging the brand’s reputation.
Type I Type II Error Example

Which Error is More Severe?

  • It depends on the context.
  • In healthcare or safety, Type II errors are often more dangerous.
  • In justice or decision-making, Type I errors can be more ethically concerning.

Designing a good hypothesis test involves balancing both types of errors based on what’s at stake.

Learn about Generic Functions in R

Date Time Function Excel 17

Test your Excel skills with this 24-question quiz on Date & Time functions! Master from “Date Time Function Excel” Quiz MS Excel formulas like TODAY(), NOW(), TEXT(), NETWORKDAYS, EDATE, and more. Perfect for beginners and advanced users to practice Excel date calculations, formatting, and business-day logic. Let us start with the Date Time Function Excel Quiz now

Online MCQs about Date Time Function Excel with Answers

1. The worksheet contains the following data:
Excel Date Time Q3


The following formulas are typed into the following cells:
• P2: =DAY(N2)
• Q2: =MONTH(N2)
• R2: =YEAR(N2)
What will the cells P2, Q2, and R2 hold, respectively?

 
 
 
 

2. The worksheet contains the following data:
Date Time Excel Q5


What will be the result of the following formula: =MONTH(G3)?

 
 
 
 

3. The worksheet contains the following data:
Date time Excel Q6


What would be an appropriate formula from the list below to generate the last day of this month, given that the year is 2020?

 
 
 
 

4. The syntax for NETWORKDAYS is NETWORKDAYS(start_date, end_date, [holidays]). If there are 3 public holidays held in cells H3, H4, and H5. Which of the following formulas would work when trying to work out the number of working days in 2020?

 
 
 
 

5. Assume that today is the 21st of January, 2020, and we are using the day/month/year format for dates. What will be the result of: =TODAY()-7

 
 
 
 

6. Currently, cell R2 is formatted as text and holds the value 12. If we convert this to a short date format using the day/month/year system, what will be the result?

 
 
 
 

7. The worksheet contains the following data:
Date Time Functions Excel Q1


What will be the result of the following formula: =TEXT(F3, “DDD/M/YYYY”)?

 
 
 
 

8. The invoice date is the 3rd of January, 2020, i.e., 3/01/2020, which is held in cell D2. We want to work out how many working days there are between the invoice date and the end of the year, given that the country has a 3-day weekend of Saturday, Sunday, and Monday. What would be an appropriate formula from the list below?

 
 
 
 

9. Cell F3 holds the value: 3/04/2020, i.e., the 3rd of April, 2020.
Date Time Excel Q7


What does the following formula effectively generate =WORKDAY(EDATE(F3,1)-1,1)?

 
 
 
 

10. The worksheet contains the following data:
Date Time Excel Q5


What will be the result of the following formula: =MONTH(1&G3)&”/2020″?

 
 
 
 

11. Assume that today is the 1st of January, 2020 and we are using the day/month/year format for dates. What will be the result of the formula: =TODAY()+7

 
 
 
 

12. The worksheet contains the following data:
Date time Excel Q6


To generate the last day of this month, the following formula is used: =DATE(2020, MONTH(1&B2)+1,1)-1. Which option explains the roles of +1, 1, and -1 within the formula the best?

 
 
 
 

13. An invoice is due 10 working days after the invoice date. Which of the following would be an appropriate formula to get the due date, if the invoice date is 3/01/2020 and this value is held in cell D2?

 
 
 
 

14. The worksheet contains the following data:
Date time Excel Q6


What would be an appropriate formula from the list below to generate the first day of this month, given that the year is 2020?

 
 
 
 

15. Cell N3 currently holds the value: 1/07/2019 (see below), the date that a payment was due (1st of July, 2019).
Date Time Excel Q4


What would be an appropriate formula from the list below that returns the number of days overdue? (Note: you have to re-format the cell that contains the result to General)

 
 
 
 

16. Cell F3 holds the value: 3/04/2020, i.e., the 3rd of April, 2020.
Date Time Excel Q7


What will be the result of the following formula (after re-formatting the cell to ‘Date’): =EDATE(F3,1)-1?

 
 
 
 

17. An invoice is due 10 working days after the invoice date. Which of the following would be an appropriate formula to get the due date, if the invoice date is 3/01/2020 and this value is held in cell D2, and given that the country has a 3-day weekend of Saturday, Sunday, and Monday?

 
 
 
 

18. Of these three functions, which of these functions returns a number of days: DAYS, WORKDAY, NETWORKDAYS

 
 
 
 

19. The worksheet contains the following data
Date Time Functions Excel Q1


What will be an appropriate formula to convert this data into Wednesday, given that the 29th of December 1982 is a Wednesday?

 
 
 
 

20. The worksheet contains the following data:
Date time function excel 2


What will be the result of the following formula:
=”On “&TEXT(F3,”ddd/m/yyyy”)&” due “&VALUE(RIGHT(C3,6))

 
 
 
 

21. Cell F3 holds the value: 3/04/2020, i.e., the 3rd of April, 2020.
Date Time Excel Q7


Which of the following is an appropriate formula to calculate the end date of this month?

 
 
 
 

22. Cell F3 holds the value: 3/04/2020, i.e., the 3rd of April, 2020.
Date Time Excel Q7


What is the result of the following formula (after re-formatting the cell to ‘Date’): =EOMONTH(EDATE(F3,1),1)?

 
 
 
 

23. Cell F3 holds the value: 3/04/2020, i.e., the 3rd of April, 2020.
Date Time Excel Q7


What will the following formula return (after re-formatting the cell to ‘Date’): =EDATE(F3,1)?

 
 
 
 

24. What does the NOW() function do?

 
 
 
 

Question 1 of 24

Date Time Function Excel Quiz Q4

Online Date Time Function Excel Quiz

  • The MS Excel worksheet contains the following data
    What will be an appropriate formula to convert this data into Wednesday, given that the 29th of December 1982 is a Wednesday?
  • The MS Excel worksheet contains the following data:
    What will be the result of the following formula: =TEXT(F3, “DDD/M/YYYY”)?
  • The MS Excel worksheet contains the following data:
    What will be the result of the following formula: =”On “&TEXT(F3,”ddd/m/yyyy”)&” due “&VALUE(RIGHT(C3,6))
  • Currently, cell R2 is formatted as text and holds the value 12. If we convert this to a short date format using the day/month/year system, what will be the result?
  • Assume that today is the 1st of January, 2020, and we are using the day/month/year format for dates.
    What will be the result of the formula: =TODAY()+7
  • Assume that today is the 21st of January, 2020, and we are using the day/month/year format for dates.
    What will be the result of: =TODAY()-7
  • What does the NOW() function do?
  • The worksheet contains the following data:
    The following formulas are typed into the following cells:
    • P2: =DAY(N2)
    • Q2: =MONTH(N2)
    • R2: =YEAR(N2)
    What will the cells P2, Q2, and R2 hold, respectively?
  • Cell N3 currently holds the value: 1/07/2019 (see below), the date that a payment was due (1st of July, 2019).
    What would be an appropriate formula from the list below that returns the number of days overdue? (Note: you have to re-format the cell that contains the result to General)
  • The MS Excel worksheet contains the following data:
    What will be the result of the following formula: =MONTH(G3)?
  • The MS Excel worksheet contains the following data:
    What will be the result of the following formula: =MONTH(1&G3)&”/2020″?
  • The worksheet contains the following data:
    What would be an appropriate formula from the list below to generate the first day of this month, given that the year is 2020?
  • The MS Excel worksheet contains the following data:
    What would be an appropriate formula from the list below to generate the last day of this month, given that the year is 2020?
  • The MS Excel worksheet contains the following data:
    To generate the last day of this month, the following formula is used: =DATE(2020, MONTH(1&B2)+1,1)-1.
    Which option explains the roles of +1, 1, and -1 within the formula the best?
  • Of these three functions, which of these functions returns a number of days: DAYS, WORKDAY, NETWORKDAYS
  • An invoice is due 10 working days after the invoice date.
    Which of the following would be an appropriate formula to get the due date, if the invoice date is 3/01/2020 and this value is held in cell D2?
  • An invoice is due 10 working days after the invoice date.
    Which of the following would be an appropriate formula to get the due date, if the invoice date is 3/01/2020 and this value is held in cell D2, and given that the country has a 3-day weekend of Saturday, Sunday, and Monday?
  • The invoice date is the 3rd of January, 2020, i.e., 3/01/2020, which is held in cell D2. We want to work out how many working days there are between the invoice date and the end of the year, given that the country has a 3-day weekend of Saturday, Sunday, and Monday. What would be an appropriate formula from the list below?
  • The syntax for NETWORKDAYS is NETWORKDAYS(start_date, end_date, [holidays]). If there are 3 public holidays held in cells H3, H4, and H5.
    Which of the following formulas would work when trying to work out the number of working days in 2020?
  • Cell F3 holds the value: 3/04/2020, i.e., the 3rd of April, 2020.
    What will the following formula return (after re-formatting the cell to ‘Date’): =EDATE(F3,1)?
  • Cell F3 holds the value: 3/04/2020, i.e., the 3rd of April, 2020.
    Which of the following is an appropriate formula to calculate the end date of this month?
  • Cell F3 holds the value: 3/04/2020, i.e., the 3rd of April, 2020.
    What is the result of the following formula (after re-formatting the cell to ‘Date’): =EOMONTH(EDATE(F3,1),1)?
  • Cell F3 holds the value: 3/04/2020, i.e., the 3rd of April, 2020.
    What will be the result of the following formula (after re-formatting the cell to ‘Date’): =EDATE(F3,1)-1?
  • Cell F3 holds the value: 3/04/2020, i.e., the 3rd of April, 2020.
    What does the following formula effectively generate =WORKDAY(EDATE(F3,1)-1,1)?

Try Python MCQ Online Test 5

MCQs Permutations Combinations 14

Test your knowledge of permutations and combinations with this interactive quiz! The MCQs Permutations Combinations Quiz covers essential concepts like factorials, combinations, arrangements, and real-world applications. This quiz is perfect for students and enthusiasts looking to sharpen their probability and counting skills. Let us start with the MCQs Permutation Combinations Quiz now.

Learn about Counting Techniques in Probability

Online MCQs Permutations Combinations with Answers
Please go to MCQs Permutations Combinations 14 to view the test

Online MCQs Permutations Combinations

  • The number of ways to select 2 persons from 6, ignoring the order of selection, is
  • $n!=$?
  • An arrangement of all or some of a set of objects in a definite order is called
  • An arrangement of objects without caring for the order is called
  • ${}^nP_r$ =
  • ${}^nC_r$ =
  • In how many ways can a team of 6 players be chosen from 11 persons
  • How many terms are in the expansion of the $(q+p)^n$
  • ${}^{10}C_5=$
  • ${}^5C_5$ is equal to
  • The difference between permutation and combination lies in the fact that
  • Which of the following statements is true?
  • A homeowner doing some remodeling requires the services of both a plumbing contractor and an electrical contractor. If there are 15 plumbing contractors and 10 electrical contractors available in the area, in how many ways can the contractors be chosen?
  • How many permutations of size 3 can be constructed from the set (A, B, C, D, E)?
  • How many combinations of size 4 can be formed from a set of 6 distinct objects?
  • An experiment consists of three stages. There are five ways to accomplish the first stage, four ways to accomplish the second stage, and three ways to accomplish the third stage. The total number of ways to accomplish the experiment is
  • The $0!$ is
  • In how many ways can be letters in the word UNIVERSITY be arranged randomly
  • Seventeen teams can take part in the Football Championship of a country. In how many ways can the Gold, Silver, and Bronze medals be distributed among the teams?
  • The number of 3-digit telephone area codes that can be made if repetitions are not allowed is

See Recursion in R Language