Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE USE PYTHON AND CLEAR CODE TO FOLLOW THANK YOU! We have trained a simple machine learning model to predict whether we should go LONG

image text in transcribedimage text in transcribedimage text in transcribed

PLEASE USE PYTHON AND CLEAR CODE TO FOLLOW THANK YOU!

We have trained a simple machine learning model to predict whether we should go LONG or SHORT a stock depending on 2 factors: - its earnings per share (EPS); and - its returns on equity (ROE). The model comprises 3 lists of values: - eps: a list of 100 EPS values (normalized to between -1 and 1) - roe: a list of 100 ROE values (normalized to between 1 and 1 ) - signal: a list of 100 'LONG' or 'SHORT' signals corresponding by list index to the eps and roe values The values are generated using the following code snippet: import random random. seed (312) def f(r,c) : return [[ random. uniform(i-c, i)/c for i in range(c) ] for in range (r)] eps, roe, signal =f(3,100) signal =[ 'SHORT' if i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

2. Clearly identify time constraints.

Answered: 1 week ago

Question

Explain the steps involved in training programmes.

Answered: 1 week ago

Question

What are the need and importance of training ?

Answered: 1 week ago

Question

List the advantages and disadvantages of the pay programs. page 505

Answered: 1 week ago