Elastic net regularization

Assignment Help Python Programming
Reference no: EM132804665

Problem - Elastic net regularization

In statistics, the Elastic net uses a regularization that linearly combines the L1 and L2 penalties. The estimates from the elastic net method can be denoted as

β^ = arg minβ(f(β) + λ1||β|| + λ2||β||22

where f(β) is the loss function without regularization subject to the optimization variable β and λ1, λ2 are the coefficients to control the magnitude of penalty. Now we consider a linear model with

f(β) = ||y - xβ||22

where y ∈ Rn X∈Rnxp, and β∈RP. Please find the data of X and y with in = 500 and p = 200 via Canvas, solve the problem with different values of (A1, A2), then fill in the table by computing

Σpi=1 I(|βi*|≤ ∈)

where β* is the corresponding optimal solution, ∈ is set to be 10-3, and the indicator function is defined as

I(|βi*|≤ ∈) = 1   if |βi*| ≤ ∈,

                   0      otherwise.

1795_figure1.jpg

(b) Solve the following optimization problem:

minimize λmax(X) - λmin(X)
x∈s+n
subject to trace (AX) = 1.

Here we consider

62_figure.jpg

Please show the optimal value of X and all the code you use to solve the problem.

(c) Solve the unconstrained optimization problem with piecewise-linear objective function

minimize Maxi{aix ± bi}
x∈R

where a = (a1, a2, a3, a4, a5) = (-2, -4, -8,1, 3) and b = (b1, b2, b3, b4, b5) = (-1, -6, -1, -1, -12). Compare the results with the solution of following optimization problem:

minimize t
xER
subject to t ≥ aix + bi, i = 1,...,5.

Please show the optimal value of x for both problems and all the code you use to solve the problem.

Verified Expert

The solution was based on optimization using python programming language. The same can be implemented in R programming language but we selected python language due to the ease of implementation. Some of the libraries that might be important for the implementation include the sklearn and the matplotlib in order to allow the plotting of points on the console.

Reference no: EM132804665

Questions Cloud

How event will affect learning environments in the future : Examine the Tenth Amendment, Title I, No Child Left Behind and Determine how this event has impacted today's learning environments. Predict how this event will.
What is the primary goal of the management : What is the Primary Goal of the Management? PROFIT OR WEALTH MAXIMIZATION.Start a discussion by answering the question and how is it different
Compare the family background and leadership styles : You may compare their family background, leadership styles, accomplishments, victories, losses, or impact of the culture in which each lived.
How much is the loss recognized during the year : The fair value of the building on December 31, 20x5 is 17,200,000. How much is the loss recognized during the year
Elastic net regularization : Solve the unconstrained optimization problem with piecewise-linear objective function and show the optimal value of x for both problems and all the code
Determine the cost of the units of product made in january : Combine the individual overhead costs into a cost pool and calculate a predetermined overhead rate assuming the cost driver is number of units.
What is the exceptional adjust : 1) You've got chosen to purchase a car and fund it with a 15-year, 4.50% APR mortgage. The car costs $600,000 and the bank requires a 20% down installment. All
What items are included in manufacturing overhead : SR 200, your variable cost is SR2 per kilowatt hour, and your monthly activity level is 3,000 kilowatt hours, what is the amount of your utility bill?
Determining the best estimate of the value of bonds : Given the facts in the problem, what is the best estimate of the value of one of these bonds today? Why? (No calculations necessary.)

Reviews

len2804665

2/22/2021 3:09:03 AM

I have problem in finishing an Optimization Assignment and may need for Tutors''s help. Not a big work but I need to understand the logic and the coding steps.

Write a Review

Python Programming Questions & Answers

  Do basic trigonometry functions

Create a program that allows the user to do basic trigonometry functions. First, ask the user if he or she would like to do sine, cosine, or tangent (sin, cos, tan).

  Write a program to show a version of the memory game

Designing your program by decomposing it into smaller subproblems to be implemented as functions makes programming easer.

  Ask the user to re-enter their email address till they get

Ask the user for their name and their email address before you display the results of the conversions. When you display the conversion output to the user.

  COSC 2670 Practical Data Science with Python Assignment

COSC 2670 Practical Data Science with Python Assignment help and solution RMIT University - assessment writing service - examine a data file and carry out

  Enter an amount as a floating-point value representing

The program lets the user enter an amount as a floating-point value representing a total dollars and cents, and then outputs a report listing the monetary.

  Design and develop a prototype product

Design and develop a prototype product that uses Internet of Things technologies for environmental monitoring. Generally, IoT products collect data observed

  Explore a dungeon filled with traps and treasure

Explore a dungeon filled with traps and treasure. The dungeon geography will be specified by a dungeon map file on disk, which you will load in and parse.

  Grade that will calculate and return a student''s exam

Write a function overall Grade that will calculate and return a student's 2316 exam average. It will accept five parameters, which correspond to exam1,2,3,4 and the Final grade. It should replace the lowest exam grade with the 2nd lowest exam grade

  Define function which takes a decimal number as an input

HOLMES INSTITUTE - HS1031 Introduction to Programming Assignment - Define a function conversion.py which takes a decimal number as an input

  Exploring the potential of natural language processing

For Reading Purposes. EXPLORING THE POTENTIAL OF NATURAL LANGUAGE PROCESSING AND MACHINE LEARNING IN CHILD LANGUAGE DISORDERS DIAGNOSIS, Preprocessing data from conti-4 : cleaning the raw dataset into structured form for subsequent processing and ana..

  Write a python script that reads the child mortality data

ICT702 : Write a Python script that reads and analyses the child mortality data file (WHOSIS_MDG_000003.csv) and produce at least FIVE.

  Arithmetic progression is a sequence of numbers

An arithmetic progression is a sequence of numbers in which the distance (or difference) between any two successive numbers if the same.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd