# Module 1 : Introduction to statistics
in this module, we will discuss the foundations of statistics and data science.
statistics is a science of data collection, organization, presentation, summarizing, interpreting, drawing calculations and prescribing results.
the subject is broadly classified int two main files namely:
Descriptive statistics is Simpy defined ad the sample to sample statistics.
it is mainly classified as the study of five different measurement including:
Importing and exporting different datasets from different files and statistical softwares.
we need the haven package to import easily all different data files from different statistical softwares.
library(haven)
data<-read_sav("~/togspss.sav")
library(psych)
describe(data$numberofdeath)
boxplot(data$mothersageatfirstbirth , col = "red")
hist(data$mothersageatfirstbirth, col="green")
plot(density(data$mothersageatfirstbirth),col="red")
polygon(density(data$mothersageatfirstbirth),col="yellow",
border = "grey")
library(beeswarm)
describe(data$mothersageatfirstbirth)
beeswarm(data$mothersageatfirstbirth , col = "blue")
library(beanplot)
describe(data$mothersageatfirstbirth)
beanplot(data$mothersageatfirstbirth, col = "red")
## log="y" selected
library(vioplot)
## Loading required package: sm
## Package 'sm', version 2.2-5.7: type help(sm) for summary information
## Loading required package: zoo
##
## Attaching package: 'zoo'
## The following objects are masked from 'package:base':
##
## as.Date, as.Date.numeric
describe(data$numberofdeath)
vioplot(data$mothersageatfirstbirth , col = "green")