SlideShare a Scribd company logo
Probability & Statistics BSCS
Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila mr.harunahmad2014@gmail.com
Example 2.1: The following data shows the number of children in different families of a small locality:
1, 2, 4, 3, 0, 1, 2, 3, 1, 1, 0, 2, 1, 0, 2, 3, 0, 0, 1, 3.
Make a frequency distribution. Also find relative frequencies.
Solution:
Range = Maximum Value – Minimum Value
= 4 – 0
= 4
The Number of Children Tally The Number of Families (f) Relative Frequency
R.F =
𝒇
𝚺𝒇
0 //// 5 5/20 = 0.25
1 //// / 6 6/20 = 0.30
2 //// 4 4/20 = 0.20
3 //// 4 4/20 = 0.20
4 / 1 1/20 = 0.05
𝚺 20 1.00
Example 2.2: The following data shows the ages of 50 cancer patients admitted in Shaukat Khanum
Memorial Hospital, Lahore.
48 29 39 32 54 33 44 36 38 31
46 30 20 44 47 39 42 35 33 47
31 35 34 42 41 42 43 35 32 35
43 36 37 45 46 41 25 27 26 40
38 41 44 47 45 45 52 43 44 43
Make a frequency distribution. Also find class boundaries & mid points
Solution:
The following steps are involved in constructing a frequency distribution.
1) Range = Maximum Value – Minimum Value
= 54 – 20
= 34
2) Approximate number of classes
Number of classes = 1 + 3.322 log 𝑛
= 1 + 3.322 log(50)
= 1 + 3.322 (1.6990)
= 6.6066 ≅ 7 (Approximately)
3) With of class interval
Probability & Statistics BSCS
Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila mr.harunahmad2014@gmail.com
h =
𝑅𝑎𝑛𝑔𝑒
𝑛𝑜.𝑜𝑓 𝑐𝑙𝑎𝑠𝑠𝑒𝑠
=
34
7
= 4.8571 ≅ 5 (Approximately)
4) Group the entire data with an interval of 5 each and write down the classes in the first column under
the heading “Ages”. Count the actual number falling in each interval putting a tally (/) in the proper
interval for each value. Count the number of tallies for each interval & write down in the next
column, these are frequencies denoted by f.
Ages
(Class Limits)
Tally f Class
Boundaries
Mid
Points
20 - 24 / 1 19.5 – 24.5 22
25 – 29 //// 4 24.5 – 29.5 27
30 - 34 //// /// 8 29.5 – 34.5 32
35 – 39 //// //// / 11 34.5 – 39.5 37
40 - 44 //// //// //// 15 39.5 – 44.5 42
45 - 49 //// //// 9 44.5 – 49.5 47
50 - 54 // 2 49.5 – 54.5 52
𝚺 50
Example 2.3: Make a cumulative frequency distribution. Also find relative frequency & cumulative relative
frequency for the following data:
Ages f
20 - 24 1
25 – 29 4
30 - 34 8
35 – 39 11
40 - 44 15
45 - 49 9
50 - 54 2
Solution:
Ages f Class
Boundaries
Cumulative
frequency
(c.f)
Relative Frequency
R.F =
𝒇
𝚺𝒇
C.R.F =
𝒄.𝒇
𝚺𝒇
20 - 24 1 19.5 – 24.5 1 1/50 = 0.02 0.02
25 – 29 4 24.5 – 29.5 1 + 4 = 5 0.08 0.10
30 - 34 8 29.5 – 34.5 5 + 8 = 13 0.16 0.26
35 – 39 11 34.5 – 39.5 13 + 11 = 24 0.22 0.48
40 - 44 15 39.5 – 44.5 24 + 15 = 39 0.30 0.78
45 - 49 9 44.5 – 49.5 39 + 9 = 48 0.18 0.96
50 - 54 2 49.5 – 54.5 48 + 2 = 50 0.04 1.00
𝚺 50 1.00
Probability & Statistics BSCS
Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila mr.harunahmad2014@gmail.com
Example 2.4: Following is the distribution of marks obtained by 50 students in Computer Science.
Marks Y > 0 Y > 10 Y > 20 Y > 30 Y > 40 Y > 50
No. of
Students
50 46 40 20 10 3
1) Make a frequency distribution of the data
2) Find mid points & make a relative frequency distribution of the data
Solution:
1)
Marks No. of
students
(c.f)
Classes f
Y > 0 50 0 – 10 50 – 46 = 4
Y > 10 46 10 – 20 46 – 40 = 6
Y > 20 40 20 – 30 40 – 20 = 20
Y > 30 20 30 – 40 20 – 10 = 10
Y > 40 10 40 – 50 10 – 3 = 7
Y > 50 3 50 – 60 3
2)
Classes Frequency
(f)
Mid points
(Y)
Relative Frequency
R.F =
𝒇
𝚺𝒇
0 – 10 4 5 4/50 = 0.08
10 – 20 6 15 0.12
20 – 30 20 25 0.40
30 – 40 10 35 0.20
40 – 50 7 45 0.14
50 – 60 3 55 0.06
𝚺 50 1.00
Example 2.5: Find out cumulative relative frequency distribution from the following data
Y 6 7 8 9 10 11 12 13
Frequency 24 66 80 48 28 14 4 1
Where Y denoted the member of hours worked in a day workmen in a factory.
Probability & Statistics BSCS
Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila mr.harunahmad2014@gmail.com
Probability & Statistics BSCS
Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila mr.harunahmad2014@gmail.com
Probability & Statistics BSCS
Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila mr.harunahmad2014@gmail.com
Probability & Statistics BSCS
Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila mr.harunahmad2014@gmail.com
Probability & Statistics BSCS
Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila mr.harunahmad2014@gmail.com
Probability & Statistics BSCS
Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila mr.harunahmad2014@gmail.com
Probability & Statistics BSCS
Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila mr.harunahmad2014@gmail.com
Probability & Statistics BSCS
Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila mr.harunahmad2014@gmail.com
Probability & Statistics BSCS
Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila mr.harunahmad2014@gmail.com

