Question: Create a graphical user interface of your choosing that has at least An area to plot a graph. A button (or input of your choice)

Create a graphical user interface of your choosing that has at least

  1. An area to plot a graph.
  2. A button (or input of your choice) that allows you to read a file of xy data and plot the data in your graph. See Link (Links to an external site.) for details on how to user . Or see inclass example to show you how to input data.
  3. A button that computes the linear regression coefficients of your data and display the equation on your GUI.
  4. A method that plots your linear equation line over your data points that were input.
  5. A display of the final linear equation

Create a class for linear regression

  1. First, figure out how to solve the problem by hand. For details on how linear regression works and what formulas you need to use in your software, refer to the following video lecture series and PowerPoint. presentation: http://mathforcollege.comm/topics/linear_regression.html (Links to an external site.)
  2. Here are the key equations needed for linear regression: Key EquationsCreate a graphical user interface of your choosing that has at least.
  3. Create a stand-alone class that does the regression analysis (use project-> add class). This class should have variables like the x and y data arrays, filename, coefficients of the regression, flags to ensure the data exists etc. It should have functions that calculate the various sums and products needed for your calculations, a function to compute the coefficients, functions to read the file and fill in the data, function to compute y array given x array etc.
  4. Once your class has been completed and tested (without the use of GUI). Create a variable in your GUI of the class and fill in and create the user experience for using your class.
  5. From the examples from different majors given in the lecture series above, choose one of the examples and show that your program generates the same answers.
  6. The data should be a text file with an x and y value per line of data. For now, make it so the maximum data size you can have is 50 values.
  7. Collect or get some data of your own choosing and test your code out. Do your predicted values make sense?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!