Ayushi22jain / Diabetes-Statistical-Analysis

Used Inferential Statistics, Normal Deviate Z Test & One Sample T-Test in this model.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Diabetes-Statistical-Analysis

What is the difference between descriptive and inferential statistic?

Descriptive statistics summarize the characteristics of a data set. Inferential statistics allow you to test a hypothesis or assess whether your data is generalizable to the broader population.The goal of inferential statistics is to make generalizations about a population. In inferential statistics, a statistic is taken from the sample data (e.g., the sample mean) that used to make inferences about the population parameter (e.g., the population mean).

--What is the Z Test?

z tests are a statistical way of testing a hypothesis when either: We know the population variance, or We do not know the population variance but our sample size is large n ≥ 30 If we have a sample size of less than 30 and do not know the population variance, then we must use a t-test.

--One-Sample Z test

We perform the One-Sample Z test when we want to compare a sample mean with the population mean.

--Two Sample Z Test

We perform a Two Sample Z test when we want to compare the mean of two samples. Thus, we can conclude based on the P-value that we fail to reject the Null Hypothesis. We don’t have enough evidence to conclude that girls on average score of 10 marks more than the boys. Pretty simple, right?

--What is the t-Test?

t-tests are a statistical way of testing a hypothesis when: We do not know the population variance Our sample size is small, n < 30

--One-Sample t-Test

We perform a One-Sample t-test when we want to compare a sample mean with the population mean. The difference from the Z Test is that we do not have the information on Population Variance here. We use the sample standard deviation instead of population standard deviation in this case.

--Two-Sample t-Test

We perform a Two-Sample t-test when we want to compare the mean of two samples.

--Deciding between Z Test and T-Test

So when we should perform the Z test and when we should perform t-Test? It’s a key question we need to answer if we want to master statistics. If the sample size is large enough, then the Z test and t-Test will conclude with the same results. For a large sample size, Sample Variance will be a better estimate of Population variance so even if population variance is unknown, we can use the Z test using sample variance. Similarly, for a Large Sample, we have a high degree of freedom. And since t-distribution approaches the normal distribution, the difference between the z score and t score is negligible.

About

Used Inferential Statistics, Normal Deviate Z Test & One Sample T-Test in this model.


Languages

Language:Jupyter Notebook 100.0%