More Related Content

DOC
Significant test using student T test
DOC
Significant test using One Way Anova
PPTX
Utilization of Data: Introduction to Statistics
PDF
Measure of Central Tendancy
PPTX
Assessment of Learning 1: Chapter 5 - Utilization of Assessment Data
PPTX
Methods of data presention
PPTX
Collection and Classification of Data
PPTX
Statistics Math project class 10th
Significant test using student T test
Significant test using One Way Anova
Utilization of Data: Introduction to Statistics
Measure of Central Tendancy
Assessment of Learning 1: Chapter 5 - Utilization of Assessment Data
Methods of data presention
Collection and Classification of Data
Statistics Math project class 10th

What's hot (7)

PPTX
analytical representation of data
PPTX
Blue print
PDF
Session III - Census and Registers - S. Falorsi, A. Fasulo, Census and Soc...
PPTX
Maths statistcs class 10
DOCX
Quantitative techniques
PPTX
Statistics Based On Ncert X Class
PPTX
Presentation of data
analytical representation of data
Blue print
Session III - Census and Registers - S. Falorsi, A. Fasulo, Census and Soc...
Maths statistcs class 10
Quantitative techniques
Statistics Based On Ncert X Class
Presentation of data
Ad

Similar to Lecture 03 Part 02 - All Examples of Chapter 02 by Muhammad Haroon (20)

