Experiments-converted
Experiments-converted
Experiment -5
In Microsoft Excel Spread sheet draw the frequency distribution
table for the given data (data set should contain minimum 50
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)
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:
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:
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.
4
Statistical And analysis Lab manual
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).
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.
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)
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.
6
Statistical And analysis Lab manual
Step11: Modify the Curve by adding tittle name, axis tittles and format data
labels.
Output:
0.8
0.6
0.4
0.2
0
0 0.2 0.4 0.6 0.8 1 1.2
-0.2
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).
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)
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
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)
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)
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)
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)
12
Statistical And analysis Lab manual
Q3: QUARTILE(datarange,3)
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.
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
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.
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.
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.
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.
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