Anda di halaman 1dari 25

# 1.

1 PROBLEM STATEMENT
Write a program to roll two unbiased dice 1000 times and plot the histogram.

Write a program to roll a loaded dice with the probabilities given as follows:

## 1: 1/8, 2: 1/8, 3:1/8, 4:1/8, 5:1/8, 6:3/8

Find the expected value and plot the histogram of the sum of two loaded dice.

1.2 OUTPUT
2.1 PROBLEM STATEMENT
Write a program to build a deck of cards and implement head, tail, shuffle and deal without
replacement.
2.2 OUTPUT
3.1 PROBLEM STATEMENT
Write a program to design a Slot Machine. Each play costs 1 INR. The symbols determine the prize won
in the following way.

## Symbol 1 Symbol 2 Symbol 3 Prize Won

DD DD DD 100
7 7 7 80
BBB BBB BBB 40
BB BB BB 25
B B B 10
C C C 10
All Combinations of Bars 5
C C * 5
C * C 5
* C C 5
* C * 2
C * * 2
* * C 2
3.2 OUTPUT

## 4.1 PROBLEM STATEMENT

Create a data frame, draw box plot, qplot, histogram and scatter plot and save dataframe to csv/txt data
file.
4.2 OUTPUT
5.1 PROBLEM STATEMENT
Generate 1000 N (10, 4) random numbers, perform random clustering and stratified sampling on it.
Also,

a) 90%, 95%, 99% Confidence Interval for Mean when sigma= 2, n=20.

b) 90%, 95%, 99% Confidence Interval for Mean when sigma= unknown, n=20.

c) 90%, 95%, 99% Confidence Interval for Mean when sigma= 2, n=40.
5.2 OUTPUT
6.1 PROBLEM STATEMENT
Generate Time Series which fit the following model and compute the appropriate parameters.

AR(1): Xt=Xt-1+Zt
6.2 CONSOLE
6.3 PLOT
7.1 PROBLEM STATEMENT

Generate Time Series which fit the following model and compute the appropriate parameters.

MA(1): Xt=Zt-1+Zt

7.2 CONSOLE
7.3 PLOT
8.1 PROBLEM STATEMENT
Generate Time Series which fit the following model and compute the appropriate parameters.
MA(1): Xt= Xt-1+Zt-1+Zt

8.2 CONSOLE
8.3 PLOT