Module I: Introduction to Statistics

In this module we will discuss the foundation of statistics and data science.

Fundamental concepts of statisitics

statistics is a science of data collection, organization, presentation, summarizing, interpreting, drawing calculations and prescribing results.

The subject is broadly classified into two main files namely:

  1. Descriptive statistics, and
  2. Inferential statistics.

Discriptive statistics

Descriptive statistics is simply defined as the sample to sample statistics. It mainly classified as the study of five different measurement including:

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

Data Management

Importing and exporting different datasets from different files and statistical softwares.

Importing Dataset

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", bordor = "magenta")
## Warning in polygon(density(data$mothersageatfirstbirth), col = "cyan", bordor =
## "magenta"): "bordor" is not a graphical parameter