Peter Steinbach
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# Causal Inference Workshop 2021 timetable: https://events.hifis.net/event/98/timetable/ ## House Keeping ### Code of Conduct We facilitate this meeting under the [Dresden Code of Conduct](https://dresden-code-of-conduct.org/de/) (for lack of any other one). **Please be mindful of your peers and supportive in your communication!** ### Connection Details Peter Steinbach is inviting you to a scheduled Zoom meeting. Topic: An Introduction to Causality Time: May 6, 2021 10:00 AM Amsterdam, Berlin, Rome, Stockholm, Vienna Join Zoom Meeting https://zoom.us/j/96747132671?pwd=ejNNY2ZIVUJnd1FSQWVoTVQ4UFdBdz09 Meeting ID: 967 4713 2671 Passcode: 284941 One tap mobile +496938079883,,96747132671#,,,,*284941# Germany +496950502596,,96747132671#,,,,*284941# Germany Dial by your location +49 69 3807 9883 Germany +49 695 050 2596 Germany +49 69 7104 9922 Germany +49 30 5679 5800 Germany +1 301 715 8592 US (Washington DC) +1 312 626 6799 US (Chicago) +1 346 248 7799 US (Houston) +1 646 558 8656 US (New York) +1 669 900 9128 US (San Jose) +1 253 215 8782 US (Tacoma) Meeting ID: 967 4713 2671 Passcode: 284941 Find your local number: https://zoom.us/u/acAUveM2gI ## Course ### Your Challenges: Bring Your Own Data Please let us know, if you like to present your data (either only orally or with 1-2 slides). Spontaneous contributions are welcome alike. - beamline control: avoid drill holes in walls, stochastically direct&shape beams using "mirrors"/magnets and undulators. Q: what change in mirrors/actuators caused beam to go where? data: intraction points w/ values, beam location outcome. Confounders: temperature, voltage, ... - good aspect: this experiment can controlled, i.e. you can do experiments where you alter all motors/mirrors/magnets and see what happens - problem: depending on the size of the beamline, these experiments take a lot of time - this way, the Markov equivalence class problem can be mitigated because I can construct a dataset that will provide me with the causal graph for my quantity/outcome of interest - dataset on blood loss after birth (natural delivery vs. "surgical" delivery): - confounders known (age of mother, age and weight of fetus, BMI, ...) - isolated confounders with experts - model didn't provide good predictions, randomized trial hard if not impossible - Q: did we check for the right confounders? - controls need to be validated with experts - ideally look at data with randomization properties - use instrumental variables e.g. availability of surgical doctors - MR: Mendelian randomization - Compare the results from trans and cis eQTL summary based data (SMR) using the cis eQTLs as Instrumental Variables - See which genes could be robustly instrumented with multiple independent markers in a cohort with 46 different tissues - Measure the instrument strength either with TSLS or F_{stat} - physical activity effect on molecules in blood. data: longitudinal observational study (t=1..3), binary outcome (molecule present). - Q: adjust for age? (has effect on both variables of interest) - first stab: control for age as it might effect the level of molecules in the blood when starting the study - Q: data has selection bias - would worry about it, e.g. marathon runners (consistent exercise, but also nutrition effects) vs. occasional runners - BMI circular effect on physical activity? - what is the effect you try to estimate? (average effect or specific effect) - for average effect, monitoring/mitigating selection bias is important; for specific effect perhaps not - maybe phrase question for effect on BMI at given point in time (BMI after study, BMI at fixed time `t`) ### Feedback before Lunch break #### Please share something with us, that you liked about the course or something that you learned :+1: - I like the interactiveness of the presentation :+5: - the real world examples helped a lot to bring the more theoretical ideas into - Small setting that favors interaction, extremely interesting, thanks a lot! - Very good introduction into the concept of Causal Inference, good examples, all questions answered. (PS: never forget COLLIDER BIAS) - #### Please share something with us, that you didn't like or something that want us to improve :-1: - Niki's audio problems - The methods part/ overview was very dense. Looking forward to a few step-by-step applications in the afternoon ;-) - Please spend a bit more time introducing terminology typically used in causal inference such as T=treatment, C=control(?). Maybe also mention that these are rooted in clinical studies (if true). - Please spend a bit more time to make sure that most people digested the concepts of confounder vs. collider, before moving on to topics that build on that, such as instrumental variables and the method employing auxiliary models eventually implemented in the notebook for the afternoon. - On various slides: It would help to use symbols used in equations (such as L, T, \hat{t}, X, Y, W, ...) in the graph sketches as well. ## Exercises ### how-to - Unzip the distributed file - go to https://colab.research.google.com/ and create a new notebook, choosing the "upload" option - Upload the ipynb file - In the tabs on the left, go to the "files" section. Drag & drop the remaining 3 files from the zip into this field (1 parquet file, 2 joblib files) - After the parquet has finished uploading, you can start - go through the cells, running them using shift-enter and roughly following along. - Your exercise is at the bottom. We hope that most can finish the main exercise - if you're very fast, there is extra credit. HINT: no need to follow every detail above the exercise. You can just quickly run everything and then follow the instructions in the exercise-section. ### running the notebooks locally - the zip file is located here: https://hmgubox2.helmholtz-muenchen.de/index.php/s/fKkxtzd3d3gzMa7 - note that you may want to install `pyarrow` or `fastparquet` before loading the `.parquet` file (in my local pip `20.2.2` installation with python `3.9`, this was not considered a required dependency by defaul) - `econml` can be found at https://github.com/microsoft/EconML ### Feedback on the afternoon part #### Please share something with us, that you liked about the course or something that you learned :+1: - the exercises were a nice fit to really start bringing the more abstract topics from the morning into a domain, where abstract context needed to be come concrete - Niki's talk was great and made many things more clear! Esp. the IV explanation using the smoker/treatment assignment with the assignment being the instrument was super helpful.:+2: - I like the style of Niki's talk as it went from almost atomic observations between entities to a causal inference :+2: #### Please share something with us, that you didn't like or something that want us to improve :-1: - Maybe a different code example to understand the morning material better. :+2: - I was still chewing on the morning material, so I spent most of the coding hour actually understanding the data set. - The concept of "elasticity" which is talked about at the beginning of the notebook could use a more rigorous definition. If that was defined in the morning talk, then I might have missed it :) - The notebook mentioned another notebook called `_prep`(?), which was not present. Probably a leftover text snippet from another course? - The coding done by Niki in the afternoon session was very fast. One could only follow if all material from before was completely clear. But it showed that he really knows his stuff! - The xlabel of plot ```py sns.distplot(df.groupby('StockCode').UnitPrice.std().dropna().clip(0, 15), kde=False) ``` says "UnitPrice", while it should say for instance "std(UnitPrice)". - In case the first part of Niki's talk (2SLS) is equal to the auxiliary model method implemented in the notebook, then the talk (at least this part) should be given in the morning session. If not then I'm confused and have to recap the material even more. - the notebook blew my mind a bit: I wasn't familiar with some of the terms used and in addition, training was not performed as I am used to (train-test-split), I think that imposed quite some cognitive load that made me struggle to appreciate the causal inference part of the notebook :+4: - The python implementation was hard to follow for non-python people. - The last talk from Niki was so interesting that I wish it would have been presented completely - a little bit more time would be awesome! Please keep that series, really nice group of people! ### Why Causal Inference? https://pbs.twimg.com/media/E0PkD69XoAo4Kql?format=jpg&name=medium The image above was produced based on a recent Paper by Gelman that identifies the most important statistical ideas of the last 50 years. This course brought you onto square 1!

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully