SlideShare a Scribd company logo
1 of 34
Download to read offline
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Introduction of Mixed effect model
Learning by simulation
Supstat Inc.

1 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Outline
· What is mixed effect model
· Fixed effect model
· Mixed effect model
- Random Intercept model
- Random Intercept and Slope Model
· General Mixed effect model
· Case study

2 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

What is mixed effect model

3 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Classical normal linear model
Formation:
Yi = b0 + b1*Xi + ei
· Yi is response from suject i.
· Xi are covariates.
· b0, b1 are parameters that we want to estimate.
· ei are the random terms in the model, and are assumped to be independently and indentically
distributed from Normal(0,1). It is very important that there is no stucuture in ei and it
represents the variations that could not be controled in our studies.

4 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Violation of independence assumpation.
In many cases, responses are not independent from each other. These data usualy have some
cluster stucture.
· Repeated measures, where measurements are taken multiple times from the same sujects.
(clustered by subject)
· A survey of all the family memebers. (clustered by family)
· A survey of students from 20 classrooms in a high school. (clustered by classroom)
· Longitudial data, or known as the panel data, where several responses are collected from the
same sujects along the time. (clustered by subject)
We need new tools - Mixed effect model.

5 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Mixed effect model
Mixed effect model = Fixed effect + Random effect
· Fixed effects
- expected to have a systematic and predictable influence on your data.
- exhaust “the levels of a factor”.Think of sex(male/femal).
· Random effect
- expected to have a non-systematic, unpredictable, or “random” influence on your data.
- Random effects have factor levels that are drawn from a large population, but we do not
know exactly how or why they differ.

6 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Example of Fixed effects and Random effects
FIXED EFFECTS
Male or female

Individuals with repeated measures

Insecticide sprayed or not

Block within a field

Upland or lowland

Brood

One country versus another

Split plot within a plot

Wet versus dry

7 of 34

RANDOM EFFECTS

Family

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Fixed effect model

8 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Fixed effect model
Fixed effect model is just the linear model that you maybe already know.
Yi = b0 + b1*Xi + ei
1<i<n n is number of sample
· Yi: Response Variable
· b0: fixed intercept
· b1: fixed slope
· Xi: Explanatory Variable (fixed effect)
· ei: noise (error)

9 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Data generation of fixed effect model
set.seed(1)
# genaerate x
x <- seq(1,5,length.out=100)
# generate error
noise <- rnorm(n=100,mean=0,sd=1)
b0 <- 1
b1 <- 2
# generate y
y <- b0 + b1*x + noise

10 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Data generation of fixed effect model
plot(y~x)

11 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Cooefficient estimation of fixed effect model
model <- lm(y~x)
summary(model)

Call:
lm(formula = y ~ x)
Residuals:
Min
1Q
-2.3401 -0.6058

Median
0.0155

3Q
0.5851

Max
2.2975

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept)
1.1424
0.2491
4.59 1.3e-05 ***
x
1.9888
0.0774
25.70 < 2e-16 ***
--Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 0.903 on 98 degrees of freedom
12 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

plot of fixed effect model
plot(y~x)
abline(model)

13 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Mixed effect model

14 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Random Intercept model
there are i people, and we repeat measure j times for every people. These poeple are individually
different which we don't know, so there are random effect cause by people, and there are another
random noise cause by measure for every people.
Yij = b0 + b1*Xij + bi + eij
· b0: fixed intercept
· b1: fixed slope
· Xij: fixed effect
· bi: random effect(influence intercept)
· eij: noise

15 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Data generation of Random Intercept model
b0 <- 9.9
b1 <- 2
# repeat measure times for 6 people
n <- c(13, 14, 14, 15, 12, 13)
npeople <- length(n)
set.seed(1)
# generate x(fixed effect)
x <- matrix(rep(0, length=max(n) * npeople),ncol = npeople)
for (i in 1:npeople){
x[1:n[i], i] <- runif(n[i], min = 1, max = 5)
x[1:n[i], i] <- sort(x[1:n[i], i])
}
# random effect
bi <- rnorm(npeople, mean = 0, sd = 10)

16 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Data generation of Random Intercept model
xall <- NULL
yall <- NULL
peopleall <- NULL
for (i in 1:npeople){
xall <- c(xall, x[1:n[i], i]) # combine x
# generate y
y <- rep(b0 + bi[i], length = n[i]) +
b1 * x[1:n[i],i] +
rnorm(n[i], mean = 0, sd = 2) # noise
yall <- c(yall, y) # combine y
people <- rep(i, length = n[i])
peopleall <- c(peopleall, people)
}
# final dataset
data1 <- data.frame(yall,peopleall,xall)

17 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Cooefficient estimation of Random Intercept
model
library(nlme)
# xall is fixed effect
# bi influence intercept of model
lme1 <- lme(yall~xall,random=~1|peopleall,data=data1)
summary(lme1)

Linear mixed-effects model fit by REML
Data: data1
AIC BIC logLik
358 368
-175
Random effects:
Formula: ~1 | peopleall
(Intercept) Residual
StdDev:
7.3
1.77
Fixed effects: yall ~ xall
18 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Plot of Random Intercept model

19 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Random Intercept and slope model
Yij = b0 + (b1+si)*Xij + bi + eij
· b0: fixed intercept
· b1: fixed slope
· X: fixed effect
· bi: random effect(influence intercept)
· eij: noise
· si: random effect(influence slope)

20 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Data generation of Random Intercept and
slope model
a0 <- 9.9
a1 <- 2
n <- c(12, 13, 14, 15, 16, 13)
npeople <- length(n)
set.seed(1)
si <- rnorm(npeople, mean = 0, sd = 0.5) # random slope
x <- matrix(rep(0, length = max(n) * npeople),
ncol = npeople)
for (i in 1:npeople){
x[1:n[i], i] <- runif(n[i], min = 1,
max = 5)
x[1:n[i], i] <- sort(x[1:n[i], i])
}

21 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Data generation of Random Intercept and
slope model
bi <- rnorm(npeople, mean = 0, sd = 10) # random intercept
xall <- NULL
yall <- NULL
peopleall <- NULL
for (i in 1:npeople){
xall <- c(xall, x[1:n[i], i])
y <- rep(a0 + bi[i], length = n[i]) +
(a1 + si[i]) * x[1:n[i],i] +
rnorm(n[i], mean = 0, sd = 0.5)
yall <- c(yall, y)
people <- rep(i, length = n[i])
peopleall <- c(peopleall, people)
}
# generate final dataset
data2 <- data.frame(yall, peopleall, xall)

