0% found this document useful (0 votes)
2 views

Experiments-converted

The document is a lab manual detailing various experiments using Microsoft Excel for statistical analysis. It includes instructions for creating frequency distribution tables, relative frequency distributions, bar graphs, pie charts, line graphs, frequency polygons, box plots, leaf plots, and calculating mean, mode, and median. Each experiment outlines the aim, purpose, steps involved, and expected outputs for effective data analysis.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Experiments-converted

The document is a lab manual detailing various experiments using Microsoft Excel for statistical analysis. It includes instructions for creating frequency distribution tables, relative frequency distributions, bar graphs, pie charts, line graphs, frequency polygons, box plots, leaf plots, and calculating mean, mode, and median. Each experiment outlines the aim, purpose, steps involved, and expected outputs for effective data analysis.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Statistical And analysis Lab manual

Experiment -5
In Microsoft Excel Spread sheet draw the frequency distribution
table for the given data (data set should contain minimum 50
data)

Aim: To prepare Microsoft excel spread sheet and to draw frequency


distribution table for the data.

Purpose: A data in excel spread sheet will be helpful for collecting data set
and analyses in charts.

Steps involved:
Step1: Enter your data into a worksheet.
Step2: Find the class interval and upper limit of data set.
Step3: In the data menu, choose data analysis to open the data analysis
dialog box.

Step4: In the data analysis box, select Histogram and click OK button.
Step5: In histogram, enter the data array into the input range box, Bin range
(upper limit data), output range, chart output & click OK to display the
frequency distribution in charts.

Step6: On Bar charts right click to find format series option then go to series
option to make Gap width 0% & vary colors by point using fill button.

Output:

Histogram
15
20
Frequency

10
40
5
60
0
20 40 60 80 100 More 80
Bin 100

1
Statistical And analysis Lab manual

Experiment-6
In Microsoft excel spread sheet draw the relative frequency
distribution table for the given data (data set should contain
minimum 50 data)

Aim: To prepare Microsoft excel spread sheet to draw the relative


frequency distribution table for the data.

Purpose: The data in excel spread sheet will be helpful for collecting data
set and finding relative frequency distribution in charts.

Steps involved:
Step1: Enter your data into a worksheet.
Step2: Find the class interval and upper limit of data set.
Step3: In the data menu, choose data analysis to open the data analysis
dialog box.

Step4: In the data analysis box, select Histogram and click OK button.
Step5: In histogram, enter the data array into the input range box, Bin range
(upper limit data), output range, & click OK button.

Step6: To find relative frequency use the relation each frequency value by
total frequency, then frequency and relative frequency values to display in
charts. (On Bar charts right click to find format series option then go to series
option to make Gap width 0% & vary colors by point using fill button).
Output:

Relative frequency for Science


0.28
0.3 0.24
frequency

0.18 0.18
Relative

0.2 0.12
0.1
0
1 2 3 4 5

Frequency

2
Statistical And analysis Lab manual

