Module 1: Introduction to statistics

in this module we will discuss the foundations of statistics and data science

foundamental concepts of statistics

statistics is a science of data collection, organization, presentation, summarizing, interpreting, drawing, calculations and describing results the subject is broadly classified in to two main fields

  1. descriptive statistics, and
  2. inferential statistics

descriptive statistics

Descriptive statistics is simply defined as the sampel to sample statistics

it is mainly classified as the study of five different measurements including

  1. measure of central tendency
  2. measure of dispersion
  3. measure of shape
  4. measure of position and
  5. measures of frequency

Data Managment

Importing and exporting diffrent data sets from different files and statistical soiftwares

Importing data set

We need the haven package to import easily all different data files from different statistical softwares.

library(haven)
data<-read_dta("~/Togdheer2.dta")
library(psych)
describe(data$numberofdeath)
boxplot(data$mothersageatfirstbirth,col = "blue")

hist(data$mothersageatfirstbirth, col = "green")

plot(density(data$mothersageatfirstbirth),col = "red")
polygon(density(data$mothersageatfirstbirth), col = "cyan", border = "purple")