[2]:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
Know and be able to:
- Use summation formulas to evaluate finite sums
- Use summations to determine the mean, variance, and standard deviation of data
- Use Riemann sums to approximate area under a curve and between curves
- Understand and use the definition of the definite integral
- Use definite integral to find area beneath a curve, area between curves, and to find the volume of solids of revolution
- Understand and Use the Net Change Theorem
- Use the Definite Integral to determine the Gini Index given information on wealth distribution
- Find the area of the region bounded by the curves:
- \(y = x^2 \quad \text{and} \quad y = 4x - x^2\)
- \(y = \frac{1}{x}, y = x^2, y = 0, x = e\)
- Find the volume of the solid formed in the first quadrant by the line \(y = 2\sqrt{x}\) and the line \(y = 6\).
- Draw a plot of the region
- Find the area of the region
- Write but do not evaluate an expression for the volume of the solid formed by rotating the region about the \(x\)-axis.
- Find a Riemann sum using 4 rectangles for the given function on the said interval.
- \(y = 3x^2 - 2x + 1\) on \([-1,1]\)
- \(y = x^2\sin(x)\) on \([0, \pi]\)
- For the following exercise, consider the stock market crash in 1929 in the United States. The table lists the Dow Jones industrial average per year leading up to the crash.
| Years after 1920 | Value ($) |
|---|---|
| 1 | 63.90 |
| 3 | 100 |
| 5 | 110 |
| 7 | 160 |
| 9 | 381.17 |
- What was the average value of the stock?
- The variance?
- Standard Deviation?
- The image below represents the height of rectangles in 3D. Use the heights to determine the volume of the solid.
<img src = images/3d_rects.png />
- Toss 6 coins. Enumerate how many ways all outcomes of this could occur.
- What is the probability of getting at least 4 heads?
- How many ways are there to get exactly 4 heads?
- John is a 25-year old man who weighs 160 lb. He burns \(500−50𝑡\) calories/hr while riding his bike for t hours. If an oatmeal cookie has 55 cal and John eats \(4t\) cookies during the tth hour, how many net calories has he lost after 3 hours riding his bike?
- Suppose you go on a road trip and record your speed at every half hour, as compiled in the following table. The best quadratic fit to the data is \(𝑞(x)=5𝑥^2−11𝑥+49\), shown in the accompanying graph. Integrate q to estimate the total distance driven over the 3 hours.
| Time (hr) | Speed (mph) |
|---|---|
| 0 (start) | 50 |
| 1 | 40 |
| 2 | 50 |
| 3 | 60 |
- Suppose we have information on the distribution of income in the United States from 2009 as follows:
| x (percentage of population) | L(x) (percent of wealth) |
|---|---|
| 0 | 0 |
| 0.2 | .034 |
| 0.4 | .12 |
| 0.6 | .266 |
| 0.8 | .498 |
| 1 . | 1 |
and the following polynomial to model the data.
\[L(x) = 0.17083 x − 0.70208 x^2 + 4.70833 x^3 − 6.82292x^4 + 3.64583 x^5\]
Use this function to generate a plot of the perfect distribution of wealth and the polynomial distribution. Compute the Gini Index as follows:
\[G = 2\int_0^1x - L(x) dx\]