22 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Cooefficient estimation of Random Intercept
and slope model
# bi influence intercept and slope of model
lme2 <- lme(yall~xall,random=~1+xall|peopleall,data=data2)
print(summary(lme2))

Linear mixed-effects model fit by REML
Data: data2
AIC BIC logLik
179 194 -83.6
Random effects:
Formula: ~1 + xall | peopleall
Structure: General positive-definite, Log-Cholesky parametrization
StdDev Corr
(Intercept) 11.593 (Intr)
xall
0.464 0.044
Residual
0.445

23 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Plot of Random Intercept and slope model

24 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

what if we just use linear model
· complete pooling

# wrong estimation
lm1 <- lm(yall~xall,data=data2)
summary(lm1)

Call:
lm(formula = yall ~ xall, data = data2)
Residuals:
Min
1Q Median
-17.80 -6.27 -3.67

3Q
2.19

Max
24.33

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept)
6.86
3.72
1.84 0.06874 .
xall
4.31
1.15
3.76 0.00032 ***
--25 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

what if we just use linear model
· no pooling

# wrong estimation and waste too many freedom and we don't care about the exact different of pe
lm2 <- lm(yall~xall+factor(peopleall)+xall*factor(peopleall),data=data1)
summary(lm2)

Call:
lm(formula = yall ~ xall + factor(peopleall) + xall * factor(peopleall),
data = data1)
Residuals:
Min
1Q Median
-2.983 -1.194 0.054

3Q
1.092

Max
4.238

Coefficients:
(Intercept)
xall
26 of 34

Estimate Std. Error t value Pr(>|t|)
18.818
1.342
14.02 < 2e-16 ***
0.929
0.413
2.25
0.028 *
1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

General Mixed effect model

27 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Logistic Mixed effect model
Yij = exp(eta)/(1+exp(eta))
eta = b0 + b1*Xij + bi + eij
· b0: fixed intercept
· b1: fixed slope
· X: fixed effect
· bi: random effect(influence intercept)
· eij: noise

28 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Data generation of Logistic Mixed effect
model
b0 <- - 6
b1 <- 2.1
set.seed(1)
n <- c(12, 13, 14, 15, 16, 13)
npeople <- length(n)
x <- matrix(rep(0, length = max(n) * npeople),
ncol = npeople)
bi <- rnorm(npeople, mean = 0, sd = 1.5)
for (i in 1:npeople){
x[1:n[i], i] <- runif(n[i], min = 1,max = 5)
x[1:n[i], i] <- sort(x[1:n[i], i])
}

29 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Data generation of Logistic Mixed effect
model
xall <- NULL
yall <- NULL
peopleall <- NULL
for (i in 1:npeople){
xall <- c(xall, x[1:n[i], i])
y <- NULL
for(j in 1:n[i]){
eta1 <- b0 + b1 * x[j, i] + bi[i]
y <- c(y, rbinom(n = 1, size = 1,
prob = exp(eta1)/(exp(eta1) + 1)))
}
yall <- c(yall, y)
people <- rep(i, length = n[i])
peopleall <- c(peopleall, people)
}
data3 <- data.frame(xall, peopleall,yall)

30 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Cooefficient estimation of Logistic Mixed
effect model
library(lme4)
# formula is different
lmer3 <- glmer(yall~xall+(1|peopleall),data=data3,family=binomial)
print(summary(lmer3))

Generalized linear mixed model fit by maximum likelihood ['glmerMod']
Family: binomial ( logit )
Formula: yall ~ xall + (1 | peopleall)
Data: data3
AIC
69.8

BIC
77.1

logLik deviance
-31.9
63.8

Random effects:
Groups
Name
Variance Std.Dev.
peopleall (Intercept) 3.94
1.98
Number of obs: 83, groups: peopleall, 6
31 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Plot of Logistic Mixed effect model

32 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

Case study

33 of 34

1/29/14, 10:51 PM
Introduction of Mixed effect model

34 of 34

http://nycdatascience.com/mixed_effect_model_supstat/index.html#1

1/29/14, 10:51 PM

More Related Content

What's hot

Research Methodology - Study Designs
Research Methodology - Study DesignsResearch Methodology - Study Designs
Research Methodology - Study DesignsAzmi Mohd Tamil
 
Meta analysis ppt
Meta analysis pptMeta analysis ppt
Meta analysis pptSKVA
 
Cluster randomization trial presentation
Cluster randomization trial presentationCluster randomization trial presentation
Cluster randomization trial presentationRanadip Chowdhury
 
Error, bias and confounding
Error, bias and confoundingError, bias and confounding
Error, bias and confoundingMitasha Singh
 
Systematic review and meta analysis
Systematic review and meta analysisSystematic review and meta analysis
Systematic review and meta analysisumaisashraf
 
4.4. effect modification
4.4. effect modification4.4. effect modification
4.4. effect modificationA M
 
Hypothesis testing and p-value, www.eyenirvaan.com
Hypothesis testing and p-value, www.eyenirvaan.comHypothesis testing and p-value, www.eyenirvaan.com
Hypothesis testing and p-value, www.eyenirvaan.comEyenirvaan
 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionDrZahid Khan
 
Sample determinants and size
Sample determinants and sizeSample determinants and size
Sample determinants and sizeTarek Tawfik Amin
 
Cross sectional study
Cross sectional studyCross sectional study
Cross sectional studyAdugnagirma
 
Randomized controlled trials. Aboubakr Elnashar
Randomized controlled trials. Aboubakr ElnasharRandomized controlled trials. Aboubakr Elnashar
Randomized controlled trials. Aboubakr ElnasharAboubakr Elnashar
 
Multivariate analysis
Multivariate analysisMultivariate analysis
Multivariate analysisSubodh Khanal
 
Logistic regression with SPSS
Logistic regression with SPSSLogistic regression with SPSS
Logistic regression with SPSSLNIPE
 
Statistical tests
Statistical testsStatistical tests
Statistical testsmartyynyyte
 
Fixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysisFixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysisRizwan S A
 
Bias in epidemiology uploaded
Bias in epidemiology uploadedBias in epidemiology uploaded
Bias in epidemiology uploadedKumar Mrigesh
 

What's hot (20)

Research Methodology - Study Designs
Research Methodology - Study DesignsResearch Methodology - Study Designs
Research Methodology - Study Designs
 
Meta analysis ppt
Meta analysis pptMeta analysis ppt
Meta analysis ppt
 
Cluster randomization trial presentation
Cluster randomization trial presentationCluster randomization trial presentation
Cluster randomization trial presentation
 
Error, bias and confounding
Error, bias and confoundingError, bias and confounding
Error, bias and confounding
 
Systematic review and meta analysis
Systematic review and meta analysisSystematic review and meta analysis
Systematic review and meta analysis
 
Hazard ratios
Hazard ratiosHazard ratios
Hazard ratios
 
4.4. effect modification
4.4. effect modification4.4. effect modification
4.4. effect modification
 
Statistical Power
Statistical PowerStatistical Power
Statistical Power
 
Hypothesis testing and p-value, www.eyenirvaan.com
Hypothesis testing and p-value, www.eyenirvaan.comHypothesis testing and p-value, www.eyenirvaan.com
Hypothesis testing and p-value, www.eyenirvaan.com
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Sample determinants and size
Sample determinants and sizeSample determinants and size
Sample determinants and size
 
Cross sectional study
Cross sectional studyCross sectional study
Cross sectional study
 
Randomized controlled trials. Aboubakr Elnashar
Randomized controlled trials. Aboubakr ElnasharRandomized controlled trials. Aboubakr Elnashar
Randomized controlled trials. Aboubakr Elnashar
 
Multivariate analysis
Multivariate analysisMultivariate analysis
Multivariate analysis
 
Logistic regression with SPSS
Logistic regression with SPSSLogistic regression with SPSS
Logistic regression with SPSS
 
Bias in Research
Bias in ResearchBias in Research
Bias in Research
 
Statistical tests
Statistical testsStatistical tests
Statistical tests
 
Fixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysisFixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysis
 
Bias in epidemiology uploaded
Bias in epidemiology uploadedBias in epidemiology uploaded
Bias in epidemiology uploaded
 
Rct
RctRct
Rct
 

Similar to Introduction to Mixed Effect Models for Data Analysis

R workshop viii--Mixed Effect Analysis in r (randam and fixed effect)
R workshop viii--Mixed Effect Analysis in r (randam and fixed effect) R workshop viii--Mixed Effect Analysis in r (randam and fixed effect)
R workshop viii--Mixed Effect Analysis in r (randam and fixed effect) Vivian S. Zhang
 
Probability Collectives
Probability CollectivesProbability Collectives
Probability Collectiveskulk0003
 
Workload-aware materialization for efficient variable elimination on Bayesian...
Workload-aware materialization for efficient variable elimination on Bayesian...Workload-aware materialization for efficient variable elimination on Bayesian...
Workload-aware materialization for efficient variable elimination on Bayesian...Cigdem Aslay
 
A Coupled Discrete-Event and Motion Planning Methodology for Automated Safety...
A Coupled Discrete-Event and Motion Planning Methodology for Automated Safety...A Coupled Discrete-Event and Motion Planning Methodology for Automated Safety...
A Coupled Discrete-Event and Motion Planning Methodology for Automated Safety...Md Mahbubur Rahman
 
2014-mo444-practical-assignment-04-paulo_faria
2014-mo444-practical-assignment-04-paulo_faria2014-mo444-practical-assignment-04-paulo_faria
2014-mo444-practical-assignment-04-paulo_fariaPaulo Faria
 
Artificial Agents Without Ontological Access to Reality
Artificial Agents Without Ontological Access to RealityArtificial Agents Without Ontological Access to Reality
Artificial Agents Without Ontological Access to Realityogeorgeon
 
TypeScript and Deep Learning
TypeScript and Deep LearningTypeScript and Deep Learning
TypeScript and Deep LearningOswald Campesato
 
Two methods for optimising cognitive model parameters
Two methods for optimising cognitive model parametersTwo methods for optimising cognitive model parameters
Two methods for optimising cognitive model parametersUniversity of Huddersfield
 
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...ETS Asset Management Factory
 
CONSTRUCTING A FUZZY NETWORK INTRUSION CLASSIFIER BASED ON DIFFERENTIAL EVOLU...
CONSTRUCTING A FUZZY NETWORK INTRUSION CLASSIFIER BASED ON DIFFERENTIAL EVOLU...CONSTRUCTING A FUZZY NETWORK INTRUSION CLASSIFIER BASED ON DIFFERENTIAL EVOLU...
CONSTRUCTING A FUZZY NETWORK INTRUSION CLASSIFIER BASED ON DIFFERENTIAL EVOLU...IJCNCJournal
 
Complex models in ecology: challenges and solutions
Complex models in ecology: challenges and solutionsComplex models in ecology: challenges and solutions
Complex models in ecology: challenges and solutionsPeter Solymos
 
diffusion 모델부터 DALLE2까지.pdf
diffusion 모델부터 DALLE2까지.pdfdiffusion 모델부터 DALLE2까지.pdf
diffusion 모델부터 DALLE2까지.pdf수철 박
 
Optimization Techniques.pdf
Optimization Techniques.pdfOptimization Techniques.pdf
Optimization Techniques.pdfanandsimple
 
(141205) Masters_Thesis_Defense_Sundong_Kim
(141205) Masters_Thesis_Defense_Sundong_Kim(141205) Masters_Thesis_Defense_Sundong_Kim
(141205) Masters_Thesis_Defense_Sundong_KimSundong Kim
 
Strong Heredity Models in High Dimensional Data
Strong Heredity Models in High Dimensional DataStrong Heredity Models in High Dimensional Data
Strong Heredity Models in High Dimensional Datasahirbhatnagar
 

Similar to Introduction to Mixed Effect Models for Data Analysis (20)

R workshop viii--Mixed Effect Analysis in r (randam and fixed effect)
R workshop viii--Mixed Effect Analysis in r (randam and fixed effect) R workshop viii--Mixed Effect Analysis in r (randam and fixed effect)
R workshop viii--Mixed Effect Analysis in r (randam and fixed effect)
 
