A comprehensive overview of distributions in statistics, covering key concepts such as frequency tables, graphs for categorical and quantitative variables, and methods for describing distributions using shape, center, spread, and outliers. It also includes practical examples and r code for visualizing and analyzing data.
Download MATH 3339 Distributions: A Guide to Understanding and Describing Data and more Exams Mathematics in PDF only on Docsity!
Distribution The distribution of a variable tells us what values it takes and how often it takes these values based on the individuals.
Frequency table Displays the ditterent categories then the count or percent of cases that fall in each category.
Graphs for cate- gorical variables
Graphs for quan- titative variables Bar Graphs: Each individual bar represents a category and the height of each of the cars are either represented by the count or percent. Pie charts: Helps us see what part of the whole each group forms. Dotplot stemplot histogram boxplot
Using R code First create a table: counts = table(grades$Grade) For Bar Graph: barplot(counts) For Pie chart: pie(counts) For Stem and leaf stem(dataset name$variable name) For BoxPlot: boxplot(dataset name$variable name)
There are four main characteris- Shape Center
tics to describe a distribution:
Describing distri- butions: SHAPE Spread Outliers - A distributions is SYMMETRIC if the right and lest sides of the graph are approx- imately mirror images of each other. - A distribution is SKEWED TO THE RIGHT if the right side (higher values) of the graph extends much farther out than the left side. - A distribution is SKEWED TO THE LEFT if the left side ( lower values) of the graph extends much farther that the right side. - A distribution is uniform if the graph is at the same height (frequency) from lowest to highest values of the variable. - CENTER: The values with roughly half the observations taking smaller values and half taking larger values. - SPREAD: From the graphs we describe the spread of a distribution by the smallest and largest values. OUTLIERS- individual values that fall outside the overall pattern.
Dot plot is made by putting dots above the values listed on a number line.
Stem - and - leaf plot 1) Separate each observation into a STEM consisting of all but the final rightmost digit and a LEAF, the final digit. Stems may have as many digits as needed, but each leaf contains only a single digit. 2) Write the stems in a vertical column with the smallest at the top and draw a vertical line at the right of the column. 3) Write each leaf in the row to the right of its stem, in increasing order out form the stem.
Measuring Cen- ter: The Mode
If the number of observations , n, is odd, the median M is the center observation in the ordered list.
If the number of observations n is even, the median M is the mean of the two center observation in the ordered list. The mode of a data set is the numerical value that appears the most frequently. The data set can have one mode, two or more modes. A data set may not have mode.
R-code mean and mean(setname) median median(setname)
Mean vs. median - If the data has values that are OUTLIER values that beyond the range of the others, the mean is going toward these outliers.
The median is resistant to extreme values (outliers) in the data set.
TRIMMED MEAN: Obtained by finding the mean of the values of the data exclud- ing a given percentage of the largest and smallest values. R-CODE: >mean(data, trim = 0.1)
Types of mea- surements for the spread Range percentiles Quartiles IQR; interquartile range variance standard deviation coeflcient of variation
Range is the ditterence between the highest and lowest values
Percentiles - The pth percentile of data is the value such that p percent of the observations fall at or below it.
The median is also a percentile value - the 50th percentile.
Determine per- centiles
If you are looking for the measurement that has a desiredpercentile rank, the 100Pth percentile, is the measurement withrank (or position in the list) of nP + 0.5, where n represents thenumber of data values in the sample. Suppose you know the position (order) of a value and want to know what percentile it is ranked at. If you have n data measurements, xi, reprents the 100(i - 0.5)/ nth percentile.
The quartiles - The first quartile is 25th percentile, Q1.
The second quartile is the median and the 50th percentile, Q
The third Quartile is the 75th percentile, Q
Detecting out- liers: 1.5 IQR rule
IQR, INTERQUARTILE RANGE: is the ditterence between Q3 and Q1: IQR = Q3 - Q
an outlier is an observation that is distant from the rest of the data
Outliers can occur by chance or by measurement errors.
Any point that falls outside the interval calculated by Q1 - 1.5(IQR) and Q3 + 1.5(IQR) Is considered an outlier.
Boxplot - A central box spans the quartiles
A line inside the box marks the median
Lines extend from the box out to the smallest and largest observations
Asterisks represents any values that are considered to be outliers.
Boxplots are most useful for side by side comparison of several distributions.