Answered step by step
Verified Expert Solution
Question
1 Approved Answer
TASK 1 : Linear Regression ( 1 5 % - 1 0 0 marks ) This task will test your knowledge of file input and
TASK : Linear Regression marks
This task will test your knowledge of file input and mathematical formulas. Basic linear regression
LR is used to find a relationship between two types of data. For example, you could use LR to find
the relationship between glucose intake and heart rate. These initially would be plotted on a graph
where the axis represents glucose and the axis represents heart rate. Using the LR formula, you
can find equation of a straight line more commonly known as between
number of points on a graph. Below are the formulas to find a and b
You will be given multiple text files containing number of coordinates. Your program will read in
the coordinates and use the LR formula to produce the gradient a and the constant b and
being able to print out For example, if and your program will print out
This equation now represents the trend in the data you will be given. Finally, your
program will ask the user to type in a value of which will then calculate
Read data from file appropriately marks
Use LR formula to process the data and print out the correct equation of a straight line
marks Find new value of using user input marks
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