Probability Collectives
Probability CollectivesProbability Collectives
Probability Collectives
 
DA FDAFDSasd
DA FDAFDSasdDA FDAFDSasd
DA FDAFDSasd
 
Workload-aware materialization for efficient variable elimination on Bayesian...
Workload-aware materialization for efficient variable elimination on Bayesian...Workload-aware materialization for efficient variable elimination on Bayesian...
Workload-aware materialization for efficient variable elimination on Bayesian...
 
A Coupled Discrete-Event and Motion Planning Methodology for Automated Safety...
A Coupled Discrete-Event and Motion Planning Methodology for Automated Safety...A Coupled Discrete-Event and Motion Planning Methodology for Automated Safety...
A Coupled Discrete-Event and Motion Planning Methodology for Automated Safety...
 
Neural network
Neural networkNeural network
Neural network
 
ppt0320defenseday
ppt0320defensedayppt0320defenseday
ppt0320defenseday
 
2014-mo444-practical-assignment-04-paulo_faria
2014-mo444-practical-assignment-04-paulo_faria2014-mo444-practical-assignment-04-paulo_faria
2014-mo444-practical-assignment-04-paulo_faria
 
Artificial Agents Without Ontological Access to Reality
Artificial Agents Without Ontological Access to RealityArtificial Agents Without Ontological Access to Reality
Artificial Agents Without Ontological Access to Reality
 
TypeScript and Deep Learning
TypeScript and Deep LearningTypeScript and Deep Learning
TypeScript and Deep Learning
 
Two methods for optimising cognitive model parameters
Two methods for optimising cognitive model parametersTwo methods for optimising cognitive model parameters
Two methods for optimising cognitive model parameters
 
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
 
CONSTRUCTING A FUZZY NETWORK INTRUSION CLASSIFIER BASED ON DIFFERENTIAL EVOLU...
CONSTRUCTING A FUZZY NETWORK INTRUSION CLASSIFIER BASED ON DIFFERENTIAL EVOLU...CONSTRUCTING A FUZZY NETWORK INTRUSION CLASSIFIER BASED ON DIFFERENTIAL EVOLU...
CONSTRUCTING A FUZZY NETWORK INTRUSION CLASSIFIER BASED ON DIFFERENTIAL EVOLU...
 
Complex models in ecology: challenges and solutions
Complex models in ecology: challenges and solutionsComplex models in ecology: challenges and solutions
Complex models in ecology: challenges and solutions
 
diffusion 모델부터 DALLE2까지.pdf
diffusion 모델부터 DALLE2까지.pdfdiffusion 모델부터 DALLE2까지.pdf
diffusion 모델부터 DALLE2까지.pdf
 
Optimization Techniques.pdf
Optimization Techniques.pdfOptimization Techniques.pdf
Optimization Techniques.pdf
 
(141205) Masters_Thesis_Defense_Sundong_Kim
(141205) Masters_Thesis_Defense_Sundong_Kim(141205) Masters_Thesis_Defense_Sundong_Kim
(141205) Masters_Thesis_Defense_Sundong_Kim
 
Ml presentation
Ml presentationMl presentation
Ml presentation
 
Strong Heredity Models in High Dimensional Data
Strong Heredity Models in High Dimensional DataStrong Heredity Models in High Dimensional Data
Strong Heredity Models in High Dimensional Data
 
Extend sim 01
Extend sim 01Extend sim 01
Extend sim 01
 

More from Vivian S. Zhang

Career services workshop- Roger Ren
Career services workshop- Roger RenCareer services workshop- Roger Ren
Career services workshop- Roger RenVivian S. Zhang
 
Nycdsa wordpress guide book
Nycdsa wordpress guide bookNycdsa wordpress guide book
Nycdsa wordpress guide bookVivian S. Zhang
 
We're so skewed_presentation
We're so skewed_presentationWe're so skewed_presentation
We're so skewed_presentationVivian S. Zhang
 
Wikipedia: Tuned Predictions on Big Data
Wikipedia: Tuned Predictions on Big DataWikipedia: Tuned Predictions on Big Data
Wikipedia: Tuned Predictions on Big DataVivian S. Zhang
 
A Hybrid Recommender with Yelp Challenge Data
A Hybrid Recommender with Yelp Challenge Data A Hybrid Recommender with Yelp Challenge Data
A Hybrid Recommender with Yelp Challenge Data Vivian S. Zhang
 
Kaggle Top1% Solution: Predicting Housing Prices in Moscow
Kaggle Top1% Solution: Predicting Housing Prices in Moscow Kaggle Top1% Solution: Predicting Housing Prices in Moscow
Kaggle Top1% Solution: Predicting Housing Prices in Moscow Vivian S. Zhang
 
Data mining with caret package
Data mining with caret packageData mining with caret package
Data mining with caret packageVivian S. Zhang
 
Streaming Python on Hadoop
Streaming Python on HadoopStreaming Python on Hadoop
Streaming Python on HadoopVivian S. Zhang
 
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its authorKaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its authorVivian S. Zhang
 
Nyc open-data-2015-andvanced-sklearn-expanded
Nyc open-data-2015-andvanced-sklearn-expandedNyc open-data-2015-andvanced-sklearn-expanded
Nyc open-data-2015-andvanced-sklearn-expandedVivian S. Zhang
 
Nycdsa ml conference slides march 2015
Nycdsa ml conference slides march 2015 Nycdsa ml conference slides march 2015
Nycdsa ml conference slides march 2015 Vivian S. Zhang
 
THE HACK ON JERSEY CITY CONDO PRICES explore trends in public data
THE HACK ON JERSEY CITY CONDO PRICES explore trends in public dataTHE HACK ON JERSEY CITY CONDO PRICES explore trends in public data
THE HACK ON JERSEY CITY CONDO PRICES explore trends in public dataVivian S. Zhang
 
Max Kuhn's talk on R machine learning
Max Kuhn's talk on R machine learningMax Kuhn's talk on R machine learning
Max Kuhn's talk on R machine learningVivian S. Zhang
 
Winning data science competitions, presented by Owen Zhang
Winning data science competitions, presented by Owen ZhangWinning data science competitions, presented by Owen Zhang
Winning data science competitions, presented by Owen ZhangVivian S. Zhang
 
