You are on page 1of 2

Type 1 Error

Type 2 Error

parametric
Difference in means - population
z-test

Difference in means - sample


t-test

one-way
two-way
paired

Difference in multiple means


Step 1: ANOVA
H0: μ1 = μ2 = ... = μr, all the means are the same
H1: two or more means are different from the others

Note that the mean square between treatments, 545.4, is much larger than the mean
square within treatments, 100.9. That ratio, between-groups mean square over
within-groups mean square, is called an F statistic (F = MSB/MSW = 5.41 in this
example). It tells you how much more variability there is between treatment groups
than within treatment groups. The larger that ratio, the more confident you feel in
rejecting the null hypothesis, which was that all means are equal and there is no
treatment effect.

But what you care about is the p-value of 0.0069, obtained from the F distribution.
The p-value has the usual interpretation: the probability of the between-treatments
MS being ≥5.41 times the within-treatments MS, if the null hypothesis is true, is p
= 0.0069.

The p-value is below your significance level of 0.05: it would be quite unlikely to
have MSB/MSW this large if there were no real difference among the means. Therefore
you reject H0 and accept H1, concluding that the mean absorption of all the fats is
not the same

Testing differences between categorical variables


Chi-square test
H0: Variable A and Variable B are independent
H1: Variable A and Variable B are not independent

small value means fit


large value means data doesnt fit

Reference:
https://www.healthknowledge.org.uk/public-health-textbook/research-methods/1b-
statistical-methods/parametric-nonparametric-tests

Linear Regression
Assumptions:
Linear (independent, residuals are normally distributed, homosckedasticity resolved
using box-cox transformation)
Logistic Regression
Poisson Regression (Counts, assumes mean = variance)
Negative Binomial Regression (Counts, mean does not need to equal variance)

Distributions:
Normal
Beta
Uniform
Binomial
Exponential
Poisson
Gamma
F
Weibull
Cauchy

ML Models
KNN
SVM
Decision Trees
Random Forests
Boosting
Bagging
Stacking

KMeans
LDA

Fuzzy Logic

Genetic Algo

Feed Forward Net


Convolutions
RNN
Transformers

Dockerfile (simple text file with instructions to build an image)


Step 1: Create a file name Dockerfile
Step 2: Getting base image ubuntu
FROM ubuntu

MAINTAINER xianyang <xianyangw@gmail.com>

RUN apt-get update


RUN apt-get install vim
RUN apt-get install git

CMD["echo", "Hello World!"]

Note: RUN is during creation of image.. CMD is after image is created

Building images from Dockerfile


docker build

https://alexioannides.com/2019/01/10/deploying-python-ml-models-with-flask-docker-
and-kubernetes/

You might also like