From 457fa9a72975357a9ec43108fda4a1b72705baa2 Mon Sep 17 00:00:00 2001 From: Vikas Rawal Date: Wed, 27 Nov 2019 16:21:18 +0530 Subject: [PATCH] Added more image files --- acjlectures.org | 91 --------------------------------------------- boxplotyield1.png | 3 ++ boxplotyield2.png | 3 ++ boxplotyield3.png | 3 ++ productionhist1.png | 3 ++ productionhist2.png | 3 ++ vioplotyield1.png | 3 ++ vioplotyield3.png | 3 ++ 8 files changed, 21 insertions(+), 91 deletions(-) create mode 100644 boxplotyield1.png create mode 100644 boxplotyield2.png create mode 100644 boxplotyield3.png create mode 100644 productionhist1.png create mode 100644 productionhist2.png create mode 100644 vioplotyield1.png create mode 100644 vioplotyield3.png diff --git a/acjlectures.org b/acjlectures.org index 88b8156..cfa1511 100644 --- a/acjlectures.org +++ b/acjlectures.org @@ -6,20 +6,6 @@ #+BEGIN_SRC emacs-lisp-slide (org-show-animate '("Quantitative Methods, Part-II" "Vikas Rawal" "Prachi Bansal" "" "" "")) #+END_SRC -* Lecture plan -** Descriptive Statistics [1 day] -*** Measures of central tendency -*** Dispersion -*** Making Data Meaningful -**** Cross-tabulations -**** Data visualisation -** Probability and Inference [2 days] -*** Probability/Relevance to statistics -*** Sampling distributions -*** Hypothesis testing -** Correlations and Regression [1 day] -** All afternoons will be used for workshops - * Day 1 ** Title slide #+BEGIN_SRC emacs-lisp-slide @@ -305,44 +291,6 @@ $cov=\frac{standard.deviation}{mean}$ hist(b$yield,main="Histogram of wheat yields",ylim=c(0,4000)) #+END_SRC -*** Histogram with smaller bins - -#+RESULTS: ccpc-wheat-hist11 -[[file:productionhist11.png]] - -#+NAME: ccpc-wheat-hist11 -#+BEGIN_SRC R :results output graphics :exports results :file productionhist11.png :width 400 :height 300 :type cairo :family Garamond - subset(ccpc,Year_Agriculture==2009)->b - subset(b,Crop_code %in% 20 )->b - b$Main_Product_Qtls*100/b$Crop_Area_Ha->b$yield - hist(b$yield,main="Histogram of wheat yields",breaks=seq(0,25000,250),ylim=c(0,4000)) -#+END_SRC - -*** Histogram with smaller bins - -#+RESULTS: ccpc-wheat-hist12 -[[file:productionhist12.png]] - -#+NAME: ccpc-wheat-hist12 -#+BEGIN_SRC R :results output graphics :exports results :file productionhist12.png :width 400 :height 300 :type cairo :family Garamond - subset(ccpc,Year_Agriculture==2009)->b - subset(b,Crop_code %in% 20 )->b - b$Main_Product_Qtls*100/b$Crop_Area_Ha->b$yield - hist(b$yield,main="Histogram of wheat yields",breaks=seq(0,25000,250)) -#+END_SRC - -*** Histogram (absolute frequencies) with unequal bins distorts the shape -#+NAME: ccpc-wheat-hist3 -#+BEGIN_SRC R :results output graphics :exports results :file productionhist3.png :width 400 :height 300 :type cairo :family Garamond - subset(ccpc,Year_Agriculture==2009)->b - subset(b,Crop_code %in% 20 )->b - b$Main_Product_Qtls*100/b$Crop_Area_Ha->b$yield - hist(b$yield,freq=T,main="Histogram of wheat yields",breaks=c(0,1000,1500,2000,2200,2500,3000,3200,3400,3800,4000,5000,10000,21000)) -#+END_SRC - -#+RESULTS: ccpc-wheat-hist3 -[[file:productionhist3.png]] - *** Histogram with relative densities :slide: #+RESULTS: ccpc-wheat-hist2 @@ -357,39 +305,12 @@ $cov=\frac{standard.deviation}{mean}$ hist(b$yield,freq=F,main="Histogram of wheat yields",ylim=c(0,0.00040)) #+END_SRC -*** Histogram with relative densities - -#+RESULTS: ccpc-wheat-hist21 -[[file:productionhist21.png]] - -#+NAME: ccpc-wheat-hist21 -#+BEGIN_SRC R :results output graphics :exports results :file productionhist21.png :width 400 :height 300 :type cairo :family Garamond - subset(ccpc,Year_Agriculture==2009)->b - subset(b,Crop_code %in% 20)->b - b$Main_Product_Qtls*100/b$Crop_Area_Ha->b$yield - hist(b$yield,freq=F,main="Histogram of wheat yields",breaks=seq(0,25000,250),ylim=c(0,0.00040)) -#+END_SRC - -*** Histogram with unequal bins must use relative densities - -#+RESULTS: ccpc-wheat-hist4 -[[file:productionhist4.png]] - -#+NAME: ccpc-wheat-hist4 -#+BEGIN_SRC R :results output graphics :exports results :file productionhist4.png :width 400 :height 300 :type cairo :family Garamond - subset(ccpc,Year_Agriculture==2009)->b - subset(b,Crop_code %in% 20 )->b - b$Main_Product_Qtls*100/b$Crop_Area_Ha->b$yield - hist(b$yield,freq=F,main="Histogram of wheat yields",breaks=c(0,1000,1500,2000,2200,2500,3000,3200,3400,3800,4000,5000,10000,21000),ylim=c(0,0.00040)) -#+END_SRC - *** Boxplot :slide: **** Invented by John Tukey in 1970 **** Many variations proposed since then, though the essential form and idea as remained intact. - *** Boxplot of wheat yields :slide: #+RESULTS: ccpc-wheat-box1 @@ -447,7 +368,6 @@ $cov=\frac{standard.deviation}{mean}$ boxplot(yield~Crop_code,data=b,main="Boxplots of yields of various crops",las=3,ylim=c(0,8000),outline=F) #+END_SRC - *** Violin plots :slide: #+RESULTS: ccpc-crop-vio @@ -466,16 +386,5 @@ $cov=\frac{standard.deviation}{mean}$ -* Workshop plan -** Introduction to R -** Data Tables -** ggplot2 - -* Datasets -** Census -** PLFS/Chandan's data -** Suicides -** CPI -** Pulses diff --git a/boxplotyield1.png b/boxplotyield1.png new file mode 100644 index 0000000..843ead7 --- /dev/null +++ b/boxplotyield1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70637cdb6fe9cb6dcc71574625e99d460f51568ac5a484c4733c829b34893056 +size 3417 diff --git a/boxplotyield2.png b/boxplotyield2.png new file mode 100644 index 0000000..36fba56 --- /dev/null +++ b/boxplotyield2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d9d31af4c5ca8461a90e19e49f9ba18f0bbc70e7ac2a2e48788536bb962af13 +size 3481 diff --git a/boxplotyield3.png b/boxplotyield3.png new file mode 100644 index 0000000..692e4b7 --- /dev/null +++ b/boxplotyield3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f42d9c8e4a1ec785ba2d027294eaabdc5327c146c32c006bdc04cb1514e56c6 +size 6083 diff --git a/productionhist1.png b/productionhist1.png new file mode 100644 index 0000000..2d837d3 --- /dev/null +++ b/productionhist1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ac71f081b40a2012f863d38a11a1b9158c443fe1a7cfae2fced7a5ba0a7379c +size 4442 diff --git a/productionhist2.png b/productionhist2.png new file mode 100644 index 0000000..05793cf --- /dev/null +++ b/productionhist2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d557b4bec1fc4ad2f3eac41f2426e11b90e1b08d49b26c2350028949ff1909ab +size 4296 diff --git a/vioplotyield1.png b/vioplotyield1.png new file mode 100644 index 0000000..d97e356 --- /dev/null +++ b/vioplotyield1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66d244e035e81861bb8f46e7a67e2aa2b9977c171699c70ed762ea997699ba4d +size 7731 diff --git a/vioplotyield3.png b/vioplotyield3.png new file mode 100644 index 0000000..92e60bd --- /dev/null +++ b/vioplotyield3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15859ce222f4c5850dff41bb882f4130ace5305683c8f3a33decd551cc3464a9 +size 9394