ATMA RAM SANATAN DHARM COLLEGE
Course Title: Probability For Computing
Practical
Submitted To:
Lokesh Kumar Shrivastav Sir
Faculty Of Computer Science
Submitted By:
Name : Shubham Kushwaha
Roll No. : 22/28090
Course : B.Sc. Computer Science Hons.
1. Plotting and fitting of Binomial distribution and graphical
representation of probabilities.
Formula Used =BINOM.DIST(B3,$G$2,A3, FALSE) Binomial distribution
Here, B3, G2 and A3 contain number of success, trials and A3
probability of success respectively.
2. Plotting and fitting of Multinomial distribution and graphical
representation of probabilities.
3. Plotting and fitting of Poisson distribution and graphical
representation of probabilities.
=POISSON.DIST(A3,$G$4,FALSE) Poisson distribution
Formula Used
=AVERAGE(A2:A26) Mean
Here, A3:A26 contains the data (i.e. from 31 to 24).
G4 contains mean and A3 is the first data (i.e. 31).
4. Plotting and fitting of Geometric distribution and graphical
representation of probabilities.
Formula Used =POWER(C3,A3-1)*B3 Geometric distribution
Here, C3, A3 & B3 are the probability of failure, no. of trials &
probability of success.
5. Plotting and fitting of Uniform distribution and graphical
representation of probabilities.
=IF(AND(A5 >= $D$4, A5 <= $D$5), 1 / Uniform distribution
Formula ($D$5 - $D$4), 0)
Used =MIN(A5:A24) Minimum
=MAX(A5:A24) Maximum
Here, A5:A24 contains the data (i.e. from 10.4 to 7.6).
D5 contains maximum and D4 has minimum.
6. Plotting and fitting of Exponential distribution and graphical
representation of probabilities.
=EXPON.DIST(A5,$D$6,TRUE) Exponential distribution
Formula
=AVERAGE(A5:A25) Mean
Used
=1/D5 λ
Here, A5:A25 contains the data (i.e. from 9.206343 to 9.276345).
D5 contains mean and D6 has λ.
7. Plotting and fitting of Normal distribution and graphical
representation of probabilities.
=NORM.DIST(A5,$D$5,$D$6,TRUE) Normal distribution
Formula Used =AVERAGE(A5:A25) Mean
=STDEV(A5:A25) Standard Deviation
Here, A5:A25 contains the data (i.e. from 9.206343 to 9.276345).
D5 contains mean and D6 has standard deviation.
8. Calculation of cumulative distribution functions for Exponential
and Normal distribution.
Exponential
=EXPON.DIST(E4, E3, TRUE)
distribution
Formula Used
=NORM.DIST(E10,E9,E8,TRUE) Normal Distribution
Here, E4, E3 contain the x and λ respectively.
E8, E9, E10 contain σ, μ and x respectively.
9. Application problems based on the Binomial distribution.
Formula Used =BINOM.DIST(7,B7,B8,FALSE) Binomial distribution
Here, B7 & B8 contain no. of trials and probability of success
respectively.
10. Application problems based on the Poisson distribution.
Formula Used =POISSON.DIST(1,A8, TRUE) Poisson distribution
Here, A8 contains means of the data.
11. Application problems based on the Normal distribution.
=1-NORMDIST(120, $A$9 , $B$9, TRUE) Normal
Formula Used
=NORMDIST(85, $A$9, $B$9, TRUE) distribution
Here, A9 and B9 contain means and standard deviation of the data
respectively.
12. Presentation of bivariate data through scatter-plot diagrams and
calculations of covariance.
Formula Used =COVAR(B5:B14,C5:C14) Covariance
Here, B5:B14 and C5:C14 contain the X and Y column data
respectively.
13. Calculation of Karl Pearson’s correlation coefficients.
Formula Used =PEARSON(A4:A8,B4:B8) Karl Pearson Correlation Coefficient
Here, A4:A8 & B4:B8 contains the respective X & Y data.
14. To find the correlation coefficient for a bivariate frequency
distribution.
Formula Used =CORREL(A6:A15,B6:B15) Correlation Coefficient
Here, A6:A15 & B6:B15 contains the respective X & Y data.
15. Generating Random numbers from discrete (Bernoulli, Binomial,
Poisson) distributions.
16. Generating Random numbers from continuous (Normal, Uniform)
distributions.
Bernoulli
=IF(RAND() <= 5, 1, 0)
distribution
Random Binomial
=BINOM.INV(10,0.5,RAND())
Formula number distribution
Used =POISSON.DIST(1,RAND(),FALSE) generation Poisson distribution
=NORM.DIST(RAND(),5,3,FALSE) using Normal distribution
Uniform
=ROUND(1 + (10 - 1 + 1)*RAND(), 0)
distribution