Professional Documents
Culture Documents
TTDS Assignment 1 Fall 2023
TTDS Assignment 1 Fall 2023
MS – DATA SCIENCE
FALL 2023
TOOLS AND TECHNIQUES
FOR DATA SCIENCE (CT-583)
Assignment 1
Max Marks: 10
Due Date: 25-Nov-2023
Question 1
Suppose you are conducting a study to determine whether there is an association between gender and
preference for a particular brand of soda. You survey 100 people and ask them whether they prefer Brand
A or Brand B, as well as their gender. The results are as follows: [2.5 marks]
Brand A Brand B Total
Male 30 20 50
Female 25 25 50
Total 55 45 100
Using the chi-square method, test the hypothesis that gender and brand preference are independent. Use a
significance level of 0.05.
T, O, U, L, S, T, E, C, H, N, I, Q
Construct a decision tree that predicts whether or not a person will be approved for a credit card using
information gain to determine which feature to split on at each node.