1. Question 1 A quantitative trading firm seeks to create a tool for querying the net profit/loss of the firm at any given time. The tool processes a list of events, each of which can be classified into one of four categories: 1. BUY stock quantity. Signifies the purchase of <quantity> shares of stock <stock> at the market price. 2. SELL stock quantity. Indicates the sale of <quantity> shares of stock <stock> at the market price. 3. CHANGE stock price: Signifies a change in the market price of <stock> by <price> amount, which can be either positive or negative. 4. QUERY: Represents a query for the net profit/loss from the start of trading to the present. he tool should return a list of numbers orresponding to each QUERY event.
Added by Joel W.
Close
Step 1
You can use a dictionary where the keys are stock names and the values are another dictionary containing 'quantity' and 'price'. Show more…
Show all steps
Your feedback will help us improve your experience
Keondre Parker and 91 other Physics 101 Mechanics educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Creating a discrete probability distribution: A venture capitalist, willing to invest $1,000,000, has three investments to choose from. The first investment, a social media company, has a 20% chance of returning $7,000,000 profit, a 30% chance of returning no profit, and a 50% chance of losing the million dollars. The second company, an advertising firm has a 10% chance of returning $3,000,000 profit, a 60% chance of returning a $2,000,000 profit, and a 30% chance of losing the million dollars. The third company, a chemical company has a 40% chance of returning $3,000,000 profit, a 50% chance of no profit, and a 10% chance of losing the million dollars. a. Construct a Probability Distribution for each investment. This should be 3 separate tables. In your table the X column is the net amount of profit/loss for the venture capitalist and the P(X) column uses the decimal form of the likelihoods given above. b. Find the expected value for each investment. c. Which investment has the highest expected return? d. Which is the safest investment and why? e. Which is the riskiest investment and why?
Keondre P.
An investor buys 100 shares of AT\&T stock and records its price change daily. a. List several possible events for this experiment. b. Estimate the probability for each event you described in a. c. Which concept of probability did you use in b?
An investor buys 100 shares of AT\&T stock and records its price change daily. a. List several possible events for this experiment. b. Which concept of probability did you use in (a)?
Recommended Textbooks
University Physics with Modern Physics
Physics: Principles with Applications
Fundamentals of Physics
Watch the video solution with this free unlock.
EMAIL
PASSWORD