Coder Social home page Coder Social logo

methods-2-course's Introduction

Methods 2: The General Linear Model

Link to your GitHubs & a place to ask questions. https://cryptpad.fr/pad/#/2/pad/edit/9XzXCCn3hymNiRxmPb2WlH4m/

Overview

This course is about regression modelling and its conceptual and mathematical foundations. The main emphasis is on linear regression and the general linear model (GLM). After familiarizing ourselves with the broader context and goals of linear regression modelling in the first three weeks of the course, we turn to the mathematical foundations of this type (and many other types) of modelling: linear algebra and calculus. The concepts covered here are essential to understanding the methods underlying not just the modelling we use in this course but also the approaches introduced in later semesters. Once the mathematical groundwork is laid, we proceed to applying everything in practice. Ultimately this will take us to generalizations of the GLM like logistic regression.

Framework and tools

In most practical applications, we will work in the framework of Bayesian inference, which will be introduced at the beginning. Thanks to the modern software tools at our disposal - R and Stan - this is much easier nowadays than it used to be. For conceptual and practical reasons, this is the approach of choice. However, for a deeper understanding, we will also cover the ordinary least squares (OLS) approach to model fitting.

Literature

The main textbook for this course is Regression and Other Stories by Gelman, Hill, and Vehtari (2020), referenced below. Please get a copy of this. For the mathematical foundations, we will rely on parts of Essential Mathematics for Political and Social Research by Gill (2006), also referenced below. You can download the relevant chapters of this via the Royal Library.

Should you want to deepen your knowledge of the mathematical content, I can recommend the two companion books available here: https://minireference.com/.

Lesson Plan

Course week Week of year Topics and readings
1 5 Regression and the GLM: overview, data and measurement, (GHV1 1,2)
2 6 Basic methods, statistical inference (GHV 3,4)
3 7 Statistical inference (continued), simulation (GHV 4,5)
4 8 Math basics: functions, equations, polynomials, logarithms (Gill2 1)
5 9 Linear algebra basics: vectors, matrices, norms, transposition (Gill 3)
6 10 More linear algebra: geometry, determinants, rank, inversion, eigenvectors (Gill 4)
7 12 Scalar calculus: derivatives, integrals, fundamental theorem (Gill 5)
8 13 More calculus: root finding, extrema, Lagrange multipliers, vector calculus (Gill 6)
9 14 Conceptual foundations and history of the GLM, model fitting (GHV 6,7,8)
10 16 Fitting GLMs: prediction, Bayesian inference (GHV 9)
11 17 Multiple predictors, interactions (GHV 10)
12 18 Model comparison, assumptions and diagnostics (GHV 11)
13 19 Transformations, predictive simulations (GHV 12)

1 Gelman, A., Hill, J., & Vehtari, A. (2020). Regression and Other Stories (Analytical Methods for Social Research). Cambridge: Cambridge University Press. doi:10.1017/9781139161879

2 Gill, J. (2006). Essential Mathematics for Political and Social Research (Analytical Methods for Social Research). Cambridge: Cambridge University Press. doi:10.1017/CBO9780511606656

Videos

This whole course (with a few exceptions) is on YouTube! These videos are from last year's course which took place under lockdown conditions. This year, we're going to cover topics in a slightly different order, starting with an introduction to regression modelling before we go into linear algebra and calculus. This means the videos will be less relevant during the first three weeks of the course, but from then on, you can watch them in the order of the playlist.

Exam

  • Portfolio consisting of 3 assignments

  • Each assignment will require you to create an R Markdown notebook consisting of a mix of text and code.

  • Due

    1. End of week 10 (Sunday 13 March, 23:59)
    2. End of week 14 (Sunday 10 April, 23:59)
    3. End of week 18 (Sunday 8 May, 23:59)

You will receive a (short) feedback message from us on your portfolio assignments that you can use for improvements before finalizing your hand-ins.

methods-2-course's People

Contributors

chmathys avatar sigurdsfs avatar elisiusklp avatar

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.