This overview explores the concept of distribution in statistics, emphasizing its role in representing the diversity of characteristics within a sample or population. It highlights the importance of sampling, the contrast between population distribution and sample statistics, and practical data analysis methods. The document also touches on the tools necessary for statistical analysis, such as spreadsheets, programming languages, and statistical software. An introductory exploration into data collection, exploratory data analysis (EDA), and fundamental statistical methods is provided to aid in understanding data perspectives.
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.Content is provided to you AS IS for your information and personal use only.Download presentation by click this link.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.During download, if you can't get a presentation, the file might be deleted by the publisher.
Distribution : A mathematical way to represent the diversity of characteristics of a group. Group may be a sample and a population. • population distribution • distribution of a sample
statistics pop’n dist’n dist’n of a sample realistic imaginary data Theory (model)
Woodwork & Datawork • From real world • Data collecting • Exploring data • Reducing data • Modeling • Evaluating • From forest • Making timber • Inspecting wood grain • Cutting • Structuring • Finishing
Exploratory Data Analysis (EDA) The step to check the basic properties of data, by using the basic statistical methods. From EDA, we aim to develop insight on data, as a first step for more specific analysis.
Basic Statistical Methods Qualitative variable • frequency table • crosstabulation (contingency table) • bar chart, pie chart, ….
Example Data Credit_Card_Bank: p22 of SVV • 12 var’s & 100 obs’s • Many types of ‘offer’ to cardholders • To find the type of ‘offer’ that increases • cardholder’s usage maximally.
iseg [1] B B A T A T B A A T B T T B B B B B T B R A T A A [26] R B B R T T T A A B T B A R B B A T B B R T T A A [51] B A B B T A A T B A B A B R B A A R A T B T T B R [76] T A T A A B B B T R T T R T B A A A A A A B T A T Levels: A B R T Meaning of the levels are not known.
mseg [1] M L L M B A L A M H M L A M M B L B H L [21] H B L H H M A B H L A H A B L H L B A A [41] A H A L L H L A B A A B A B B A M A B L [61] L B B H B A B A B L B A H L M L L M A B [81] A L L M H A H H L A H L B A H A L L L H Levels: L < B < M < A < H L: low, B: below medium, M: medium, A: above medium, H: high levels(mseg)<-c("M","H","L","A","B") mseg<-factor(mseg, levels=c("L","B","M","A","H")) mseg
Histogram of loct08 20 15 Frequency 10 5 0 2 4 6 8 10 loct08 hist(xoct08,col="grey")
Quartiles : Q1, Q2 , Q3 Q1 : values ranked at 25% from lowest Q2 : values ranked at 50% from lowest Q3 : values ranked at 75% from lowest Median = Q2 IQR (Inter-Quartile Range) = Q3 – Q1
How to take : Q1, Q2, Q3 Q1 : c = 0.25*(n+1) Q2 : c= 0.5*(n+1) Q3 : c= 0.75*(n+1) If c is an integer, then c-th ranked value x[c] If c is not an integer, then (x[c-]+ x[c+])/2 c- : the largest lower integer than c c+ : the smallest upper integer than c
Frequency table freq %freq cum. freq %cum. freq Low Spender 26 0.26 26 0.26 Med Low Spender 20 0.20 46 0.46 Average Spender 11 0.11 57 0.57 Med High Spender 25 0.25 82 0.82 High Spender 18 0.18 100 1.00 ------------------------------------------------------------ Total 100 1.00 table(mseg) table(mseg)/length(mseg) cumsum(table(mseg)) cumsum(table(mseg))/length(mseg)
Bar chart of log(oct08) 20 15 10 5 0 (2,3] (3,4] (4,5] (5,6] (6,7] (7,8] (8,9] (9,10] (10,11]
Histogram & Bar chart Histogram : for quantitative variables connected bar’s Bar chart : for categorical variables disconnected bar’s
Contingency table of mseg and iseg iseg A B R T Total L 5 13 0 8 26 B 11 8 0 1 20 M 2 4 2 3 11 A 8 7 2 8 25 H 5 0 6 7 18 Total 31 32 10 27 100 mseg table(mseg,iseg) apply(table(mseg,iseg),1,sum) apply(table(mseg,iseg),2,sum)
Pie chart of iseg A 31 B 32 27 10 T R pie(table(iseg),col=c("red","light green","green","blue"))
30 25 20 15 10 5 0 A B R T Segmented bar chart of (mseg, iseg) - serial barplot(table(mseg,iseg),col=c("red","light green","green","blue","purple"))
12 10 8 6 4 2 0 A B R T Segmented bar chart of (mseg, iseg) - parallel barplot(table(mseg,iseg),col=c("red","light green","green","blue","purple"),beside=TRUE)
Mosaic Plot A B R T L B mseg M A H iseg mosaicplot(~iseg+mseg,col=rainbow(5))