Task 1

  1. Please list out their definitions:

So, for two events, if one event happens to not occur, then the events are independent and mutually exclusive. They are both time of occurence and realisation dependent.

  1. Choose an experiment (or different experiments), and describe the outcomes of the experiment (i.e. sample space) a bit atleast.  Then, give us an example of two events that are

Experiment: Tossing a Fair Six-Sided Die

Sample Space (Outcomes): {1, 2, 3, 4, 5 ,6}

i. Mutually Exclusive Events:

ii. Not Mutually Exclusive Events:

iii. Independent Events:

iv. Not Independent Events:

These events are not independent because the outcome of one event does affect the probability of the other event. If you roll a 5 or 6 (event H), it is guaranteed that you also rolled an even number (event G). Therefore, G and H are not independent.

Task 2

  1. Adding the dataset to the global environment

    #Clearing the global environment
    rm(list = ls())
db = read.csv('/Users/aritraray/Downloads/train.csv')
# Creating a three-way table
table(db$Survived,
      db$Sex, 
      db$Pclass
      )
## , ,  = 1
## 
##    
##     female male
##   0      3   77
##   1     91   45
## 
## , ,  = 2
## 
##    
##     female male
##   0      6   91
##   1     70   17
## 
## , ,  = 3
## 
##    
##     female male
##   0     72  300
##   1     72   47
  1. Recreate the same table using pivot charts in Excel.

    Passenger class in columns:

Passenger class in rows: