Module 1 : Introduction to statistics

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

fundatntal concepts of statistics

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:

  1. Descriptive statistics, and
  2. inferential statistics.

Descriptive statistics

Descriptive statistics is Simpy defined ad the sample to sample statistics.

it is mainly classified as the study of five different measurement including:

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

Data Management

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

Importing data set

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

library(haven)
## Warning: package 'haven' was built under R version 4.2.3
data<-read_sav("~/togspss.sav")
library(psych)
## Warning: package 'psych' was built under R version 4.2.3
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 = "magenta")