Project 1
1. Explain the data. Check It is supervised or Unsupervised. Demonstrate?
it is the supervised data because it have contain Labeled data.
Supervised and unsupervised learning have one key difference. Supervised learning uses labeled datasets, whereas unsupervised learning uses unlabeled datasets. By “labeled” we mean that the data is already tagged with the right answer. A classification problem uses algorithms to classify data into particular segments.
2. Estimate the minimum sample size n to get the 99% accurate predictions. (precision = 0.02)
Solution:
Given information:
Confidence level = C =99% =0.99
Alpha = 1 - C =0.01
Margin of error = E = 0.02
Estimate of the population proportion p is not given.
Whhen estiamte about the population p is not given we assume that p = 0.5
p = 0.5
The sample size n can be determine as
n= p*(1-p)* Zalpha/2^2/ E^2
4. Check that sex and smoking are statistically independent or not.
sex and smoking is a independent variable
5. Check that all regressor variables (independent variable) are independent of each other or not.
all are independent variable except age and charges are dependent
6. Check the dependency between response and regressors.
only charges are dependce on age remaing are independent