PDF
maths-class-x-chapter-13-statistics-practice-paper-16-2024-answers.pdf
PPTX
MEASURES-OF-CENTRAL-TENDENCY-lecture-edited.pptx
PPTX
Chapter 3: Prsentation of Data
PPTX
Analysis and interpretation of Assessment.pptx
PPTX
MEASURES-OF-CENTRAL-TENDENCIES-1[1] [Autosaved].pptx
PPTX
Basic Statistics for Class 11, B.COm, BSW, B.A, BBA, MBA
PDF
Applied Business Statistics ,ken black , ch 2
PPTX
UM20BB151 Business Stats - Consolidated.pptx
ODP
Statistics For Entrepreneurs
DOC
Module 2 statistics
PPTX
Measures of Central Tendency
PPT
Different analytical techniques in management
PPTX
Statistics and probability
PPTX
MEASURES OF CENTRAL TENDENCY (GROUPED).pptx
PPTX
QUARTILE AND DECILE OF GROUPED DATA
PPTX
PPT-ELAH1 (1)UFSAUUGUGSGEGEGEGEGEGA.pptx
PDF
measures-of-central-tendency.pdf
PPTX
CLASS 10 MEAN MEDIAN MODE
PPTX
B.Ed.104 unit 4.1-statistics
PPTX
625156784-MEASURES-OF-CENTRAL-TENDENCY-FOR-GROUPED-DATA-ppt (1).pptx
maths-class-x-chapter-13-statistics-practice-paper-16-2024-answers.pdf
MEASURES-OF-CENTRAL-TENDENCY-lecture-edited.pptx
Chapter 3: Prsentation of Data
Analysis and interpretation of Assessment.pptx
MEASURES-OF-CENTRAL-TENDENCIES-1[1] [Autosaved].pptx
Basic Statistics for Class 11, B.COm, BSW, B.A, BBA, MBA
Applied Business Statistics ,ken black , ch 2
UM20BB151 Business Stats - Consolidated.pptx
Statistics For Entrepreneurs
Module 2 statistics
Measures of Central Tendency
Different analytical techniques in management
Statistics and probability
MEASURES OF CENTRAL TENDENCY (GROUPED).pptx
QUARTILE AND DECILE OF GROUPED DATA
PPT-ELAH1 (1)UFSAUUGUGSGEGEGEGEGEGA.pptx
measures-of-central-tendency.pdf
CLASS 10 MEAN MEDIAN MODE
B.Ed.104 unit 4.1-statistics
625156784-MEASURES-OF-CENTRAL-TENDENCY-FOR-GROUPED-DATA-ppt (1).pptx
Ad

More from National College of Business Administration & Economics ( NCBA&E) (20)

PPTX
Lecturre 07 - Chapter 05 - Basic Communications Operations
PDF
Lecture # 02 - OOP with Python Language by Muhammad Haroon
PPTX
Lecture 06 - Chapter 4 - Communications in Networks
PDF
Lecture 01 - Basic Concept About OOP With Python
PPTX
Lecture 05 - Chapter 3 - Models of parallel computers and interconnections
PDF
Lecture01 Part(B) - Installing Visual Studio Code On All Version Of Windows O...
PDF
Lecture02 - Fundamental Programming with Python Language
PDF
Lecture01 - Fundamental Programming with Python Language
PDF
Lecture 04 (Part 01) - Measure of Location
PPTX
Lecture 04 chapter 2 - Parallel Programming Platforms
PPTX
Lecture 04 Chapter 1 - Introduction to Parallel Computing
PPTX
Lecture 03 - Chapter 02 - Part 02 - Probability & Statistics by Muhammad Haroon
PDF
Lecture 03 - Synchronous and Asynchronous Communication - Concurrency - Fault...
PPTX
Lecture 03 - Chapter 02 - Part 01 - Probability & Statistics by Muhammad Haroon
PPTX
Lecture 02 - Chapter 01 - Probability & Statistics by Muhammad Haroon
PPTX
Lecture 02 - Chapter 1 (Part 02): Grid/Cloud Computing Systems, Cluster Comp...
PPTX
Lecture 01 - Chapter 1 (Part 01): Some basic concept of Operating System (OS)...
PDF
WHO director-general's opening remarks at the media briefing on covid-19 - 23...
PDF
Course outline of parallel and distributed computing
Lecturre 07 - Chapter 05 - Basic Communications Operations
Lecture # 02 - OOP with Python Language by Muhammad Haroon
Lecture 06 - Chapter 4 - Communications in Networks
Lecture 01 - Basic Concept About OOP With Python
Lecture 05 - Chapter 3 - Models of parallel computers and interconnections
Lecture01 Part(B) - Installing Visual Studio Code On All Version Of Windows O...
Lecture02 - Fundamental Programming with Python Language
Lecture01 - Fundamental Programming with Python Language
Lecture 04 (Part 01) - Measure of Location
Lecture 04 chapter 2 - Parallel Programming Platforms
Lecture 04 Chapter 1 - Introduction to Parallel Computing
Lecture 03 - Chapter 02 - Part 02 - Probability & Statistics by Muhammad Haroon
Lecture 03 - Synchronous and Asynchronous Communication - Concurrency - Fault...
Lecture 03 - Chapter 02 - Part 01 - Probability & Statistics by Muhammad Haroon
Lecture 02 - Chapter 01 - Probability & Statistics by Muhammad Haroon
Lecture 02 - Chapter 1 (Part 02): Grid/Cloud Computing Systems, Cluster Comp...
Lecture 01 - Chapter 1 (Part 01): Some basic concept of Operating System (OS)...
WHO director-general's opening remarks at the media briefing on covid-19 - 23...
Course outline of parallel and distributed computing