Using Machine Learning to aid Journalism at the New York Times
Using Machine Learning to aid Journalism at the New York TimesUsing Machine Learning to aid Journalism at the New York Times
Using Machine Learning to aid Journalism at the New York TimesVivian S. Zhang
 
Introducing natural language processing(NLP) with r
Introducing natural language processing(NLP) with rIntroducing natural language processing(NLP) with r
Introducing natural language processing(NLP) with rVivian S. Zhang
 

More from Vivian S. Zhang (20)

Why NYC DSA.pdf
Why NYC DSA.pdfWhy NYC DSA.pdf
Why NYC DSA.pdf
 
Career services workshop- Roger Ren
Career services workshop- Roger RenCareer services workshop- Roger Ren
Career services workshop- Roger Ren
 
Nycdsa wordpress guide book
Nycdsa wordpress guide bookNycdsa wordpress guide book
Nycdsa wordpress guide book
 
We're so skewed_presentation
We're so skewed_presentationWe're so skewed_presentation
We're so skewed_presentation
 
Wikipedia: Tuned Predictions on Big Data
Wikipedia: Tuned Predictions on Big DataWikipedia: Tuned Predictions on Big Data
Wikipedia: Tuned Predictions on Big Data
 
A Hybrid Recommender with Yelp Challenge Data
A Hybrid Recommender with Yelp Challenge Data A Hybrid Recommender with Yelp Challenge Data
A Hybrid Recommender with Yelp Challenge Data
 
Kaggle Top1% Solution: Predicting Housing Prices in Moscow
Kaggle Top1% Solution: Predicting Housing Prices in Moscow Kaggle Top1% Solution: Predicting Housing Prices in Moscow
Kaggle Top1% Solution: Predicting Housing Prices in Moscow
 
Data mining with caret package
Data mining with caret packageData mining with caret package
Data mining with caret package
 
Xgboost
XgboostXgboost
Xgboost
 
Streaming Python on Hadoop
Streaming Python on HadoopStreaming Python on Hadoop
Streaming Python on Hadoop
 
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its authorKaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its author
 
Xgboost
XgboostXgboost
Xgboost
 
Nyc open-data-2015-andvanced-sklearn-expanded
Nyc open-data-2015-andvanced-sklearn-expandedNyc open-data-2015-andvanced-sklearn-expanded
Nyc open-data-2015-andvanced-sklearn-expanded
 
Nycdsa ml conference slides march 2015
Nycdsa ml conference slides march 2015 Nycdsa ml conference slides march 2015
Nycdsa ml conference slides march 2015
 
THE HACK ON JERSEY CITY CONDO PRICES explore trends in public data
THE HACK ON JERSEY CITY CONDO PRICES explore trends in public dataTHE HACK ON JERSEY CITY CONDO PRICES explore trends in public data
THE HACK ON JERSEY CITY CONDO PRICES explore trends in public data
 
Max Kuhn's talk on R machine learning
Max Kuhn's talk on R machine learningMax Kuhn's talk on R machine learning
Max Kuhn's talk on R machine learning
 
Winning data science competitions, presented by Owen Zhang
Winning data science competitions, presented by Owen ZhangWinning data science competitions, presented by Owen Zhang
Winning data science competitions, presented by Owen Zhang
 
Using Machine Learning to aid Journalism at the New York Times
Using Machine Learning to aid Journalism at the New York TimesUsing Machine Learning to aid Journalism at the New York Times
Using Machine Learning to aid Journalism at the New York Times
 
Introducing natural language processing(NLP) with r
Introducing natural language processing(NLP) with rIntroducing natural language processing(NLP) with r
Introducing natural language processing(NLP) with r
 
Bayesian models in r
Bayesian models in rBayesian models in r
Bayesian models in r
 

Recently uploaded

Pallawi ❣ 💓 Pallawi 09167673311 💓Call Girl in Thane Near Hiranandani Estate ...
Pallawi ❣ 💓 Pallawi  09167673311 💓Call Girl in Thane Near Hiranandani Estate ...Pallawi ❣ 💓 Pallawi  09167673311 💓Call Girl in Thane Near Hiranandani Estate ...
Pallawi ❣ 💓 Pallawi 09167673311 💓Call Girl in Thane Near Hiranandani Estate ...Pooja Nehwal
 
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal EscortsCall Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal EscortsApsara Of India
 
Air-Hostess Call Girls Diamond Harbour : 8250192130 High Profile Model Escort...
Air-Hostess Call Girls Diamond Harbour : 8250192130 High Profile Model Escort...Air-Hostess Call Girls Diamond Harbour : 8250192130 High Profile Model Escort...
Air-Hostess Call Girls Diamond Harbour : 8250192130 High Profile Model Escort...anamikaraghav4
 
Authentic No 1 Amil Baba In Pakistan Authentic No 1 Amil Baba In Karachi No 1...
Authentic No 1 Amil Baba In Pakistan Authentic No 1 Amil Baba In Karachi No 1...Authentic No 1 Amil Baba In Pakistan Authentic No 1 Amil Baba In Karachi No 1...
Authentic No 1 Amil Baba In Pakistan Authentic No 1 Amil Baba In Karachi No 1...First NO1 World Amil baba in Faisalabad
 
ViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcE
ViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcEViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcE
ViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcEApsara Of India
 
Hot Call Girls In Goa 7028418221 Call Girls In Vagator Beach EsCoRtS
Hot Call Girls In Goa 7028418221 Call Girls In Vagator Beach EsCoRtSHot Call Girls In Goa 7028418221 Call Girls In Vagator Beach EsCoRtS
Hot Call Girls In Goa 7028418221 Call Girls In Vagator Beach EsCoRtSApsara Of India
 
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
5* Hotel Call Girls In Goa 7028418221 Call Girls In North Goa Escort Services
5* Hotel Call Girls In Goa 7028418221 Call Girls In North Goa Escort Services5* Hotel Call Girls In Goa 7028418221 Call Girls In North Goa Escort Services
5* Hotel Call Girls In Goa 7028418221 Call Girls In North Goa Escort ServicesApsara Of India
 
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969Apsara Of India
 
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...anamikaraghav4
 
Call Girls in Najafgarh Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Najafgarh Delhi 💯Call Us 🔝8264348440🔝Call Girls in Najafgarh Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Najafgarh Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
VIP Call Girls in Gulbarga Aarohi 8250192130 Independent Escort Service Gulbarga
VIP Call Girls in Gulbarga Aarohi 8250192130 Independent Escort Service GulbargaVIP Call Girls in Gulbarga Aarohi 8250192130 Independent Escort Service Gulbarga
VIP Call Girls in Gulbarga Aarohi 8250192130 Independent Escort Service GulbargaRiya Pathan
 
Air-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment Booking
Air-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment BookingAir-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment Booking
Air-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment BookingRiya Pathan
 
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...ranjana rawat
 
Kolkata Call Girl Airport Kolkata 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Airport Kolkata 👉 8250192130 ❣️💯 Available With Room 24×7Kolkata Call Girl Airport Kolkata 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Airport Kolkata 👉 8250192130 ❣️💯 Available With Room 24×7Riya Pathan
 
Call Girls in Faridabad 9000000000 Faridabad Escorts Service
Call Girls in Faridabad 9000000000 Faridabad Escorts ServiceCall Girls in Faridabad 9000000000 Faridabad Escorts Service
Call Girls in Faridabad 9000000000 Faridabad Escorts ServiceTina Ji
 
VIP Call Girls In Goa 7028418221 Call Girls In Baga Beach Escorts Service
VIP Call Girls In Goa 7028418221 Call Girls In Baga Beach Escorts ServiceVIP Call Girls In Goa 7028418221 Call Girls In Baga Beach Escorts Service
VIP Call Girls In Goa 7028418221 Call Girls In Baga Beach Escorts ServiceApsara Of India
 
Housewife Call Girls Sonagachi - 8250192130 Booking and charges genuine rate ...
Housewife Call Girls Sonagachi - 8250192130 Booking and charges genuine rate ...Housewife Call Girls Sonagachi - 8250192130 Booking and charges genuine rate ...
Housewife Call Girls Sonagachi - 8250192130 Booking and charges genuine rate ...Riya Pathan
 
Kolkata Call Girl Kalyani 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Kalyani 👉 8250192130 ❣️💯 Available With Room 24×7Kolkata Call Girl Kalyani 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Kalyani 👉 8250192130 ❣️💯 Available With Room 24×7Riya Pathan
 
Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...
Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...
Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...Amil Baba Company
 

Recently uploaded (20)

Pallawi ❣ 💓 Pallawi 09167673311 💓Call Girl in Thane Near Hiranandani Estate ...
Pallawi ❣ 💓 Pallawi  09167673311 💓Call Girl in Thane Near Hiranandani Estate ...Pallawi ❣ 💓 Pallawi  09167673311 💓Call Girl in Thane Near Hiranandani Estate ...
Pallawi ❣ 💓 Pallawi 09167673311 💓Call Girl in Thane Near Hiranandani Estate ...
 
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal EscortsCall Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
 
Air-Hostess Call Girls Diamond Harbour : 8250192130 High Profile Model Escort...
Air-Hostess Call Girls Diamond Harbour : 8250192130 High Profile Model Escort...Air-Hostess Call Girls Diamond Harbour : 8250192130 High Profile Model Escort...
Air-Hostess Call Girls Diamond Harbour : 8250192130 High Profile Model Escort...
 
Authentic No 1 Amil Baba In Pakistan Authentic No 1 Amil Baba In Karachi No 1...
Authentic No 1 Amil Baba In Pakistan Authentic No 1 Amil Baba In Karachi No 1...Authentic No 1 Amil Baba In Pakistan Authentic No 1 Amil Baba In Karachi No 1...
Authentic No 1 Amil Baba In Pakistan Authentic No 1 Amil Baba In Karachi No 1...
 
ViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcE
ViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcEViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcE
ViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcE
 
Hot Call Girls In Goa 7028418221 Call Girls In Vagator Beach EsCoRtS
Hot Call Girls In Goa 7028418221 Call Girls In Vagator Beach EsCoRtSHot Call Girls In Goa 7028418221 Call Girls In Vagator Beach EsCoRtS
Hot Call Girls In Goa 7028418221 Call Girls In Vagator Beach EsCoRtS
 
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
5* Hotel Call Girls In Goa 7028418221 Call Girls In North Goa Escort Services
5* Hotel Call Girls In Goa 7028418221 Call Girls In North Goa Escort Services5* Hotel Call Girls In Goa 7028418221 Call Girls In North Goa Escort Services
5* Hotel Call Girls In Goa 7028418221 Call Girls In North Goa Escort Services
 
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
 
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
 
Call Girls in Najafgarh Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Najafgarh Delhi 💯Call Us 🔝8264348440🔝Call Girls in Najafgarh Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Najafgarh Delhi 💯Call Us 🔝8264348440🔝
 
VIP Call Girls in Gulbarga Aarohi 8250192130 Independent Escort Service Gulbarga
VIP Call Girls in Gulbarga Aarohi 8250192130 Independent Escort Service GulbargaVIP Call Girls in Gulbarga Aarohi 8250192130 Independent Escort Service Gulbarga
VIP Call Girls in Gulbarga Aarohi 8250192130 Independent Escort Service Gulbarga
 
Air-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment Booking
Air-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment BookingAir-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment Booking
Air-Hostess Call Girls Shobhabazar | 8250192130 At Low Cost Cash Payment Booking
 
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
 
Kolkata Call Girl Airport Kolkata 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Airport Kolkata 👉 8250192130 ❣️💯 Available With Room 24×7Kolkata Call Girl Airport Kolkata 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Airport Kolkata 👉 8250192130 ❣️💯 Available With Room 24×7
 
Call Girls in Faridabad 9000000000 Faridabad Escorts Service
Call Girls in Faridabad 9000000000 Faridabad Escorts ServiceCall Girls in Faridabad 9000000000 Faridabad Escorts Service
Call Girls in Faridabad 9000000000 Faridabad Escorts Service
 
VIP Call Girls In Goa 7028418221 Call Girls In Baga Beach Escorts Service
VIP Call Girls In Goa 7028418221 Call Girls In Baga Beach Escorts ServiceVIP Call Girls In Goa 7028418221 Call Girls In Baga Beach Escorts Service
VIP Call Girls In Goa 7028418221 Call Girls In Baga Beach Escorts Service
 
