General(ized) Linear Models: an introduction to machine learning
Lior Pachter
California Institute of Technology
1
Lecture 11
Caltech Bi/BE/CS183
Spring 2023
These slides are distributed under the CC BY 4.0 license
Map of distributions (Lecture 10)
2
Simple linear regression
3
Multiple (linear) regression
4
Recall (Lecture 3): solving the least squares problem
5
^
standard notation for an estimator
General linear model
6
. . .
Regression types
7
Simple linear regression
Multiple linear regression
General linear models
1
>1
1
>1
Dependent variables
Independent variables
outcomes
Generalized linear models
8
Generalized linear models
9
Exponential family
10
Link functions
11
Canonical link functions
12
Example: Poisson regression
13
Example from Kida, 2019
Example: Poisson regression
14
Example: Poisson regression
15
Example from Kida, 2019
Prediction of the �Poisson regression
Logistic regression (Bernoulli regression)
16
Inverting the link function
17
steepness
midpoint
Recall from Lecture 3: Logistic regression for classification
18
Recall from Lecture 3: Higher dimension logistic regression
19
Recall from Lecture 3: classification for COVID-19 tests
20
barcode + cDNA is the same structure as in single-cell RNA-seq
Recall from Lecture 3: classification for COVID-19 tests
21
Summary: regression types
22
Simple linear regression
Multiple linear regression
General linear models
1
>1
1
>1
Dependent variables
Independent variables
Generalized linear models
outcomes
outcomes:
General(ized) linear models
23
John Nelder
Generalized linear models as machine learning
24
Fitting generalized linear models in R (is easy)
25
Fitting generalized linear models in R (is easy)
26
Applications to single-cell RNA-seq
27
Applications to single-cell RNA-seq
28
Applications to single-cell RNA-seq
Reference 42:
29
Applications to single-cell RNA-seq
30
Applications to single-cell RNA-seq
31
Applications to single-cell RNA-seq
32
Applications to single-cell RNA-seq
33
Applications to single-cell RNA-seq
34
Applications to single-cell RNA-seq
35
Applications to single-cell RNA-seq
36
Applications to single-cell RNA-seq
37
Beta distribution
38
Applications to single-cell RNA-seq
39
Summary: regression types
40
Simple linear regression
Multiple linear regression
General linear models
1
>1
1
>1
Dependent variables
Independent variables
Generalized linear models
outcomes
outcomes:
Preview: (Lecture 13) statistical testing
41
Preview: (Lecture 12) normalization
42
43
One framework to rule them all!
44
Additional References
45