Experiment-7
Using Microsoft excel spread sheet plot bar graph for the data
collected from 100 people (for example, conduct a survey on the
favorite fruit of a person in your locality (restricting to 5 to 6
fruits).Explain the bar graph with minimum 30 words.

Aim: To conduct survey on favorite fruit of 100 persons using excel spread
sheet and to plot bar graph for the collected data.

Purpose: The data in excel spread sheet is helpful for collecting data set
and analyze in bar graph charts.

Steps involved:
Step1: Enter your data into a worksheet.
Step2: Count number of fruits with respect to their name to individual
person, using Countif relation & find total response.

Step3: Select the data that go into the chart (data cell having name of fruits
and count of fruits).

Step4: Select insert menu, recommended bar chart & choose the chart you
like.

Step5: Modify the chart by adding tittle name, axis tittles and format data
labels.
Output:

Survey on favorite fruits of a


person
30 23
Cont of fruits

19 18 18
20 12
10
10
0
apple orrange banana sapota grapes kiwi
Fruits

3
Statistical And analysis Lab manual

Experiment-8
Using Microsoft excel spread sheet plot pie chart for the data
collected from 50 people (for example, conduct a survey on the
smokers with respect to their ages in your locality).Explain the pie
chart with minimum 30 words.

Aim: To conduct survey on favorite fruit of 100 persons using excel spread
sheet and to plot bar graph for the collected data.

Purpose: The data in excel spread sheet is helpful for collecting data set
and analyze in bar graph charts.

Steps involved:
Step1: Enter your data into a worksheet.
Step2: Find count of age of smokers with respect to their range.
Step3: Select insert menu to find pivot table & click on pivot table to enter
table data & select existing worksheet to display in excel cell.

Step4: On right side of screen i.e., in pivot table fields, drag more table
values between areas rows and values.

Step5: Right click on any row label values for grouping, i.e., define starting at
and ending value with common difference then press ok button.

Step6: Right click on age of smoker values for summarizing data into count,
i.e., go to summarize values & click count.

Step7: Select the data that go into the pie chart (data cell having row labels
& count of age smokers).

Step8: Select insert menu, recommended pie chart & choose the chart you
like.

Step9: Modify the chart by adding tittle name.


Output:

4
Statistical And analysis Lab manual

Survey on the Smokers with respect


to Age
8%
20-34
21% 35-49

35% 50-64
18%
65-79
18%
80-94

Experiment-9
Using Microsoft Excel Spread Sheet draw a line graph for the given
dataset (The daily Pocket expenses of 206 students in a School).

Aim: To draw line graph for the given dataset.


Purpose: The data in excel spread sheet is helpful for collecting data set
and analyze in line graph charts.

Steps involved:
Step1: Enter your data into a worksheet.
Step2: Select the data that go into the chart (data cell having student name
and pocket expenses).

Step3: Select insert menu, recommended line chart & choose the chart you
like.

Step5: Modify the chart by adding tittle name, axis tittles and format data
labels.
Output:

50
45 44 44 44
44
40

30
33 32 3433 34
32
32 33 32 33 33
23
2322 222123 22 22 23
2322 23
23 22 22 22
20 Series1
10 12 12 12
111112 10
10 12

0 23 43 34 23 3
Stu1
Stu4
Stu7
Stu10
Stu13
Stu16
Stu19
Stu22
Stu25
Stu28
Stu31
Stu34
Stu37
Stu40
Stu43
Stu46
Stu49

5
Statistical And analysis Lab manual

Experiment -10
Using Microsoft Excel Spread Sheet draw frequency polygon and
frequency curve for the data collected from 50 people (For
example , Marks obtained by the students in your class in 5
subjects in previous examination). Explain your observations from
the graph in minimum 30 words.

Aim: To prepare Microsoft excel spread sheet and to draw frequency


polygon and frequency curve for the data.

Purpose: A data in excel spread sheet will be helpful for collecting data set
and analyses in charts.

Steps involved:
Step1: Enter your data into a worksheet.
Step2: Find the class interval and upper limit of data set.
Step3: In the data menu, choose data analysis to open the data analysis
dialog box.

Step4: In the data analysis box, select Histogram and click OK button.
Step5: In histogram, enter the data array into the input range box, Bin range
(upper limit data), output range, cumulative percentage & click OK to display
the frequency distribution in charts.(Individual for each subject follow the
same steps)

Step6: Add the first row value by `0` in all subjects.


Step7: Select the data that go into the polygon line chart (data cell having
Frequency column of all Subjects).

Step8: Select insert menu, go to inserted line chart & choose the chart you
like.

Step9: Modify the line chart by adding tittle name, axis tittles and format
data labels.

Step10: To draw frequency polygon curve, select data of cumulative


frequency of all subjects then select insert menu, go to scatter then select
scatter with smooth lines.

6
Statistical And analysis Lab manual

Step11: Modify the Curve by adding tittle name, axis tittles and format data
labels.

Output:

Frequency polygon for five Subjects


Sub1 Sub2 sub3 Sub4 Series6
100
13
80
24
22
60
12
40 11 10
3
3
20
2
0
0 0 0
20 40 60 80 100

Frequency Polygon curve


1.2

0.8

0.6

0.4

0.2

0
0 0.2 0.4 0.6 0.8 1 1.2
-0.2

Series1 Series2 Series3 Series4

7
Statistical And analysis Lab manual

Experiment-11
Using Microsoft Excel Spread Sheet construct a box plot for the
given dataset. (For example dataset can be the number of
passengers in a flat form at different time in a day).

Aim: To draw box plot for the given dataset.


Purpose: The data in excel spread sheet is helpful for collecting data set
and analyze in line box plot charts.

Steps involved:
Step1: Enter your data into a worksheet.
Step2: Select the data which is in passenger’s column to find minimum,
quartile1, median, quartile3 and maximum values using the following
relations
For Minimum value: =MIN(B8:B29)

Quartile value: =QUARTILE(B8:B29,1)


Median value: =MEDIAN(B8:B29)
Quartile value: =QUARTILE(B8:B29,3)
Maximum value: =MAX(B8:B29)

Step3: Find the difference above values by keeping minimum value as


constant.

Step4: Select the data that go into the box plot chart (data cell having
functions and difference column).

Step5: Select insert menu, recommended box plot chart & choose the chart
you like.

Step6: Modify the chart by adding tittle name, axis tittles and format data
labels.
Output:

Q1 median Q3 max
0% 20% 40% 60% 80% 100%

8
Statistical And analysis Lab manual

Experiment-12
Using Microsoft Excel Spread Sheet construct a leaf plot for the
given dataset. Explain the graph with minimum 30 words

Aim: To construct a leaf plot for the given dataset.


Purpose: The data in excel spread sheet is helpful for finding leaf of data
values.

Steps involved:
Step1: Enter your data into a worksheet
Step2: Find maximum and minimum value of data values using the relation
Min: =AVERAGE(Data range)
Max: =MAX(Data range)

Step3: Enter stem value from 1 to 9


Step4: To find leaf of data values use relation,
Leaf: =REPT("0 ",COUNTIF($B$10:$B$34,E16*10+0))&REPT("1
",COUNTIF($B$10:$B$34,E16*10+1))&REPT("2
",COUNTIF($B$10:$B$34,E16*10+2))&REPT("3
",COUNTIF($B$10:$B$34,E16*10+3))&REPT("4
",COUNTIF($B$10:$B$34,E16*10+4))&REPT("5
",COUNTIF($B$10:$B$34,E16*10+5))&REPT("6
",COUNTIF($B$10:$B$34,E16*10+6))&REPT("7
",COUNTIF($B$10:$B$34,E16*10+7))&REPT("8
",COUNTIF($B$10:$B$34,E16*10+8))&REPT("9
",COUNTIF($B$10:$B$34,E16*10+9)) for stem value 1, similarly use the same
relation to find leaf to other stem values up to 9th value.
Output:

9
Statistical And analysis Lab manual

Experiment-13
Using Microsoft Excel Spread Sheet to find Mean, Mode and
Median for the data given and also represent them in Histogram.

Aim: To find the Mean, Mode and Median for the given data and also
represent them in Histogram.

Purpose: The data in excel spread sheet will be helpful for collecting data
set and finding mean, mode and median in charts.

Steps involved:
Step1: Enter your data into a worksheet.
Step2: Find mean, mode and median using the default functions.
Mean: =AVERAGE(Data range)

Mode: =MODE(Data range)


Median: =MEDIAN(Data range)

Step3: Select insert menu to find pivot table & click on pivot table to enter
table data & select existing worksheet to display in excel cell.

Step4: On right side of screen i.e., in pivot table fields, drag more table
values between areas rows and values.

Step5: Right click on any row label values for grouping, i.e., define starting at
and ending value with common difference then press ok button.

Step6: Right click on age of Height values for summarizing data into count,
i.e., go to summarize values & click count.

Step7: Select the data that go into the Histogram chart (data cell having row
labels & Height of count).

Step8: Select insert menu, recommended bar plot chart & choose the chart
you like.

Step9: Modify the chart by adding tittle name, axis tittles and format data
labels. . (Right click on any one of bar chart then go to data series & make gap
width 0%, vary colors by point using fill button).

10
Statistical And analysis Lab manual

Output:

Histogram
16
14
12 95-104
Frequency

10
105-114
8
14 115-124
6 12
4 7 7 125-134
6
2 3 135-144
0
95-104 105-114 115-124 125-134 135-144 145-155 145-155
Heights of boys

Experiment-14
Generate a 50 random data sample (even and odd number
dataset) using Microsoft Excel spread sheet and determine the
range and Quartiles.

Aim: To generate 50 random data containing even and odd dataset and to
determine range and quartile.

Purpose: The data in excel spread sheet will be helpful for collecting data
set and finding mean, mode and median in charts.

Steps involved:
Step1: Enter your even and odd data set into a worksheet.
Step2: To find Quartile (Q) i.e., Q1, Q2 and Q3 for even dataset use the following
relations.

Q1: QUARTILE(Datarange,1)

Q2: QUARTILE(datarange,2)

Q3: QUARTILE(datarange,3)

Step3: To find Quartile range use the relation


IQR: Q3-Q1 (cells)

11
Statistical And analysis Lab manual

Step4: Similarly we can find for odd data set using the same dataset.
Output:

Experiment-15
Collect the current yield of a crop from 50 different persons
(problem statement can be changed according to priorities of the
tutor) in your locality and determine mean deviation and Quartile
deviation in Microsoft excel sheet and brief your inference with
less than 30 words.

Aim: To find the Mean deviation and quartile deviation using excel sheet.
Purpose: The data in excel spread sheet will be helpful for collecting data
set and finding mean deviation and quartile deviation.

Steps involved:
Step1: Enter your data into a worksheet.
Step2: Find mean using the default functions.
Mean: =AVERAGE(Data range)

Step3: Based on mean find mean deviation using the relation


Mean deviation: =B7-$E$7 (B7-crop yield, E7- mean)

Step4: To find absolute value of deviation use


Absolute: =ABS(deviation) and sum the value using default relation.

Step5: To calculate mean deviation use


MD: =H57/50 (ABS value/No. of observations)

12
Statistical And analysis Lab manual

Step6: To find Quartile deviation first we need to find Q3 and Q1 using


quartile relation.
Q1: QUARTILE(Datarange,1)

Q3: QUARTILE(datarange,3)

Next we find quartile deviation using relation

QD: (Q3-Q1)/2 Where Q3 and Q1 are cell values with respect to excel sheet.

Output:

Experiment-16
Collect data of any 2 livestock population from 50 different houses
in your locality (problem statement can be changed according to
priorities of the tutor) and determine the Standard deviation of
the data in Microsoft excel spread sheet and brief your inference
with less than 30 words.

Aim: To collect two livestock population from different houses and to


determine the standard deviation of the data in excel.

Purpose: The data in excel spread sheet will be helpful for collecting data
set and to find standard deviation of the data in excel.

Steps involved:
Step1: Enter your data into a worksheet having livestock population of cattle
and buffalo from different houses.

Step2: To find standard deviation of cattle and buffalo use the following
default relation.
Cattle: =STDVES.P(data range)

13
Statistical And analysis Lab manual

Buffalo: = STDVES.P(data range)

Output:

Experiment-17
Collect the data of two wheeler (with a rider and a pillion) crossing
a busy junction in your locality in the peak hours (problem
statement can be changed according to priorities of the tutor) and
determine the variance of the data in Microsoft excel spread
sheet and brief your inference with less than 30 words.

Aim: To collect two livestock population from different houses and to


determine the variance of the data in excel.

Purpose: The data in excel spread sheet will be helpful for collecting data
set and to find variance of the data in excel.

Steps involved:
Step1: Enter your data into a worksheet having number of two wheeler
Crossing junction.

Step2: To find variance use the default relation


Variance: =VAR.P(data range)

Output:

14
Statistical And analysis Lab manual

Experiment-18
Using Microsoft Excel spread sheet draw a Skewness graph and
kurtosis graph for randomly generated dataset.

Aim: To determine skewness and kurtosis for randomly generated dataset.


Purpose: The data in excel spread sheet will be helpful for collecting data
set and to find skewness and kurtosis.

Steps involved:
Step1: Enter your data value into a worksheet
Step2: generate the random values using the default relation
=RANDOMBETWEEN(1,100)

Step3: To find skewness and kurtosis go to data then data analysis, select
descriptive statistics and click ok button.

Output:

15
Statistical And analysis Lab manual

Experiment -19
#Write a python program to convert decimal to
binary,octal & hexadecimal.

dec=15
b=bin(dec)
o=oct(dec)
h=hex(dec)
print("decimal number is : ",dec)
print("binary value is : ",b)
print("octal value is : ",o)
print("hexadecimal value is : ",h)

Output :

16
Statistical And analysis Lab manual

Experiment -20
# Write a python program to add 2 integers and 2 strings
and print the result.

num1 = 100
num2 = 500
sum = num1+num2
print("the addition of two integers is : ",sum)
str1 = "Govt.polytechnic "
str2 = "Mosalehosahalli"
sum2 = str1+str2
print("the addition of two strings is : ",sum2)

Output:

17
Statistical And analysis Lab manual

Experiment -21
# Write a python program to find the sum of first 10
natural numbers.

num = 1
sum = 0
while(num<=10):
sum = sum+num
num = num+1
print("the sum of first 10 natural numbers is : ",sum)

Output:

Experiment -22
# Write a python program to find whether the
number is odd or even.
num = 101
if num % 2 == 0:
print("the number is EVEN")
else:
print("the number is ODD")
output:

18
Statistical And analysis Lab manual

Experiment -23
# Write a python program to find the variance
and standard deviation for the given data.
import statistics
sample = [130,137,136,142,135]
var = statistics.pvariance(sample)
print("The variance is : ",var)
sd = statistics.pstdev(sample)
print("The standar deviation is : ",sd)
Output:

19
Statistical And analysis Lab manual

Experiment -24
# Write a python program to display student
marks from the record.

file = open("student1", "r")


lines = file.readlines()

for x in lines :
print(x)

file.close()
output:

20
Statistical And analysis Lab manual

Experiment -25
# write a python program to create a labeled
bar graph using matplot.pyplot.
import matplotlib.pyplot as plt
x = ["Ramesh","Priya","Suresh","Akshay","Roopa"]
y = [74,23,80,34,99]
plt.title("Student marks Bar Graph")
plt.xlabel("Student Name")
plt.bar(x,y)
for (i,j) in zip(x,y):
plt.annotate(j,(i,j))
plt.show()
output:

21
Statistical And analysis Lab manual

Experiment -26
# Write a python program to create a labeled
pie chart using matplotlib.pylot.
import matplotlib.pyplot as plt
x = ["Ramesh","Priya","Suresh","Akshay","Roopa"]
y = [74,23,80,34,99]
plt.title("Student marks pie chart")

plt.pie(y, labels=x,autopct='%d')

plt.show()
Output:

22
Statistical And analysis Lab manual

Thanking you
Mruthunjaya V A
Lecturer GPT Koppal

23

You might also like