module 1 : introduction of statistics

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

fundamental concept if statistics

statistic is a science data collection, organization, presentation, summarizing, interpreting and calculation of the result. the subject is broadly classified into two main fields namely:

  1. descriptive statistics
  2. inferential statistics

descriptvie statistcs

descriptive is simply defined as the sample to sample statistic it is mainly classified as the study of five different measurement including:

  1. measures of central tendency
  2. measures of dispersion
  3. measures of shape
  4. measures of possion and
  5. measure of frequency ## DATA management

importing and exporting different dataset from different files and statistical software

importing data set

we need the haven package to import easily all different data files from different stistical software

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