Exam 1 Flashcards

1
Q

Equation for daily return

A

daily return = (today’s price / yesterday’s price) - 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Equation for cumulative return

A

cumulative return = (today’s price / first day’s price) - 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Kurtosis

A

Describes tails of a distribution.

Fat tails = positive kurtosis
Skinny tails = negative kurtosis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Equation for present value

A

PV = FV/(1 + IR)^i
and
PV = FV/DR where FV can be dividend, DR is discount rate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Sharpe Ratio equation

A

SR = mean(daily returns - daily risk factor) / std(daily returns)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Book value equation

A

Book value = total assets (ignoring intangibles) minus liabilities.

Intangibles include brand power, patents
Liabilities include loans

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Symbols for different types of funds

A

ETF = 3 or 4 letters
Mutual funds = 5 letters
Hedge fund = long name like Berkshire Hathaway

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Market cap

A

share price * number of shares outstanding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Intrinsic value

A

PV = FV/DR

Example: if dividend is 1 dollar, and there are 1 million shares outstanding, and the DR is 5%, it’s 1 million / .05. Intrinsic value would be 20,000,000.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

CAPM

A

Equation:
r-sub-i(t) = B-sub-i * r-sub-m(t) + alpha-sub-i(t)

  • Tells us that a significant portion of a stock’s return is due to the market
  • Alpha is random and expected value is 0
  • Beta is relationship of stock to market. Make money by picking stocks with high B in up markets and low B in down markets.
  • CAPM and EMH combined say you can’t beat market
  • APT = multiple B for different sectors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

RMSE equation

A

square_root_of((sigma(yTest - yPredict)^2) / N)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Roughly how big are training and testing chunks in general

A

60% training, 40% testing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Lin Reg vs KNN vs DT (using correlation), what is fastest to slowest training time?

A

KNN, LR, DT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Lin Reg vs KNN vs DT (using correlation), what is fastest to slowest query time?

A

LR, DT, KNN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Lin Reg vs KNN vs DT (using correlation), what is best for space needed to save model?

A

LR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Lin Reg vs KNN vs DT (using correlation), what is fastest for adding new data?

A

KNN

17
Q

What are the benefits of ensemble learners?

A

lower error

less overfitting

18
Q

Boosting and bagging

A

Same learner is used, just with different parts of its data

19
Q

What is more likely to overfit as m increases? Boosting (ADA) or bagging?

A

ADA Boost

20
Q

Technically, boosting and bagging are _____

A

wrappers for existing methods

21
Q

Fundamental analysis

A

estimate a company’s value. buy stock when below company’s value. looks at earnings, dividends, cash flow, book value, etc.

22
Q

Technical analysis

A

Don’t care about value of company. Look only for patterns or trends in a stock’s data. Looks only at price and volume.

23
Q

Momentum equation

A

momentum[t] = (price[t] / price[t-n]) - 1

Where:
n = number of days, like 5 or 10
result is usually between -.5 and .5 (50% loss, 50% gain)

24
Q

Simple moving average

A

SMA[t] = (price[t] / price[t -n : t].mean()) -1

25
Q

Bollinger Bands

A

BB[t] = (price[t] - sma[t]) / (2 * std[t])

This is to see where price is relative to Bands

26
Q

Normalization

A

Puts different metrics on same scale from -1 to 1, with mean of 0.

To norm something:
normed = (values - mean) / values.std()

27
Q

what does bid mean?

A

buy

28
Q

what does ask mean?

A

sell

29
Q

market order book must always give stock to seller/buyer that is _______

A

the best price for them (highest if seller, lowest if buyer)

30
Q

what does it mean if there are more asks than bids in the order book?

A

more selling pressure = stock price likely to go down