Answered step by step
Verified Expert Solution
Question
1 Approved Answer
OLS and Linear Regressions June 1: June 7 Must post first. If you have not yet, watch this week's lectures before completed the following exercises.
OLS and Linear Regressions June 1: June 7 Must post first. If you have not yet, watch this week's lectures before completed the following exercises. Evaluation (10 pts) 2 pts for replying to a colleague. See breakdown for the other 8pts below. What does column_stack() and add_constant() do and why do we use them? . (2 pt) Clear definition of column_stack() and use. . (2 pt) Clear definition of add_constant() and use. Pseudo code, where "pseudo" means imitating, is a strategy programmers can use to break down a complex solution into digestible steps to a solution. As we continue to use OLS for our machine learning algorithms, you will notice there is a general format to training a model. Please write a few simple lines of pseudo code to training a model using OLS. Look at the code walkthrough. You can access the py file as well. . (2 pts) Concise and coherent pseudo codes (4-7 lines) Using the code from the walkthrough, execute the lines until you get the trained model. Pass the model into the function dir(). What does dir() do? Google the function, read the documentation, then pick one attribute and explain its meaning. (1 pt) Explanation of dir() (1 pts) Explanation of one attribute You must start a thread before you can read and reply to other threads Linear Algebra and Matrix Manipulation June_1: June 7 Must post first. Evaluation (10 pts) This discussion is a total of 10 pts, see break down below. Part 1: Solve for X using properties of matrix math. Please show your work. (you can insert equations or upload hand-written work) X = AA-2A, 3 -1 A = 10 2 1. (2 pts) XA = B, 2. (2 pts) X =34-48, A = -2) 1 -7/B= 3. (2 pts) X - AA -2AB, 4. (2 pts) Part 2: In a simple linear regression, we can calculate the predicted outcome we can calculate the predicted outcome Y by the matrix form: X, Bo ... Y = XB + & Now, let's say n = 5, Bo = 0.123, and B1 = 3 . (2 pts) Compute Y provided: [X1, X2, 23, 24, 25] = [-1, -0.5, 0, 0.5, 1] [(1, E2, (3, E4, (5] = [0.01, 0.02, 0.12, 0.08, 0.09] You must start a thread before you can read and reply to other threads
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started