From b77161957479a2531844a21309aea2965c3ade57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerardo=20Marx=20Cha=CC=81vez-Campos?= Date: Sat, 23 Sep 2023 12:27:05 -0600 Subject: [PATCH] Instructions added --- Readme.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Readme.md diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..f9f1008 --- /dev/null +++ b/Readme.md @@ -0,0 +1,16 @@ +# Ordinary least squares +The Ordinary Least Squares (OLS) is an important method in machine learning and statistics for several reasons. The OLS is a straightforward and easy-to-understand method for fitting **linear models**. It minimizes the sum of squared differences between the observed and predicted values, making it intuitive to understand. Additionally, the OLS is the foundation for linear regression, one of the most widely used machine learning and statistics techniques. Linear regression is valuable for modeling relationships between variables when you suspect a linear relationship exists. + +On the other hand, OLS provides a baseline model for comparison. When developing more complex machine learning models, starting with a simple linear regression model (OLS) is common to assess the predictive power of your features and establish a benchmark for model performance. You can also easily understand the coefficients or parameters of the model, which represent the strength and direction of the relationship between the input variables and the targets. This interpretability is important in many applications, especially when explaining results to non-technical stakeholders. + +While OLS is valuable in many scenarios, it's essential to acknowledge its limitations, especially when dealing with nonlinear relationships or complex data structures. More advanced machine learning techniques like decision trees, neural networks, or support vector machines may be more appropriate in such cases. However, OLS remains a foundational method with enduring relevance in machine learning and statistics. + +# Work for students +1. Add in your report how to obtain the OLS's parameter (Thetas) +2. Create a function that computes the Sum of Squared Residuals (SSR) by applying the proposed formula (lectures) +3. Compute and plot the SSR's performance applying a multi-level factorial DOE with: + - number of points *1000*, *10,000*, *1000,000*, and *1000,000,000* + - deviation *0.1*, *1*, *2*, *3*,*5* +4. Collect the time consumed by your OLS function (to compute thetas) with *1000*, *10,000*, *1000,000*, and *1000,000,000* points +5. Explore your generated data by using histograms and dispersion plots +6. In the dispersion plots, add your model performance \ No newline at end of file