diff --git a/doc/pub/week35/html/._week35-bs000.html b/doc/pub/week35/html/._week35-bs000.html index 6714a5fc6..badf47a47 100644 --- a/doc/pub/week35/html/._week35-bs000.html +++ b/doc/pub/week35/html/._week35-bs000.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • diff --git a/doc/pub/week35/html/._week35-bs001.html b/doc/pub/week35/html/._week35-bs001.html index 1572bb887..a3d94ee4e 100644 --- a/doc/pub/week35/html/._week35-bs001.html +++ b/doc/pub/week35/html/._week35-bs001.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • @@ -327,10 +327,10 @@ MathJax.Hub.Config({
    1. Brief repetition from last week
    2. -
    3. Discussions of the equations for ordinary least squares
    4. +
    5. Discussions of the equations for ordinary least squares (OLS)
    6. Discussion on how to prepare data and examples of applications of linear regression
    7. -
    8. Material for the lecture on Monday: Mathematical interpretations of linear regression
    9. -
    10. Monday: Ridge and Lasso regression and Singular Value Decomposition
    11. +
    12. Mathematical interpretations of OLS
    13. +
    14. Introduction of Ridge and Lasso regression

    Reading recommendations:

    @@ -338,7 +338,7 @@ MathJax.Hub.Config({
  • These lecture notes
  • -
  • Goodfellow, Bengio and Courville, Deep Learning, chapter 2 on linear algebra and sections 3.1-3.10 on elements of statistics (background)
  • +
  • Goodfellow, Bengio and Courville, Deep Learning, chapter 2 on linear algebra
  • Raschka et al on preprocessing of data, relevant for exercise 3 this week, see chapter 4.
  • For exercise 1 of week 35, the book by A. Aldo Faisal, Cheng Soon Ong, and Marc Peter Deisenroth on the Mathematics of Machine Learning, may be very relevant. In particular chapter 5 at URL"https://mml-book.github.io/" (section 5.5 on derivatives) is very useful for exercise 1 this coming week.
  • diff --git a/doc/pub/week35/html/._week35-bs002.html b/doc/pub/week35/html/._week35-bs002.html index 21440aaf6..e28b1e21c 100644 --- a/doc/pub/week35/html/._week35-bs002.html +++ b/doc/pub/week35/html/._week35-bs002.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • diff --git a/doc/pub/week35/html/._week35-bs003.html b/doc/pub/week35/html/._week35-bs003.html index 62bf35a4f..08298ae07 100644 --- a/doc/pub/week35/html/._week35-bs003.html +++ b/doc/pub/week35/html/._week35-bs003.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • diff --git a/doc/pub/week35/html/._week35-bs004.html b/doc/pub/week35/html/._week35-bs004.html index fa87622ea..56f67c9f2 100644 --- a/doc/pub/week35/html/._week35-bs004.html +++ b/doc/pub/week35/html/._week35-bs004.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • diff --git a/doc/pub/week35/html/._week35-bs005.html b/doc/pub/week35/html/._week35-bs005.html index a3517a3a3..eced6e858 100644 --- a/doc/pub/week35/html/._week35-bs005.html +++ b/doc/pub/week35/html/._week35-bs005.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • @@ -337,12 +337,12 @@ $$

    where \( \langle y_i \rangle \) is the mean value. Keep in mind also that till now we have treated \( y_i \) as the exact value. Normally, the -response (dependent or outcome) variable \( y_i \) is the outcome of a +output (response, target, dependent or outcome) variable \( y_i \) is the outcome of a numerical experiment or another type of experiment and could thus be treated itself as an approximation to the true value. It is then always accompanied by an error estimate, often limited to a statistical error estimate given by the standard deviation discussed earlier. In the discussion here we -will treat \( y_i \) as our exact value for the response variable. +will treat \( y_i \) as our exact value for the output variable.

    In order to find the parameters \( \theta_i \) we will then minimize the spread of \( C(\boldsymbol{\theta}) \), that is we are going to solve the problem

    diff --git a/doc/pub/week35/html/._week35-bs006.html b/doc/pub/week35/html/._week35-bs006.html index b02176fd6..ae33a7f1f 100644 --- a/doc/pub/week35/html/._week35-bs006.html +++ b/doc/pub/week35/html/._week35-bs006.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • diff --git a/doc/pub/week35/html/._week35-bs007.html b/doc/pub/week35/html/._week35-bs007.html index aabb5a016..574ade213 100644 --- a/doc/pub/week35/html/._week35-bs007.html +++ b/doc/pub/week35/html/._week35-bs007.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • diff --git a/doc/pub/week35/html/._week35-bs008.html b/doc/pub/week35/html/._week35-bs008.html index a8c58852b..4bb182a05 100644 --- a/doc/pub/week35/html/._week35-bs008.html +++ b/doc/pub/week35/html/._week35-bs008.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • diff --git a/doc/pub/week35/html/._week35-bs009.html b/doc/pub/week35/html/._week35-bs009.html index ff32e9e8c..fa2816cb9 100644 --- a/doc/pub/week35/html/._week35-bs009.html +++ b/doc/pub/week35/html/._week35-bs009.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • diff --git a/doc/pub/week35/html/._week35-bs010.html b/doc/pub/week35/html/._week35-bs010.html index 80e5828b8..e149a2b82 100644 --- a/doc/pub/week35/html/._week35-bs010.html +++ b/doc/pub/week35/html/._week35-bs010.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • diff --git a/doc/pub/week35/html/._week35-bs011.html b/doc/pub/week35/html/._week35-bs011.html index c3510dc7c..9175c34f7 100644 --- a/doc/pub/week35/html/._week35-bs011.html +++ b/doc/pub/week35/html/._week35-bs011.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • diff --git a/doc/pub/week35/html/._week35-bs012.html b/doc/pub/week35/html/._week35-bs012.html index 727a44c1f..629685f49 100644 --- a/doc/pub/week35/html/._week35-bs012.html +++ b/doc/pub/week35/html/._week35-bs012.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • diff --git a/doc/pub/week35/html/._week35-bs013.html b/doc/pub/week35/html/._week35-bs013.html index cbc52604b..1e506fa7c 100644 --- a/doc/pub/week35/html/._week35-bs013.html +++ b/doc/pub/week35/html/._week35-bs013.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • diff --git a/doc/pub/week35/html/._week35-bs014.html b/doc/pub/week35/html/._week35-bs014.html index 0c200eea0..62b194ea7 100644 --- a/doc/pub/week35/html/._week35-bs014.html +++ b/doc/pub/week35/html/._week35-bs014.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • diff --git a/doc/pub/week35/html/._week35-bs015.html b/doc/pub/week35/html/._week35-bs015.html index f51eab71b..09202c70b 100644 --- a/doc/pub/week35/html/._week35-bs015.html +++ b/doc/pub/week35/html/._week35-bs015.html @@ -133,6 +133,14 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d None, 'linear-regression-problems'), ('Fixing the singularity', 2, None, 'fixing-the-singularity'), + ('Ridge and LASSO Regression', + 2, + None, + 'ridge-and-lasso-regression'), + ('Deriving the Ridge Regression Equations', + 2, + None, + 'deriving-the-ridge-regression-equations'), ('Basic math of the SVD', 2, None, 'basic-math-of-the-svd'), ('The SVD, a Fantastic Algorithm', 2, @@ -182,10 +190,6 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'correlation-matrix-with-pandas'), - ('Correlation Matrix with Pandas and the Franke function', - 2, - None, - 'correlation-matrix-with-pandas-and-the-franke-function'), ('Rewriting the Covariance and/or Correlation Matrix', 2, None, @@ -196,14 +200,10 @@ doconce format html week35.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'and-finally-boldsymbol-x-boldsymbol-x-t'), - ('Ridge and LASSO Regression', + ('Back to Ridge and LASSO Regression', 2, None, - 'ridge-and-lasso-regression'), - ('Deriving the Ridge Regression Equations', - 2, - None, - 'deriving-the-ridge-regression-equations'), + 'back-to-ridge-and-lasso-regression'), ('Interpreting the Ridge results', 2, None, @@ -284,29 +284,29 @@ MathJax.Hub.Config({
  • The singular value decomposition
  • Linear Regression Problems
  • Fixing the singularity
  • -
  • Basic math of the SVD
  • -
  • The SVD, a Fantastic Algorithm
  • -
  • Economy-size SVD
  • -
  • Codes for the SVD
  • -
  • Note about SVD Calculations
  • -
  • Mathematics of the SVD and implications
  • -
  • Example Matrix
  • -
  • Setting up the Matrix to be inverted
  • -
  • Further properties (important for our analyses later)
  • -
  • Meet the Covariance Matrix
  • -
  • Introducing the Covariance and Correlation functions
  • -
  • Covariance and Correlation Matrix
  • -
  • Correlation Function and Design/Feature Matrix
  • -
  • Covariance Matrix Examples
  • -
  • Correlation Matrix
  • -
  • Correlation Matrix with Pandas
  • -
  • Correlation Matrix with Pandas and the Franke function
  • -
  • Rewriting the Covariance and/or Correlation Matrix
  • -
  • Linking with the SVD
  • -
  • What does it mean?
  • -
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • -
  • Ridge and LASSO Regression
  • -
  • Deriving the Ridge Regression Equations
  • +
  • Ridge and LASSO Regression
  • +
  • Deriving the Ridge Regression Equations
  • +
  • Basic math of the SVD
  • +
  • The SVD, a Fantastic Algorithm
  • +
  • Economy-size SVD
  • +
  • Codes for the SVD
  • +
  • Note about SVD Calculations
  • +
  • Mathematics of the SVD and implications
  • +
  • Example Matrix
  • +
  • Setting up the Matrix to be inverted
  • +
  • Further properties (important for our analyses later)
  • +
  • Meet the Covariance Matrix
  • +
  • Introducing the Covariance and Correlation functions
  • +
  • Covariance and Correlation Matrix
  • +
  • Correlation Function and Design/Feature Matrix
  • +
  • Covariance Matrix Examples
  • +
  • Correlation Matrix
  • +
  • Correlation Matrix with Pandas
  • +
  • Rewriting the Covariance and/or Correlation Matrix
  • +
  • Linking with the SVD
  • +
  • What does it mean?
  • +
  • And finally \( \boldsymbol{X}\boldsymbol{X}^T \)
  • +
  • Back to Ridge and LASSO Regression
  • Interpreting the Ridge results
  • More interpretations
  • Deriving the Lasso Regression Equations
  • @@ -347,10 +347,10 @@ next week) with the variance of the optimal parameters important role in optmization algorithms and Principal Component Analysis as a way to reduce the dimensionality of a machine learning/data analysis problem. -v -Linear algebra question: Can we use the Hessian matrix to say something about properties of the cost function (our optmization problem)? (hint: think about convex or concave problems and how to relate these to a matrix!).

    +

    Linear algebra question: Can we use the Hessian matrix to say something about properties of the cost function (our optmization problem)? (hint: think about convex or concave problems and how to relate these to a matrix!).

    +