Housewife Call Girls Sonagachi - 8250192130 Booking and charges genuine rate ...
Housewife Call Girls Sonagachi - 8250192130 Booking and charges genuine rate ...Housewife Call Girls Sonagachi - 8250192130 Booking and charges genuine rate ...
Housewife Call Girls Sonagachi - 8250192130 Booking and charges genuine rate ...
 
Kolkata Call Girl Kalyani 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Kalyani 👉 8250192130 ❣️💯 Available With Room 24×7Kolkata Call Girl Kalyani 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Kalyani 👉 8250192130 ❣️💯 Available With Room 24×7
 
Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...
Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...
Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...
 

Introduction to Mixed Effect Models for Data Analysis

  • 1. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Introduction of Mixed effect model Learning by simulation Supstat Inc. 1 of 34 1/29/14, 10:51 PM
  • 2. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Outline · What is mixed effect model · Fixed effect model · Mixed effect model - Random Intercept model - Random Intercept and Slope Model · General Mixed effect model · Case study 2 of 34 1/29/14, 10:51 PM
  • 3. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 What is mixed effect model 3 of 34 1/29/14, 10:51 PM
  • 4. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Classical normal linear model Formation: Yi = b0 + b1*Xi + ei · Yi is response from suject i. · Xi are covariates. · b0, b1 are parameters that we want to estimate. · ei are the random terms in the model, and are assumped to be independently and indentically distributed from Normal(0,1). It is very important that there is no stucuture in ei and it represents the variations that could not be controled in our studies. 4 of 34 1/29/14, 10:51 PM
  • 5. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Violation of independence assumpation. In many cases, responses are not independent from each other. These data usualy have some cluster stucture. · Repeated measures, where measurements are taken multiple times from the same sujects. (clustered by subject) · A survey of all the family memebers. (clustered by family) · A survey of students from 20 classrooms in a high school. (clustered by classroom) · Longitudial data, or known as the panel data, where several responses are collected from the same sujects along the time. (clustered by subject) We need new tools - Mixed effect model. 5 of 34 1/29/14, 10:51 PM
  • 6. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Mixed effect model Mixed effect model = Fixed effect + Random effect · Fixed effects - expected to have a systematic and predictable influence on your data. - exhaust “the levels of a factor”.Think of sex(male/femal). · Random effect - expected to have a non-systematic, unpredictable, or “random” influence on your data. - Random effects have factor levels that are drawn from a large population, but we do not know exactly how or why they differ. 6 of 34 1/29/14, 10:51 PM
  • 7. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Example of Fixed effects and Random effects FIXED EFFECTS Male or female Individuals with repeated measures Insecticide sprayed or not Block within a field Upland or lowland Brood One country versus another Split plot within a plot Wet versus dry 7 of 34 RANDOM EFFECTS Family 1/29/14, 10:51 PM
  • 8. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Fixed effect model 8 of 34 1/29/14, 10:51 PM
  • 9. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Fixed effect model Fixed effect model is just the linear model that you maybe already know. Yi = b0 + b1*Xi + ei 1<i<n n is number of sample · Yi: Response Variable · b0: fixed intercept · b1: fixed slope · Xi: Explanatory Variable (fixed effect) · ei: noise (error) 9 of 34 1/29/14, 10:51 PM
  • 10. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Data generation of fixed effect model set.seed(1) # genaerate x x <- seq(1,5,length.out=100) # generate error noise <- rnorm(n=100,mean=0,sd=1) b0 <- 1 b1 <- 2 # generate y y <- b0 + b1*x + noise 10 of 34 1/29/14, 10:51 PM
  • 11. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Data generation of fixed effect model plot(y~x) 11 of 34 1/29/14, 10:51 PM
  • 12. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Cooefficient estimation of fixed effect model model <- lm(y~x) summary(model) Call: lm(formula = y ~ x) Residuals: Min 1Q -2.3401 -0.6058 Median 0.0155 3Q 0.5851 Max 2.2975 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 1.1424 0.2491 4.59 1.3e-05 *** x 1.9888 0.0774 25.70 < 2e-16 *** --Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 Residual standard error: 0.903 on 98 degrees of freedom 12 of 34 1/29/14, 10:51 PM
  • 13. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 plot of fixed effect model plot(y~x) abline(model) 13 of 34 1/29/14, 10:51 PM
  • 14. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Mixed effect model 14 of 34 1/29/14, 10:51 PM
  • 15. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Random Intercept model there are i people, and we repeat measure j times for every people. These poeple are individually different which we don't know, so there are random effect cause by people, and there are another random noise cause by measure for every people. Yij = b0 + b1*Xij + bi + eij · b0: fixed intercept · b1: fixed slope · Xij: fixed effect · bi: random effect(influence intercept) · eij: noise 15 of 34 1/29/14, 10:51 PM
  • 16. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Data generation of Random Intercept model b0 <- 9.9 b1 <- 2 # repeat measure times for 6 people n <- c(13, 14, 14, 15, 12, 13) npeople <- length(n) set.seed(1) # generate x(fixed effect) x <- matrix(rep(0, length=max(n) * npeople),ncol = npeople) for (i in 1:npeople){ x[1:n[i], i] <- runif(n[i], min = 1, max = 5) x[1:n[i], i] <- sort(x[1:n[i], i]) } # random effect bi <- rnorm(npeople, mean = 0, sd = 10) 16 of 34 1/29/14, 10:51 PM
  • 17. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Data generation of Random Intercept model xall <- NULL yall <- NULL peopleall <- NULL for (i in 1:npeople){ xall <- c(xall, x[1:n[i], i]) # combine x # generate y y <- rep(b0 + bi[i], length = n[i]) + b1 * x[1:n[i],i] + rnorm(n[i], mean = 0, sd = 2) # noise yall <- c(yall, y) # combine y people <- rep(i, length = n[i]) peopleall <- c(peopleall, people) } # final dataset data1 <- data.frame(yall,peopleall,xall) 17 of 34 1/29/14, 10:51 PM
  • 18. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Cooefficient estimation of Random Intercept model library(nlme) # xall is fixed effect # bi influence intercept of model lme1 <- lme(yall~xall,random=~1|peopleall,data=data1) summary(lme1) Linear mixed-effects model fit by REML Data: data1 AIC BIC logLik 358 368 -175 Random effects: Formula: ~1 | peopleall (Intercept) Residual StdDev: 7.3 1.77 Fixed effects: yall ~ xall 18 of 34 1/29/14, 10:51 PM
  • 19. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Plot of Random Intercept model 19 of 34 1/29/14, 10:51 PM
  • 20. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Random Intercept and slope model Yij = b0 + (b1+si)*Xij + bi + eij · b0: fixed intercept · b1: fixed slope · X: fixed effect · bi: random effect(influence intercept) · eij: noise · si: random effect(influence slope) 20 of 34 1/29/14, 10:51 PM
  • 21. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Data generation of Random Intercept and slope model a0 <- 9.9 a1 <- 2 n <- c(12, 13, 14, 15, 16, 13) npeople <- length(n) set.seed(1) si <- rnorm(npeople, mean = 0, sd = 0.5) # random slope x <- matrix(rep(0, length = max(n) * npeople), ncol = npeople) for (i in 1:npeople){ x[1:n[i], i] <- runif(n[i], min = 1, max = 5) x[1:n[i], i] <- sort(x[1:n[i], i]) } 21 of 34 1/29/14, 10:51 PM
  • 22. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Data generation of Random Intercept and slope model bi <- rnorm(npeople, mean = 0, sd = 10) # random intercept xall <- NULL yall <- NULL peopleall <- NULL for (i in 1:npeople){ xall <- c(xall, x[1:n[i], i]) y <- rep(a0 + bi[i], length = n[i]) + (a1 + si[i]) * x[1:n[i],i] + rnorm(n[i], mean = 0, sd = 0.5) yall <- c(yall, y) people <- rep(i, length = n[i]) peopleall <- c(peopleall, people) } # generate final dataset data2 <- data.frame(yall, peopleall, xall) 22 of 34 1/29/14, 10:51 PM
  • 23. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Cooefficient estimation of Random Intercept and slope model # bi influence intercept and slope of model lme2 <- lme(yall~xall,random=~1+xall|peopleall,data=data2) print(summary(lme2)) Linear mixed-effects model fit by REML Data: data2 AIC BIC logLik 179 194 -83.6 Random effects: Formula: ~1 + xall | peopleall Structure: General positive-definite, Log-Cholesky parametrization StdDev Corr (Intercept) 11.593 (Intr) xall 0.464 0.044 Residual 0.445 23 of 34 1/29/14, 10:51 PM
  • 24. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Plot of Random Intercept and slope model 24 of 34 1/29/14, 10:51 PM
  • 25. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 what if we just use linear model · complete pooling # wrong estimation lm1 <- lm(yall~xall,data=data2) summary(lm1) Call: lm(formula = yall ~ xall, data = data2) Residuals: Min 1Q Median -17.80 -6.27 -3.67 3Q 2.19 Max 24.33 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 6.86 3.72 1.84 0.06874 . xall 4.31 1.15 3.76 0.00032 *** --25 of 34 1/29/14, 10:51 PM
  • 26. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 what if we just use linear model · no pooling # wrong estimation and waste too many freedom and we don't care about the exact different of pe lm2 <- lm(yall~xall+factor(peopleall)+xall*factor(peopleall),data=data1) summary(lm2) Call: lm(formula = yall ~ xall + factor(peopleall) + xall * factor(peopleall), data = data1) Residuals: Min 1Q Median -2.983 -1.194 0.054 3Q 1.092 Max 4.238 Coefficients: (Intercept) xall 26 of 34 Estimate Std. Error t value Pr(>|t|) 18.818 1.342 14.02 < 2e-16 *** 0.929 0.413 2.25 0.028 * 1/29/14, 10:51 PM
  • 27. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 General Mixed effect model 27 of 34 1/29/14, 10:51 PM
  • 28. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Logistic Mixed effect model Yij = exp(eta)/(1+exp(eta)) eta = b0 + b1*Xij + bi + eij · b0: fixed intercept · b1: fixed slope · X: fixed effect · bi: random effect(influence intercept) · eij: noise 28 of 34 1/29/14, 10:51 PM
  • 29. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Data generation of Logistic Mixed effect model b0 <- - 6 b1 <- 2.1 set.seed(1) n <- c(12, 13, 14, 15, 16, 13) npeople <- length(n) x <- matrix(rep(0, length = max(n) * npeople), ncol = npeople) bi <- rnorm(npeople, mean = 0, sd = 1.5) for (i in 1:npeople){ x[1:n[i], i] <- runif(n[i], min = 1,max = 5) x[1:n[i], i] <- sort(x[1:n[i], i]) } 29 of 34 1/29/14, 10:51 PM
  • 30. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Data generation of Logistic Mixed effect model xall <- NULL yall <- NULL peopleall <- NULL for (i in 1:npeople){ xall <- c(xall, x[1:n[i], i]) y <- NULL for(j in 1:n[i]){ eta1 <- b0 + b1 * x[j, i] + bi[i] y <- c(y, rbinom(n = 1, size = 1, prob = exp(eta1)/(exp(eta1) + 1))) } yall <- c(yall, y) people <- rep(i, length = n[i]) peopleall <- c(peopleall, people) } data3 <- data.frame(xall, peopleall,yall) 30 of 34 1/29/14, 10:51 PM
  • 31. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Cooefficient estimation of Logistic Mixed effect model library(lme4) # formula is different lmer3 <- glmer(yall~xall+(1|peopleall),data=data3,family=binomial) print(summary(lmer3)) Generalized linear mixed model fit by maximum likelihood ['glmerMod'] Family: binomial ( logit ) Formula: yall ~ xall + (1 | peopleall) Data: data3 AIC 69.8 BIC 77.1 logLik deviance -31.9 63.8 Random effects: Groups Name Variance Std.Dev. peopleall (Intercept) 3.94 1.98 Number of obs: 83, groups: peopleall, 6 31 of 34 1/29/14, 10:51 PM
  • 32. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Plot of Logistic Mixed effect model 32 of 34 1/29/14, 10:51 PM
  • 33. Introduction of Mixed effect model http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 Case study 33 of 34 1/29/14, 10:51 PM
  • 34. Introduction of Mixed effect model 34 of 34 http://nycdatascience.com/mixed_effect_model_supstat/index.html#1 1/29/14, 10:51 PM