Question

In: Computer Science

For this assignment, I'm going to give a series of problem statements and you need to...

For this assignment, I'm going to give a series of problem statements and you need to state whether the problem would be more appropriately solved with a linear or logistic regression. You also have to give a short defense of why this is the correct regression for each one (only need a sentence or two for each).

  1. I have a dataset of soil sample attributes (acidity, density, clay content, etc.) and whether Kentucky bluegrass successfully grew in the soil. I want to know if I will be able to grow it in my yard.
  2. I have a dataset of highway speed limits and the amount of fatal accidents that happen on those highways annually. I'd like to know how many lives I could save if I lowered the speed limit by 5 MPH.
  3. I've been doing testing on my website, trying to determine how much I can charge for my widgets by changing the price several times and tracking whether users buy the product. I want to know the odds someone will buy my widgets if the price is $45.
  4. I've been tracking (and varying) my daily calorie intake and tracking weight change. I'd like to know how much weight I would expect to lose if I decreased my intake by 500 calories/day.
  5. I have a dataset I created around my lemonade stand that I use to supplement my income. I've been tracking weather and temperature and how many glassed of lemonade I sold that day. Now I want to determine how many glasses I should be prepared to sell each day this week by looking at the weather report.

Solutions

Expert Solution

1):Logistic Regression: The model should predict whether plant will be grown or not,so logistic regression will give the probability of growing plant in given situation.

2): Linear Regression: Themodel should predict number of fatal accidents with respect to speed limit and linear regression will give us a relation between speed limit and fatality

3) Linear regression: The model with llinear regression will predict number of users buying the widget with respect the price

4)Linear regression: The model should predict weight change with respect to calorie intake and so linear regression will give a relation between weight change and calorie intake

5)Linear regression: The model should predict number of lemonades sold with respect to the weather and so linear regression will give a relation between weather and number of lemonades to be prepared

(for any doubt about the answer just leave a comment)


Related Solutions

This is for an accounting assignment and I'm not sure where I'm going wrong. I'll copy...
This is for an accounting assignment and I'm not sure where I'm going wrong. I'll copy and paste what I have and the directions as best as possible. PLEEEASE HELP: June 22: Received a bill for $1,190 from Computer Parts and Repair Co. for repairs to the computer equipment. It's telling me my rep and maintenance expense is wrong. I entered: Repairs & Maint. Expense 1190 Accounts payable 1190 It's for Byte of Accouting. What else would this transaction be...
Assignment Overview This assignment will give you practice with interactive programs and if/else statements. Part 1:...
Assignment Overview This assignment will give you practice with interactive programs and if/else statements. Part 1: User name Generator Write a program that prompts for and reads the user’s first and last name (separately). Then print a string composed of the first letter of the user’s first name, followed by the first five characters of the user’s last name, followed by a random number in the range 10 to 99. Assume that the last name is at least five letters...
The Problem Below are a series of problems you need to solve using recursive functions. You...
The Problem Below are a series of problems you need to solve using recursive functions. You will write a program that will read commands from an input file, with each command referring to one of the recursive problems to be executed. Each command will be followed (on the same line of input) by the respective parameters required for that problem. Implementation Each recursive function MUST have a wrapper function enclosing it where you will do input/output file processing as well...
In this assignment you are going to use the menu you created in Assignment 1 to...
In this assignment you are going to use the menu you created in Assignment 1 to test both your Double and Integer classes. You should add functionality to the menu to allow you test the add, sub, mul, div functions for instances of both classes You are going to have make a modification to your menu class. Currently it uses an array to hold a fixed amount of menu items. While this may be OK for most applications we want...
The Problem Below are a series of problems you need to solve using recursive methods BY...
The Problem Below are a series of problems you need to solve using recursive methods BY using java . You will write a program that will read commands from an input file, with each command referring to one of the recursive problems to be executed. Each command will be followed (on the same line of input) by the respective parameters required for that problem. (15 points for main method) DescArrayCheck (15 points) Write a recursive method that checks whether an...
I need to calculate if I'm going to gain or lose weight in next 6 moths,based...
I need to calculate if I'm going to gain or lose weight in next 6 moths,based on energy intake and consumption. Which formulas do I need to use?
I need this in pseudocode: Similar to the previous assignment, you’re going to read in the...
I need this in pseudocode: Similar to the previous assignment, you’re going to read in the number of years the player played and the starting year of that player – followed by the statistics for those years. This time, however, you’re going to print out the years from worst to best in sorted order. Hint: this will require a second array to store years. If you can sort one array, can you sort both? Sample Output #1: Enter the number...
Assignment problem. Give a small example of an assignment problem statement. Outline an algorithm for solving...
Assignment problem. Give a small example of an assignment problem statement. Outline an algorithm for solving the assignment problem. Is your algorithm polynomial? Explain.
Can you please modify where I'm going wrong (regarding Problem #2 I posted earlier; i.e., credit...
Can you please modify where I'm going wrong (regarding Problem #2 I posted earlier; i.e., credit card validation)? Please fix my code using the general format that reflects my current level of coding/where I am in the learning process: import java.util.Scanner; public class AmExValidator{ public static void main(String[] args) { Scanner amex = new Scanner(System.in); System.out.print("Enter credit card number for validation: "); String ccNum = amex.nextString(); //cc = credit card number as a string (not #) //checking for cc length...
I'm doing an assessment assignment of the lower extremities, I need 2 sentences for each question...
I'm doing an assessment assignment of the lower extremities, I need 2 sentences for each question listed below. There should be a total of 10 sentences. 1.Inspect LE for joint swelling/deformity 2.Inspect LE for range of motion 3. Assess for pain/tenderness 4.Checks LE push/pull bilaterally 5. Checks ambulation /Gait Logical sequence of exam (IPPA) and organization of assessment.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT