Coder Social home page Coder Social logo

ga-glm-lecture's Introduction

GA Guest Lecture on GLMs

The gracious people at General Assembly allowed me to give a guest lecture on a topic I am quite partial to: generalized linear models (GLMs).

Data

Much of the data used here come from UCLA's IDRE tutorial modules. I claim no rights to owning them. I make no profit from using this data. The rest of the data is open source. I used the famous iris data, as well as the ggplot2-included diamonds data.

Notebooks

The lecture features intermittent code-a-longs. The python-notebooks directory contains Jupyter notebooks for the accompanying Python code. Feel free to clone this repository down and try the code out yourself!

R Code

I believe it is important to be language-agnostic. Since R is my native tongue, I have also replicated all of the Python code in the python-notebooks folder into R for reference. This can be found in the R-notebooks folder. The 03 file in the R-notebooks folder contains an example of cumulative logistic regression - something not easily implemented in Python.

Presentation

I am still considering whether or not I want to upload the full presentation. I am leaning towards no, but feel free to contact me and ask anyway!

However, here is a list of topics I cover in the presentation:

  • Recap OLS
  • Recap logistic regression
  • Discuss the general form of a GLM
  • Discuss some common GLMs and their applications
  • A brief interlude on model inference
  • GLMs for classification
    • Logistic regression for classification
    • Multinomial regression for classification
    • Cumulative logit regression for classification
  • GLM Pot Pourri

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.