Model 1: Introduction to statistics

in this model we dicuss the foundation of statistics and data science. ## fundamental concepts of statistics statistics is a science os collection, organisation, presentation, summarizing, interpreting, drowning, calculations and presenting results.

The subject is broadly classified into two main namely:

  1. Descriptive statistics
  2. sample statistics

Descriptive statistics

Its mainly classified as the study of five different

  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 data sets form different files and statistical software.

Importing Data Set

we need the haven package to import and export of all different data files from different statistical software.

library(haven)
## Warning: package 'haven' was built under R version 4.3.2
data<-read_dta("togdheer2.dta")
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 = "magenta")