Question: ( 1 point ) Machine Learning Application Logistic regression ( LR ) is a type of model used to compute the probabitity that a class
point Machine Learning Application
Logistic regression LR is a type of model used to compute the probabitity that a class or an event is observed. LR is commonly used in machine learning applications. In thi. problem, we will implement a logistic regression models and then we will apply it
a A company is interested in determining the probability that a person will rent their escooters for a trip from Terrace to UPRM. They have a LR model that computes the probability that a person rents an escooter; we will use to represent this probability. Create a function called model that implements the following LR model:
where The variable represents a person's income and the variable is the price of an escooter trip. The and variables must be represented as the function parameters. The function must return the value of
b The model classifies people as renters and nonrenters of the company's escooters based on each person renting probability The "decision rule" is as follows: if the probability is greater than the person is classified as a renter; otherwise, the person is classified as a nonrenter. Create a function called classification that implements the decision rule. The function must return the value of a variable called decision. decision is if is greater than ie the person is classified as a renter and otherwise ie the person is classified as a nonrenter
c Add the lrmodel function and the classification function within function called demandforecast. This function predicts the level of demand for scooters at different price levels. should be simil
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
