

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Statistical analysis encompasses summarizing data using descriptive statistics, understanding probability, analyzing distributions, and employing measures like mean, variance, covariance, and the covariance matrix.
Descriptive statistics involves methods to summarize and describe the main features of a dataset, including central tendency, variability, and distribution. These statistics provide concise summaries of data.
Measures of central tendency indicate the "center" of the data.
Mean: The average, calculated by summing the values and dividing by the number of values. Median: The middle value when the data is ordered. For example, in the dataset [50, 60, 70, 80, 90], the median is 70. Mode: The most frequent value in the dataset. A dataset can have multiple modes or no mode at all. The mode is found by ordering the dataset and identifying the most common value.
Measures of variability indicate the spread of the data.
Range: The difference between the maximum and minimum values. Variance: The average of the squared deviations from the mean. Standard Deviation (SD): The square root of the variance, representing the average distance from the mean. IQR (Interquartile Range): The spread of the middle 50% of the data, calculated as Q3 – Q1. For example, if data = [2, 4, 7, 8, 10, 15, 18], Q1 = 4 and Q3 = 15, so IQR = 11. The middle 50% of values lie between 4 and 15. IQR is robust to outliers, providing a better summary for skewed distributions.
Measures of relation describe how two variables move together.
Covariance: Indicates the direction of the relationship (positive, negative, or none). It measures the degree to which two variables change together. If study hours have no effect on exam scores, the covariance would be close to zero. Covariance is used in feature selection to identify variables with strong relationships and in time series analysis to analyze relationships between time series data. For example, a high positive covariance between house size and price indicates that house size is a significant feature for predicting house prices.
The covariance matrix summarizes the relationships between multiple variables.
Diagonal Values: Represent the variance of each variable. Off-Diagonal Values: Represent the covariance between pairs of variables. For example, Cov(Height, Weight) = 81.25 indicates a positive covariance, meaning taller people tend to be heavier.
A covariance matrix heatmap uses darker red values to indicate higher positive covariance and blue values to indicate negative covariance. Correlation is a scaled form of covariance, normalized between -1 and +1. Correlation matrices help visualize relationships before building models in Exploratory Data Analysis (EDA).
The shape of a distribution is described by skewness and kurtosis.
Skewness: Measures the asymmetry of a data distribution around its mean. A perfectly symmetric dataset has skewness = 0.
Positive Skewness: The distribution has a tail on the right side. Mean > Median > Mode. Negative Skewness: The distribution has a tail on the left side. Mean < Median < Mode. Zero Skewness: The distribution is symmetric. Mean = Median = Mode.
Kurtosis: Indicates whether a distribution has heavy tails (outliers) or not.
Excess Kurtosis: Compares the kurtosis coefficient with that of a normal distribution. Excess kurtosis = Kurt – 3. Leptokurtic: Positive excess kurtosis (kurtosis > 3), indicating a heavy-tailed distribution.