Skip to content
Tutorials Center
My learning

Topics

Lesson 35 of 37 ยท Projects and Practice

Practice Set: Consumers, Costs and Market Structures

Worked problems on utility maximization, costs, perfect competition, monopoly and oligopoly, with code to check each answer and a self-test quiz.

The best way to learn economics is to solve problems. This set covers chapters five and six: consumer choice, production and costs, and market structures. Try each problem on paper first, then open the solution and run the code to check your answer.

Use the method that works every time: write down what is given, name the rule you need (such as MR = MC or MU / P equal), do the algebra, and ask whether the answer makes sense.

Problem 1: Spending a budget

Mia has $12 to spend on notebooks ($2 each) and pens ($1 each). Her marginal utilities:

Unit Notebooks MU Pens MU
1st 24 9
2nd 18 8
3rd 12 6
4th 8 4
5th 4 2
6th 2 1

How many of each should she buy? Use MU per dollar.

Python Solution: greedy by utility per dollar

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check by hand: notebooks give 12, 9, 6, 4, 2, 1 utils per dollar and pens give 9, 8, 6, 4, 2, 1. Taking the highest ratios first, you reach the point where the last dollar yields the same utility on both goods.

Problem 2: Costs

A bakery has fixed cost $60 and variable cost VC = 4Q + 0.5Qยฒ. Find (a) the marginal cost MC = 4 + Q, (b) the quantity that minimizes average total cost, and (c) the minimum ATC.

ATC = 60/Q + 4 + 0.5Q. At the minimum, MC = ATC: 4 + Q = 60/Q + 4 + 0.5Q, so 0.5Q = 60/Q, Qยฒ = 120, Q = โˆš120 โ‰ˆ 10.95. Then ATC = 4 + 10.95 = 14.95.

Python Solution: search for the minimum ATC

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Problem 3: A competitive firm

For the same bakery in a perfectly competitive market, price is $20. Find the profit-maximizing output and profit.

P = MC: 20 = 4 + Q, so Q = 16. Revenue = 20 ร— 16 = 320. Cost = 60 + 64 + 128 = 252 (since VC = 4 ร— 16 + 0.5 ร— 256 = 64 + 128 = 192; so TC = 60 + 192 = 252). Profit = 68.

Will entry occur? Yes: price 20 is above the minimum ATC of about 14.95, so profit attracts entrants and the price falls toward 14.95.

Python Solution: profit and the shutdown check

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Problem 4: A monopolist

Demand is P = 60 - Q, MC = 10, no fixed cost. Find the monopoly price and quantity, the competitive outcome, and the deadweight loss.

  • MR = 60 - 2Q = 10, so Q = 25, P = 35, profit = 25 ร— 25 = 625.
  • Competition: P = MC = 10, Q = 50.
  • Deadweight loss = ยฝ ร— (35 - 10) ร— (50 - 25) = 312.5.
Python Solution: monopoly versus competition

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Problem 5: A duopoly game

Two stores choose High or Low advertising. Payoffs (profit in $ thousands): (High, High) 8, 8; (High, Low) 3, 12; (Low, High) 12, 3; (Low, Low) 5, 5. Find the Nash equilibrium.

Whatever the rival does, Low pays more (12 against 8 if the rival chooses High, 5 against 3 if the rival chooses Low), so (Low, Low) is the Nash equilibrium with profits 5 each, even though (High, High) would give 8 each.

Self-test

Quick check ยท 5 questions

of 5 answered You scored / 5 ยท perfect!

  1. 1. A consumer is buying so that MU of pizza / price of pizza is greater than MU of juice / price of juice. To raise total utility she should

    A dollar spent on pizza gives more utility than a dollar spent on juice, so shift spending toward pizza until the ratios are equal.
  2. 2. A firm's fixed cost is 100, and it produces 20 units at a total cost of 300. What is its average variable cost?

    VC = 300 - 100 = 200, and AVC = 200 / 20 = 10.
  3. 3. A competitive firm faces price 12 and marginal cost MC = 2 + Q. Its output is

    Set P = MC: 12 = 2 + Q, so Q = 10.
  4. 4. A monopolist faces P = 40 - Q with MC = 10. Which quantity does it choose?

    MR = 40 - 2Q = 10 gives Q = 15.
  5. 5. In a prisoner's dilemma, the Nash equilibrium is

    Nash equilibrium means no one can gain by deviating alone; it may be worse for everyone than cooperating.

Summary

  • Use MU / P equal across goods for consumer choice and MR = MC for profit.
  • Minimum ATC occurs where MC crosses ATC.
  • A price taker sets P = MC; a monopolist sets MR = MC and reads the price from demand.
  • Check every answer by plugging numbers back in.

Next: Practice Set: Markets and Government