in this module, we will discuss the foundation of statistics and data science
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:
descriptive is simply defined as the sample to sample statistic it is mainly classified as the study of five different measurement including:
importing and exporting different dataset from different files and statistical software
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")