
Assigned Reading
- LASSO regression Slides►
Video►
YouTube►
- What to do about a negative McFadden R-squared?
ChatGPT►
- Tutorial on LASSO regression
Python►
R►
You Tube►
- Clusters of COVID-19 symptoms: Application of LASSO regression (use instructor's last name as password)
Read►
- Python and R code for LASSO regressions, temporal analysis, R-squared calculations, and other topics
Zip►
- Python code for LASSO Logistic Regression with interaction
terms
ChatGPT►
- Use of LASSO to capture non-linear data
Video►
Assignment
Question 1: LASSO regress COVID-19 test results on COVID-19 symptoms.
Identify the relative weight of each symptom, pair of symptom, and
triplet of symptoms. Clarify if clusters of symptoms are more accurate
than individual symptoms. LASSO regress COVID-19 test results on its symptoms:
Report a measure of goodness of fit and the coefficients for the
regression.
Resources for Question 1:
- Prepare the data by setting variables that are present to 1 and
absent to 0. When the COVID-19 test result is missing, drop the case
from the analysis. When a symptom is missing, replace it with its
mode, almost always 0. Data►
- 30 subset of IDs Data Subset►
- Data pre-processing
Python►
- Main effect model
Python►
- How to include interaction terms in Python
ChatGPT►
- Symptom cluster model
Python►
- Dr Vang's code
Python►
- Chris Naso's Teach One
Slides►
Python►
- Prasanna Shreya Varanasi's Intelligent Tutor
Prompt►
- Yili Lin's Intelligent Tutor
Patriot AI►
- Get a practice grade
Prompt►
Optional Question 2: Using LASSO
logistic regressions, identify the relative weights of each symptom,
pair of symptom and triplet of symptoms, in diagnosis
of COVID-19. Make sure that you use Polynomial function to create
interaction terms for symptoms. Make sure that you try the LASSO
regressions with the following three C hyper-parameters: 0.1, 0.01, and
0.001. List the non-zero coefficients for each of the C parameters.
Report the McFadden Pseudo R-square for each of the C parameters.
Resources for Question 2:
- COVID-19 test results and symptoms
Data►
- Count of number of times symptoms occur together for the same person
Data►
- Percent of times symptom listed in the row occurs before the symptom listed in the column
Data►
- Python code for repeated LASSO regressions, in order of variables' time of occurrence
Python►
- Jieun Jan's Teach One SQL►
- Tejaswi Pulusu's Teach One Slides►
- Maria Kurian's intelligent tutor
Prompt►
Revised Prompt►
- Yili Lin's Intelligent Tutor
Patriot AI►
Question 3: The following provides the results from a recent LASSO regression of "remission" on patients' "medical
history" for patients taking 15 different antidepressants.
- For patients taking bupropion, which five features have the
largest positive coefficients for symptom remission? Ask ChatGPT
whether a person with those features should take bupropion. Explain
how its advice differs from what the regression tells you.
- For patients taking bupropion, which five features provide
the strongest evidence of lower predicted remission? Identify the five
most negative coefficients.
- Which features appear in both the bupropion and citalopram
remission models? Treat ICD codes with the same first three characters
as the same feature.
- You may ask about any feature with a nonzero coefficient in
either regression. List the first ten questions, in the order you
would ask them, to distinguish between bupropion and citalopram with
as few questions as possible.
Here are resources for Q3:
- For regression coefficients look at the sheet "Rem Coef"
Download►
- How to code response to 3c in Python
ChatGPT►
- Nishita's Teach One Slides►
- Maria Kurian's intelligent tutor
Prompts►
- Lalla-karima Hijane Intelligent Tutor
PDF► (add file into your AI platform)
- Yili Lin's Intelligent Tutor
Patriot AI►
- Get practice grade
Prompt►
More
- Graphical LASSO
PubMed►
- Time varying graphical LASSO YouTube►
- Graphical LASSO more accurate than logistic regression
PubMed►
This page is part of the course on Comparative Effectiveness by Farrokh Alemi, PhD Home►
Email►
|