Basic Statistics for Data Science
Basic Statistics for Data Science
Normal distribution is essential for statistical analysis as it describes how data points cluster around a central mean value, and it is key for making probabilistic inferences. Its key characteristics include its bell-shaped curve, symmetry about the mean, and being defined by two parameters: mean and standard deviation, which determine its shape and spread .
In probability theory, independent events are those where the outcome of one does not affect the other, such as tossing a coin. Dependent events are those where the outcome of one event affects the outcome of another, like drawing balls from a bag without replacement, where the probability of the second draw depends on the first draw .
Correlation measures the strength and direction of a linear relationship between two variables. A positive correlation means that as one variable increases, so does the other, indicated by a correlation coefficient greater than zero. Conversely, a negative correlation means that as one variable increases, the other decreases, shown by a coefficient less than zero .
The role of probability in independent events is to quantify the likelihood of occurrences without considering prior outcomes, calculated by multiplying individual probabilities of each event. For dependent events, probability must account for previous outcomes, requiring the use of conditional probability, where each event's likelihood is recalculated based on prior results .
Linear regression is used to assess the relationship between a dependent variable and one or more independent variables by fitting a linear equation to the observed data. It predicts numerical outcomes. Logistic regression, however, is used when the dependent variable is categorical, and it models the probability of a binary outcome based on one or more predictor variables .
Descriptive statistics help summarize and describe the main features of a dataset. Key measures include mean (arithmetic average), mode (most frequent value), and median (middle value that divides the dataset in half).
Variance measures the spread between numbers in a data set by indicating how far each number lies from the mean. A large variance suggests data points are very spread out about the mean. The standard deviation, the square root of variance, provides a measure of dispersion that is in the same unit as the data, making it easier to interpret .
Percentile measures indicate the relative standing of a data point within the dataset, showing the percentage of data below it, useful for data variability assessment. Quartiles divide a dataset into quarters, helping to understand the spread and center of the dataset by categorizing the data into more manageable sections, offering easier interpretation of data trends .
Bias affects statistical results by causing systematic deviations from the true values, thus leading to inaccurate conclusions. Common types include selection bias, which involves non-random sampling leading to unrepresentative data; confirmation bias, which is analyzing data to confirm prior assumptions; and time interval bias, which occurs when specific time ranges are selected to produce desired outcomes .
Understanding the interquartile range is important as it measures the spread of the middle 50% of the data, providing a clear idea about the data's central tendency and dispersion, which helps in identifying outliers and the overall variability without being affected by extreme values .