Recently uploaded (20)

PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
01-Introduction-to-Information-Management.pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Cell Types and Its function , kingdom of life
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
History, Philosophy and sociology of education (1).pptx
PPTX
master seminar digital applications in india
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Weekly quiz Compilation Jan -July 25.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Anesthesia in Laparoscopic Surgery in India
Practical Manual AGRO-233 Principles and Practices of Natural Farming
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Complications of Minimal Access Surgery at WLH
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
01-Introduction-to-Information-Management.pdf
What if we spent less time fighting change, and more time building what’s rig...
Chinmaya Tiranga quiz Grand Finale.pdf
Computing-Curriculum for Schools in Ghana
Cell Types and Its function , kingdom of life
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
History, Philosophy and sociology of education (1).pptx
master seminar digital applications in india
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Weekly quiz Compilation Jan -July 25.pdf

Lecture 03 Part 02 - All Examples of Chapter 02 by Muhammad Haroon

  • 1. Probability & Statistics BSCS Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila [email protected] Example 2.1: The following data shows the number of children in different families of a small locality: 1, 2, 4, 3, 0, 1, 2, 3, 1, 1, 0, 2, 1, 0, 2, 3, 0, 0, 1, 3. Make a frequency distribution. Also find relative frequencies. Solution: Range = Maximum Value – Minimum Value = 4 – 0 = 4 The Number of Children Tally The Number of Families (f) Relative Frequency R.F = 𝒇 𝚺𝒇 0 //// 5 5/20 = 0.25 1 //// / 6 6/20 = 0.30 2 //// 4 4/20 = 0.20 3 //// 4 4/20 = 0.20 4 / 1 1/20 = 0.05 𝚺 20 1.00 Example 2.2: The following data shows the ages of 50 cancer patients admitted in Shaukat Khanum Memorial Hospital, Lahore. 48 29 39 32 54 33 44 36 38 31 46 30 20 44 47 39 42 35 33 47 31 35 34 42 41 42 43 35 32 35 43 36 37 45 46 41 25 27 26 40 38 41 44 47 45 45 52 43 44 43 Make a frequency distribution. Also find class boundaries & mid points Solution: The following steps are involved in constructing a frequency distribution. 1) Range = Maximum Value – Minimum Value = 54 – 20 = 34 2) Approximate number of classes Number of classes = 1 + 3.322 log 𝑛 = 1 + 3.322 log(50) = 1 + 3.322 (1.6990) = 6.6066 ≅ 7 (Approximately) 3) With of class interval
  • 2. Probability & Statistics BSCS Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila [email protected] h = 𝑅𝑎𝑛𝑔𝑒 𝑛𝑜.𝑜𝑓 𝑐𝑙𝑎𝑠𝑠𝑒𝑠 = 34 7 = 4.8571 ≅ 5 (Approximately) 4) Group the entire data with an interval of 5 each and write down the classes in the first column under the heading “Ages”. Count the actual number falling in each interval putting a tally (/) in the proper interval for each value. Count the number of tallies for each interval & write down in the next column, these are frequencies denoted by f. Ages (Class Limits) Tally f Class Boundaries Mid Points 20 - 24 / 1 19.5 – 24.5 22 25 – 29 //// 4 24.5 – 29.5 27 30 - 34 //// /// 8 29.5 – 34.5 32 35 – 39 //// //// / 11 34.5 – 39.5 37 40 - 44 //// //// //// 15 39.5 – 44.5 42 45 - 49 //// //// 9 44.5 – 49.5 47 50 - 54 // 2 49.5 – 54.5 52 𝚺 50 Example 2.3: Make a cumulative frequency distribution. Also find relative frequency & cumulative relative frequency for the following data: Ages f 20 - 24 1 25 – 29 4 30 - 34 8 35 – 39 11 40 - 44 15 45 - 49 9 50 - 54 2 Solution: Ages f Class Boundaries Cumulative frequency (c.f) Relative Frequency R.F = 𝒇 𝚺𝒇 C.R.F = 𝒄.𝒇 𝚺𝒇 20 - 24 1 19.5 – 24.5 1 1/50 = 0.02 0.02 25 – 29 4 24.5 – 29.5 1 + 4 = 5 0.08 0.10 30 - 34 8 29.5 – 34.5 5 + 8 = 13 0.16 0.26 35 – 39 11 34.5 – 39.5 13 + 11 = 24 0.22 0.48 40 - 44 15 39.5 – 44.5 24 + 15 = 39 0.30 0.78 45 - 49 9 44.5 – 49.5 39 + 9 = 48 0.18 0.96 50 - 54 2 49.5 – 54.5 48 + 2 = 50 0.04 1.00 𝚺 50 1.00
  • 3. Probability & Statistics BSCS Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila [email protected] Example 2.4: Following is the distribution of marks obtained by 50 students in Computer Science. Marks Y > 0 Y > 10 Y > 20 Y > 30 Y > 40 Y > 50 No. of Students 50 46 40 20 10 3 1) Make a frequency distribution of the data 2) Find mid points & make a relative frequency distribution of the data Solution: 1) Marks No. of students (c.f) Classes f Y > 0 50 0 – 10 50 – 46 = 4 Y > 10 46 10 – 20 46 – 40 = 6 Y > 20 40 20 – 30 40 – 20 = 20 Y > 30 20 30 – 40 20 – 10 = 10 Y > 40 10 40 – 50 10 – 3 = 7 Y > 50 3 50 – 60 3 2) Classes Frequency (f) Mid points (Y) Relative Frequency R.F = 𝒇 𝚺𝒇 0 – 10 4 5 4/50 = 0.08 10 – 20 6 15 0.12 20 – 30 20 25 0.40 30 – 40 10 35 0.20 40 – 50 7 45 0.14 50 – 60 3 55 0.06 𝚺 50 1.00 Example 2.5: Find out cumulative relative frequency distribution from the following data Y 6 7 8 9 10 11 12 13 Frequency 24 66 80 48 28 14 4 1 Where Y denoted the member of hours worked in a day workmen in a factory.
  • 4. Probability & Statistics BSCS Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila [email protected]
  • 5. Probability & Statistics BSCS Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila [email protected]
  • 6. Probability & Statistics BSCS Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila [email protected]
  • 7. Probability & Statistics BSCS Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila [email protected]
  • 8. Probability & Statistics BSCS Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila [email protected]
  • 9. Probability & Statistics BSCS Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila [email protected]
  • 10. Probability & Statistics BSCS Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila [email protected]
  • 11. Probability & Statistics BSCS Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila [email protected]
  • 12. Probability & Statistics BSCS Muhammad Haroon-PhD Enrolled (CS) from HITEC University Taxila [email protected]