Main driver of Stock Market:

Most of the stock market is owned by people in USA via their retirement accounts (401K or IRA accounts). Some people also have personal brokerage accounts. Only about 50% of Americans have any ownership in stocks.

Very good article on fool.com showing stock ownership (All data as of 2019): https://www.fool.com/research/how-many-americans-own-stock

USA stock market is about $45T as of 2022. Number of American households is about 130M as of 2022. Of these, 50% or 65M households own stocks. Out of this 65M, 45M own stocks via retirement accounts only. Remaining 20M or so also have additional personal brokerage accounts, in which they keep stocks. In 1990's, stock ownership used to be in 30% range, and it has kept increasing with now 50% of American households owning stocks. That increase is mostly due to more American participating in retirement plans. In 1989, only 17M families had 401K accounts, while as of 2010, 50M Americans had 401K (Based on above link, at most 65M American families have retirement accounts of 2022).

  • Top 1% American households own 50% of stock market.
  • Top 10% own 90% of US stock market which amounts to $40T of stock market wealth.
  • Bottom 50% of people who own stocks own < 1% of stock market, and own less than $40K in stocks (including retirement accounts) per family. So, we may safely ignore this group as it's insignificant with such low stock ownership. So, we may say that only about 30M or so households have > $40K in stocks. 
  • Of the 20M families who own personal stocks, 50% of them have < $25K in personal brokerage account. So, we may ignore this group too, which leaves us with just 10M families who have > $25K in personal brokerage accounts, and probably > $100K in retirement accounts.

This link from another site shows the ownership which matches the one from above: https://wallethacks.com/stock-ownership-in-america

What's interesting to note from above link is that of the top 10% of earners (those making > $100K/year), 95% own stocks and their median value is $363K.

Combining the data, we see that just 7M or 5% of families own stocks > $400K (including personal + retirement accounts). This is the group that keeps getting rich and richer every day doing nothing.

Retirement Accounts: The main driver of stock market is retirement account which have nowhere else to invest in, except in stock market.

www.ici.org: gives all details of such accounts. Fact sheet(for year 2010): http://conferences.ici.org/pdf/2011_factbook.pdf

total US retirement market: $17.5T.

  1. IRAs: 49 Million households owned IRAs. IRA assets: 4.7T, share of mutual funds and securities thru brokerage a/c = 3.9T
  2. DC Plans: 401K, 403(b), 457, etc: Assets: $4.5T. 401K held $3.1T in assets, while 403(b) and 457 held $0.9T in assets.
  3. Other Plans: fed/state/local pension plans, fixed/variable annuity reserves at life inc co., Assets: $8.3T

Mutual funds accounted for $4.7T  of this 17.5T market.  60% of this (2.8T = 2.1T in domestic equities and 0.7T in foreign equities) is invested in equities.

Link: http://conferences.ici.org/pressroom/news/10_news_ebri_ici_nov

401K accounts:

An estimated 51 million American workers were using 401(k)s at year-end 2010, and assets totaled about $3 trillion. The average account balance of workers was $60,329 in 2010, compared with $58,351 in 2009. Fidelity Investments is the largest provider of 401(k) plans with almost 11.7 million participants.
On average, at year-end 2009, 60 percent of 401(k) participants’ assets were invested in equity securities through equity funds, the equity portion of balanced funds, and company stock. Thirty-six percent were in fixed-income securities such as stable value investments and bond and money funds.

Total assets in stable value funds: According to the Investment Company Institute (ICI), total assets in 401(k) plans amounted to $2.7 trillion (www.ici.org/home/retmrkt_update.pdf) in 2006. GICs/stable value funds and money-market funds, accounting for 15 percent of the total, amounted to about $405 billion in 2006. Balanced funds, at almost 13 percent of the total, held about $348 billion in 2006.

Latest Data:

From a report from Sept, 2019 (when Total USA stock market cap was $30T), Fidelity reported that out of 30M retirement accounts, 200K of 401(K) accounts had balances of $1M or more.  On average, Contribution rate of employees was 8.8%, while employers contributed 4.6%, resulting in total contribution of 13.4%. So, basically 13% of employees income goes into 401(K). Apart from 401(K) accounts, most people also have individual retirement accounts like Roth, etc. The number of such accounts with $1M or more also hit all time high at 182,400 accounts. This is the highest number of retirement account millionaires ever. All of it is a result of strong bull market that saw S&P500 index go up 5 times from 2019 to 2019. So, basically, $200K or so from 2009 grew into $1M by 2019. The avg account balance in 401(K) was $105K, which was also all time high. It's much lower amount, since it includes young people also, who have very little in their 401(K) accounts. $1M used to be the gold standard for retiring. However, Charles schwab survey showed that $1.7M is the new number for retiring in USA. This is all assuming 10% stock market return for ever (which is a return that can only be sustained by Government's ponzi scheme).

STOCKS 101:

Any stock company that is public has to provide financial details of it's business. Comapnies send their investors a lot of reports periodically, which are avilable for anyone to see. Most relevant of these reports are the 4 quarterly reports (known as 10-Q), and one yearly report (known as 10-K). We'll focus on annual report, since quarterly reports are just wastage of time and money.

Reading annual report:

2 types of annual report:
1. annual report to SEC or Form 10-K = large amount of disclosure
2. shareholder annual report = has aggregated financial info (50%) plus sales and marketing material (50%). It's a less detailed version of form 10-K.

We'll look at shareholder annual report. SEC (securities and exchange commision) and FASB (Financial Accounting standards board) regulate much of what appears in report.

SEC was created in 1934 thru securities act of 1934. FASB was created in 1973 for establishing standards of financial accounting and recording. these standard known as GAAP (generally accepted accounting principles). Other organizations as AICPA (american institute of certified public accountants) and ASB (auditing standards board) act as advisors in development of these standards.
ASB also develops GAAS (generally accepted auditing standards) which govern audit of a client company.

Structure of annual report:
1. Financial highlights: generally make a compnay look as good as possible. Do not rely on this.
2. statement of mission or corporate profile: give a sense of firm's direction and purpose
3. chairman's message: it's a letter to shareholders
4. management's discussion and analysis (MD&A): Most imporrtant. SEC requires management to discuss past performance and address 3 important areas: capital resources (debt and equity available for funding capital expenditure), liquidity (ability to pay short term and long term debt) and results of operation (unusual events that may materially affect reported income). It also has forward looking statements
5. Report of management: highlights management responsibility for what appears in the report.
6. Report of independent accountants: outside accounting firm issues independemt auditor's report. It's divided into 3 paragraphs: 1st paragraph identifies the scope (stating that reported info is resposibility of mgmt, and accounting firm is just expressing an opinion on accuracy of staements). 2nd parahraph states that audit was performed in accordance with GAAS. 3rd paragraph is the opinion paragraph. most common is the "unqualified" or "clear" opinion, meaning results are fairly presented. On occasions, "qualified" opinion is rendered which means accounting firm is not in agreement with a specific accounting principle that was chosen by the company. This limitation however doesn't have material impact on performance measure of company. Rarely, auditing accountants will issue an "adverse" opinion, which means that finacial statements don't fairly represent the financial position of company.
Remember that an audit doesn't mean that company's records are 100% accurate because audit is performed using statistical sampling methodoligies, which means only a few samples of accounts and business transactions are examined. It's impossible and cost prohibitive to review all transactions.
6. statement of income: reports financial performance over a period of time.
7. statement of financial position: balance sheet of the company on a particular day.
8. statement of change in stockholder's equity: changes over a period of time
9. statement of cash flow: company's cash inflow and outflow over a period of time.
10. Notes to the financial statement: provides additional clarification.
11. 5-10 yr summary of operating results: this report not covered by auditor's opinion.
12. Investor and Company information: All contact info etc. These identify company's officers (CEO, CFO, VP, etc) and Board of directors (comprising of many current officers and outside individuals). company shareholders appoint many of these board members. BOD reserve the right to approve or reject major startegic initiatives, and also responsible for setting compensation.

A annual report contains income stmt, balance sheet, cashflow stmt and equity stmt. It contains notes to financial stmt aftet this which provide additional info to improve understanding of financial statements. these notes are also audited alongwith financial stmt. There are various notes, some of which are:
1. summary of significant accounting policies.
2.long term debt:
3. income taxes.
4. empoyee stock plans.
5. leases.
6. acquisitions, etc.

corporations follow one of the three strategies:
1. growth: directs financial resources to grow by increasing sales and capital expenditures.
2. stability: lack of change in direction.
3. retrenchment: products are eleiminated, mass layoffs, and there's talk of general business closure.

Different ratios used to measure financial performance of cos.
1. ROA (return on assets): net income/total assets
2. liquidity measure: co ability to meet its current period obligations. cash ratio= available cash/current liabilities.
3. ROE (return on equity): ROA*financial leverage = (income/assets) * (assets/equity) = net_income/(shareholder_equity - preferred stock)

EBITDA (earnings before interest, tax, depreciation and amortization) = it proxies the amount of op cash flow generated from day to day operations. however, SCF gives better idea of cash flow than this, so avoid this.

inventory turnover = measures how quickly inventory is consumed in operations.computed by dividing days in a year by no. of turns. a well run business turns inventory around more times a yr than a poorly run business, so inventory turnover days is lower (ex: 360/10=36 days) for well run business than poorly run business (ex: 360/4=91 days)

accounts receivable turnover = measures how often avg accounts receivable turn over in the form of credit sales. a well run business will turn receivables often to increase cash flow.

emerging issues in financial reporting: gaap and sec guidelines give lot of flexinbility in reporting process, so cos take advantage of that. some of these are:
1. earnings mgmt: revenues are managed sometimes by reporting sales before they are earned
2. managing expenses: cookie jars used to manage expenses big-bath where large non-recurring charges are taken to improve earnings in future also used. off-balance sheet financing also used to manage expenses.
3. pro-forma earnings: it's a recasting of financial info assuming a change in recent business model. it allows mgmt to report hypothetical earnings under a new business model - for ex, effect of a merger or acquisition that occured recently. It should not be relied on.

Statements: Let's now look at 4 most importatnt statements provided in any annual report.

Income statement:

It's record of activity for a month, quarter or a year. some limitations: for Ex., net income ignores when cash receipts for that revenue will be received. thereofore it's differenent from cash flow.

2 sections:
1. operating section: includes revenues and expenses that correspond to the principal operations of the company, i.e. day to day operations. op. revenues and op. expenses lead to op. income/loss.
A. Net sales: Gross sales minus (cost of goods returned, discounts earned by contractors, allowances granted to customers, etc.)
B. Cost of goods sold: recognized only when a merchandise has been sold. Co. can use LIFO, FIFO, weighted avg, etc.
C. Gross profit (gross margin) = A-B.

D. selling and store operating expenses:
I. selling expenses includes employees salary, advertising costs, and other expenses directly related to selling of goods/services.
II. store operating expenses (or occupancy expenses): proportional to no of stores opened. includes rental, depriciation expense, utilities, property tax, etc.
E. Pre opening expenses: in advance of opening new stores, personnal are hired, etc which results in pre opening expenses. These aren't allowed to be capitalized, so these are expensed as they occur, usually in the yr in which new stores open for business.
F. General and Adminstrative expenses: include variety of costs that relate to other than sales operations. For ex. depreciation of co.'s headquarters is included here while depriciation of trianing centre would be a selling expense. Mgmt salaries, utility costs, property taxes are included here.
G. Operating expenses = D+E+F

H. Operating income/loss: C-G (op revenue - op expenses)

2. non-operating section: includes income/expense items and gain/loss items that are routine, but are viewed as peripheral to day-to-day business operations. Ex. are interest earned on investments, interest incurred on borrowings and gain/loss associated with sales of assets.
A. Interest and investment income: co. invests in CD, treasury notes or stocks/bonds of other co. returns in form of dividends, interest, etc is reported. howver banks/financial institutions report this in op. section.
B. Interest expense: associated with interest on notes, bonds, lease or pension obligations.
C. Income Taxes: federal, state and foreign income tax obligations.
income tax expense = federal statutory rate multiplied by co. income before tax + adjustment to include any state/foreign income tax obligations/benefits.
so, effective tax rate may vary from yr to yr. note that co income tax expense is different from income tax paid (which is reported in cash flow stmt).

Sum of op. income/loss and non-op. income/loss is income/loss before income tax expense. Net income is income after subtracting income tax.
Net earnings = op income/loss + non-op income/loss.
net profit margin=net income/loss / net sales.

Basic earnings/share: net income-preferred dividends / weighted avg shares outstanding.
(weighted avg shares outstanding is the avg no. of shares outstansding during the reporting period, and not just the no of shares at the end of period, since co may buy shares at end of period to inflate earnings otherwise)

Diluted earnings/share: same as basic but potentially dilutive shares are included here. dilutive securities may be:
1. convertible bonds or notes
2. convertible preferred stock
3. stock options or warrants

Irregular items: 3 items are reported outside the op and non-op sections.
A. discontinued op.: to qualify as discontinued op., assets, results and activities of business segment must be clearly distinguishable. For ex. assets being sold by co.
B. extraordinary events: unusual and infrequent in occurence. APB opinion 30 says clearly that unusual means high degree of abnormality while infrequent means it should not be reasonably expected to recur in forseeable future. An item such as corporate restructuring charge isn't reported here, but in operating section as FASB considers it as part of normal business.
C. changes in accounting principles: results when a co. switches from one GAAP to another or FASB issues a new accounting announcement. such change requires an adjustment to asset/liability accounts as well as an adjustment to net income or retained earnings. 2 approaches:
1. current approach: this is when income gets affected. cummulative effect is the total income diff between what was reported vs what would have been reported under new rule.
2. retroactive approach: this is when retained earnings are affected. this allows to bypass current yr income, but requires restatement of related prior yr info.

most changes in accounting principles are accounted for under current approach, with cummulative effect of the change reported in current yr income.

CashFlow Statement:

stmt of cash flow (SCF) provides picture of how cash flows in and out of business. 3 types of cash flow captured:

1. net cash provided (used) by op activities: cash that flows into and out of the business from day to day operations, labeled net cash provided by operations.
cash inflow is from
A. sale of goods,
B. interest/divident income on investments
C. service reveneue such as rental income from equip.

while cash outflow is fom
A. purchase of inventory
B. payment of interest/taxes.
C. payment of operating expenses as wages, supplies, maintenance

2 tpes of reporting method for net operating cash flow:
A. indirect method: computation starts with net income, followed by several adjustments resulting in net op cash flow. adjustments are done to remove impact of non-cash charges (such as depreciation/amortization) and accrual based changes to current asset/liability from net income (such as increase in receivables, inventories, accounts payable, income taxes payable, etc). Adjustments:
I. depreciation and amortization: added back to net earnings since no real cash flowed out.
II. Increase (decrease) in receivables: added (subtracted) from net income. this amount can be figured out from balance sheet by seeing how much the recivables decreased/increased, and adding/subtracting the corresponding amount from net income, since this cash wasn't accounted for in the net income section. This may not concile totally with balance sheet because of several minor differences.
III. merchandise inventories: if the balance in merchandise inventory in balance sheet increased, then this amount is subtrated from net income (and vice versa), since that implies that much extra cash was paid to buy it.
IV. accounts payable and accrued expenses: if these increase in the balance sheet, then this amount should be added to SCF since cash associated with this hasn't been paid.
V. income taxes: added/subtracted similar to above.
VI. other: this simply represents the net change of several current asset/liability accounts.

B. direct method: used rarely. reports op cash flow directly associated with day to day operations. It shows cash flow inflow resulting from sale recipits, customers paying on account receivables, and any other cash received. similarly it shows cash outflow resulting from payment to purchase merchandise, tax, interest, etc.
Both direct and indirect method should end up with the same cash amount.

Net cash provided by operations is sum of items I-VI = $X
2. net cash provided (used) in investing activities: measures src and use of cash in selling and purchasing assets.
investing cash inflow would be cash generated by
A. selling land, bldg, equipment.
B. selling stock/bond
C. cash from vendor etc when they repay a loan.

investing cash outflow would be cash given out for
A. purchasing land, bldg, store, etc.
B. purchasing stock/bond of another co.
C. lending of cash to vendor for more than 90 days.

Typical items:
I. capital expenditures: net capital expenditure that was done. None of this capital expense is included in net income part, so all of it is listed here.
II. Acquisitions of business: net amount for purchasing other business is included here
III. proceeds from sale of property/equipment: the net amount is shown here, as it's not included in income section.
IV: purchase/sale of investments: total amounts reported here.

Net cash from investing activities is the sum of items I-IV = $Y

3. net cash provided (used) by financing activities: measures src and use of cash to finance a business.
financing cash inflow is :
A. loan from bank,
B. cash from bond/stock issue

while financing cash outflow is
A. repayment of the loan.
B. cash to pay dividend
C. cash to redeem bond principal or to buy back stocks

Items:
I. issuance (repayment) of Commercial paper obligations: this represents net amount from buying/selling CP.
II. proceeds from long term borrowing: long term debt taken to expand
III. repayments of long term debt: cash is used to pay back part of long term debt and interest.
IV. proceeds from sale of common stock: no. of new stocks issued can be found out from outstanding stock no from equity section in balance sheet. Most of the stocks sold under ESPP to employees.
V. cash dividend paid to stockholders: this amount is also included in the consolidated stmt of stockholder equity and comprehensive income.
VI. minority interest contribution to partnership: if more than 50% of subsidiaries are owned by the co., then cash contributions made by subsidiaries are included here.

Net cash from financing activities is the sum of items I-VI = $Z

Cash and Cash equiv: this is final cash. cash equiv refers to treasury bills, CP, money mkt fund, etc. which have maturity of < 90 days, and can be readily converted to cash = $X+$Y+$Z An extra line is added in SCF to accomodate foreign currency translation adjustment.

Balance Sheet statement:

    Balance Sheet

Comapany's assets (resources) = Liabilities (claims against those resources) + shareholder equity (residual ownership of those assets)

reported as of end of year. Consolidated report means performance of several business combined in one.

capitalization means a particular item bought is recorded as an asset on balance sheet. Each year, the item's partial cost will be allocated to the income statement as depriciation expense. eventually, the item's cost on balance sheet will goto zero.

balance sheet provides info about liquidity and solvency.
1. liquidity: indicates company's ability to meet its current maturing obligations (in next 12 months). We take a ratio of current assets (cash, etc.) and current liabilities and call it liquidity ratio.
2. solvency: indicates company's ability to meet future principal and interest payments on its long term debt. A ratio of total debt to total assets measures this.

ROA (return on assets) = net income / total assets.
ROE (return on equity) = net income / shareholder equity

Account receivable = always reported at their net realizable value (excludes company's estimate of uncollectable amounts). This estimate might be based on aging schedule of accounts receivable.
Assets:
1. "furniture, fixtures and equipment" are recorded on basis of acquisition cost (historical cost). However, they are depreciated, and this captures the cost of using an asset. Remember, that though this reduces the carrying value of assets, it doesn't reflect the fair market value of assets. Estimated asset life should be appropriate.
2. Land is recorded at cost, but is not depriciated. this keeps the carrying value of land the same, as benefits associated with land don't decline with time.

Fair value accounting (mark to market) is used when assets can be liquidated in established markets with identifiable market price. In these cases, investments are recorded at cost but adjusted to fair market value.

Matching revenue and its related expense: Whether asset capitalized or expensed directly, it should try to match the revenue that this asset helped to generate with the expense of genrating the revenue.

Loss contingency: potential obligations that might arise from past events. these detalied in notes to financial statements.

Balance sheet page:

Assets:
Current Assets:
- Cash and cash equivalents: cash in savings/checking accounts, cash invested in short term maturities of 3 months or less (referred to as cash equivalents, and includes high grade commercial paper, money market funds, US govt securities, etc)
- Short term investments (incl current maturities of long term investments): includes stocks/bonds of other companies. These investments are classified according to manamgement's intent, in one of three groups:
A. Trading: mgmt intent to hold for very short period (few weeks to few months). these investments shown on he balance sheet at their current market value, with all unrealized gains and losses (based on changes in market value) reported in income stmt. market value can be determined at the end of reporting period by closing price of share/bond.
B. available for sale (AFS): mgmt intent to hold for more than few weeks or months. They are adjusted to their fair market value, but changes in fair mkt value are reported in shareholder's equity (as part of other comprehensive income), and NOT in income stmt. Logic is that it reduces volatility in earnings since it's supposed to be held for a longer time, and final loss/gain reported in earnings once the investment is liquidated.
C. Held to maturity (HTM): mgmt intent to hold these long term investments till they mature. So, these are carried at cost (no adjustment to fair market value) till they are liquidated.
- long term investments: when a co. invests in another co's debt or equity, it can be short term or long term. If these are intended to be held for more than a yr, these are long term. It can be accounted for under 1. Cost. 2. fair value 3. equity 4. consolidation approach.
Equity method of accounting used (instead of cost or fair value accounting) when company acquires enough voting shares of another company so as to influence mgmt decisions. This requires the investor company to periodically adjust the carrying value of the investment based on its %ownership of the investee company's profits and losses as well as the investee company's dividend distributions. Threshold for application of equity method of accounting is 20% to 50% of company's voting shares. When company's investment is over 50%, the investor company accounts for the investment under consolidation rules, meaning 2 or more companies are reorted as if they were one, even though they are separate legal entities.

- Accounts recivable, net: net represents the amount of cash that it expects to finally collect (difference between gross and net is allowance for bad debts). sales made on credit result in this.
- Merchandise inventories: most illiquid of current assets. Mostly inventories are acquired from other manufactures and then resold (ex. HD), sometimes manufactured and sold by the same company (ex GM). When manufactured and sold by the same company, balance sheet may report 3 inventory accounts: raw materials, work in progress, and finished goods inventory. For reporting purposes, merchandise inventories stated at lower of cost or market (LCM). cost is the purchase price. any losses on inventory write downs are recoginzed in the period it occurred. Different cost-flow assumptions:
1. First in First out (FIFO): let's say 1st purchase of 30 iems cost $11 each, 2nd purchase of 50 items cost $12 each, and final purchase of 20 cost $13 each. if 90 items sold during year, then inventory value of 10 items is $13x10=$130.
2. Last in first Out (LIFO): last items cost 20 at $13, 50 at $12 and 20 at $11. So, inventory value=$11x10=4110.
3. Avg cost: take avg cost by dividing total purchase price by total units, and use that for valuing inventory.

Many companies choose LIFO since during periods of increasing prices, higher costs tranfer to income stmt, creating lower profit and hence lower tax to IRS.

- Property and Equipment: referred as capital expenditures as they provide benefit over more than one period.
Land: includes purchase price, attorney fees, other fees, etc. special assessments levied by govt also included.
Building:
If an existing bldg bought, then purchase price is allocated to land and bldg separately. Any additional expendture to make bldg ready to move in, is also included in the price of bldg. bldg cost is depreciable.
If a new bldg is constructed, then cost of building as well all other fees, permit cost, etc. included in cost.
Furniture, fixtures and equipment: these asset depriciated individually, since they different useful lives.

- leasehold improvement: lease is contract b/w 2 parties that authorizes the use of a specific asset (eg bldg) for an identified period of time. Any money spent on improvement is termed leasehold improvement. and they are written off over the term of the lease or life of the improvement, whichever is shorter. write off of leasehold improvements is termed amortization instead of depreciation. leasehold improvements are intangible assets.
- construction in progress: all such items are reported as assets
- capital leases: 2 categories of leases.
1. operating leases: viewed as temporary rentals, with rental expense reported on income stmt.
2. capital lease: requires rentals that are long term, and approximate the value of the asset being leased. Co. that owns the asset is willing to receive installment payment over the lease term, and provides financing. It is as if lesse had purchased the asset using long term financing, although there is no tranfer of title. So, these leases are treated as a purchase. So, they appear on asset side with a related liability. These assets are depreciated, and are written off oevr the life of the lease. Upon termination of lease agreement, the asset is depriciated completely, and lease liability is fulfilled. At this point, asset transfers back to the lessor, or is sold to the lessee at bargain price.

- notes receivable: It's a written promise to pay a specific amount at some future time. These are generally loans, but can also be conventional sales that allow for extended terms.

Intangible assets: Cost of intangible assets (as patents, copyrights, trademarks, organizational costs[costs icurred in formation of enterprise], goodwill[value over net identifiable assets]) are capitalized and allocated to future periods thru amortization. goodwill has generally been written off over a period of 40 yrs. This writeoff placed a significant drag on earnings for a long time. however recent FASB change requires goodwill to be written down only when its value appears to be permanently impaired. This is because goodwill is supposed to have indefinite life (similar to land).

Liabilities
----------

Surrent (short term) liabilities

- accounts payable: represents amount owed to other companies. Usually paid within couple of months.

- accrued salaries payable and related expenses: This is because of accrual accounting. accrual accounting requires revenues to be recoginzed when earned and expenses when incurred. Actual receipt of payment with cash is not required to recognize revenues and expenses. When accrual takes place, it is often related to a transaction that does not coincide with the close of the yesr (or quarter), or the exact amount in not yet known (in case of contingent liability). For ex, salary may be paid biweekly, and the end of year may not exactly align with the payment date, so accrued salary recorded for remaining days. Related expenses are payroll taxes or other expenses.

- Sales Taxes payable: Corporations collect sales taxes and pay it to govt periodically. Any amount collected and not remitted to govt is shown as liability.
- other accrued expenses: variety of obligations. For ex, for semi-annual interest payable bonds, interest payment date may not fall at end of fiscal year, so accrual of interest is done from the last interest payment date to the end of yr. Other note obligations, etc may require similar accrual.
- income taxes payable: estimated liability satisfied with periodic payments to several taxing authorities.
- current installments of long term debt: shows current maturaties of long term debt (obligations such as installment notes, commercial paper, mortgages, leases and bonds). Involves principal amount only and not interest payment.

Long term debt (excluding current installment): obligations not payable in coming year. Examples of these are long term capital leases, mortgage obligations, pensions and other retirement benefit obligations. Most of these obligations are comprised of both short term and long term. Even some short term CP are classified as long term because of their roll over status.

Other Long term liabilities: Apart from bonds, employee benefits and pensions are substantial portion of long term liabilities. Generally, employee benefits are not earned until the employee has been with the co. for a no. of years, known as vesting period. cos. accrue employee retirement benefits with passage of time. If they don't fund (set money aside) 100% of accrued pension or other post employment benefits (OPEB), they have to report a future liability for the remaining amount.
OPEB sheet: 3 parts
A. benefit obligations: refers what is to be paid. actuarial present value of employee benefits earned.
B. plan asset's fair value: refers to what is currently put in plan assets to pay for these obligations. These assets are put in trust, invested in stock market, etc, and then redistributed on retirement.
C. Prepaid (accrued) benefit cost: =B-C+some_other_unrecognized gains/losses. It's the pension/OPEB asset/liability reported on balance sheet.
1. Projected benefit obligations (at start of yr): actuarial present value of employee benefits earned using projected salary levels and present yrs of service. $X
2. Service costs (benefits earned during the yr): this yr's service benefits earned. $Y
3. Interest cost on projected benefit obligations: mere passage of time increases projected benefit obligation and pension expense. $Z
4. Actuarial loss(gain): primarily changes in discount rate, change in estimates, etc: $A (positive for loss)
5. Benefits paid: during the current yr. $B (negative for money paid)
4. expected return on plan assets: this expected return reduces volatility on pension and OPEB expenses.
5. net amortization: actuarial adjustments (changes in discount rates, mortality rates, etc) made periodically , thereby inc. or dec. projected benefit obligation. Howver instead of directly adding these losses/gains to obligations, they are amortized over time. A second adjustment is sometimes made which is loss/gain on plan assets, which results from diff b/w expected return and actual return.. To reduce volatility, use of avg expected return is used.

EX:
Projected benefit obligations, Jan 1: $X
Service costs (benefits earned during the yr): $Y
Interest cost on projected benefit obligations:$Z
Actuarial loss(gain), primarily changes in discount rate, etc: $A (positive for loss)
Benefits paid:$B (negative for money paid)
Projected benefit obligations: $X+$Y+$Z+$A-$B

Deferred income taxes:This appears in long term liability section.
deferred income tax liabilities represent future income tax obligations as a result of past events.
deferred income tax assets represent future income tax benefits as a result of past events.

they arise when gaap and tax code result in timing difference in revenue, profit, etc.. these timing differences are temporary. depriciation timing differences are largest contributor of deferred tax liabilities. For ex. if income before depriciation is $X, and depriciation is $Y for tax purpose for 1st year while it's $Z ($Z < $Y usually so that accelerated depriciation results in lower taxes initially) for reporting purpose for 1st year. so, income after dep. for tax = $X-$Y= 80K-25K=55K for book = $X-$Z= 80K-10K=70K so, for yr 1, tax is paid on 55K (lt's say at 30% rate=16.5K), which is lower than if it was paid on $70K (=$21K). So, deferred tax liability is reported=$4.5K. ultimately this vanishes when all depricaition is taken. One example of deferred income tax asset is post retirement benefit expenses. For tax purpose, these expenses are not recognized till they are distributed at retirement. so, taxable income is higher resulting in more tax, so tax asset is realized. Other deferred tax assets are unearned revenue, warranty liabilities, bad debt expense, etc. minority interest:when a co. has ownership interest of between 50% to 100% in another co., 100% of the assets of subsidiary co. are included in asset section of balance sheet. amount represented as minority interest is the amount of assets that the parent co. doesn't own. stockholder's equity: assets are financed both by debt and equity. equity represents the net assets of a corporation. 2 categories of equity: 1. contributed capital: recognized when a co. acquires assets thru sale or exchange of common stock. this goes on in the asset or a reduction in liability. contributed capital consists of: A. common stock: total no of stocks outstanding is multiplied by the par value of stock to give legal capital of firm. legal capital is used as a protective means to prevent co. from distributing dividend in excess of earning and additional paid in capital (so that companies don't just give everything to shareholders). It provides some measure of value to creditors in case of liquidation. Par value and fair value of share are totally unrelated. B. additional paid in capital: represents excess of selling price over par value per share. because stock is sold periodically thru offerings (incl the IPO), selling price varies. Total money that was paid by shareholders in excess of par value is this paid in capital. Authorized common shares: max no. of shares that can be issued by the co. article of incorporation identify this no. and can be exceeded only if the corporate charter is amended. issued common shares: no. of shares sold over time. outstanding common shares: it can be less than or equal to the no. of sharess issued. If it's less, it means the co. reacquired some of the shares thru buyback. reacquired shares are called treasury shares. 2. Earned Capital (retained earnings): represents the accumulated earnings of a co. since its inception, less any dividends paid to the shareholders. At inception, retained earnings are zero, but with passage of time, they get positive. negative retained earnings menas the co. has sustained net losses or paid divivdends in excess of income. retained earnings are a subset of equity (as they add to assets). 3. accumulated other comprehensive income: this is additional component of stockholder equity, and includes gains and losses that have bypassed the income stmt for income smoothing reasons. For many yrs, only net income was reported but now sec requires cos. to report more complete income called comprehensive income.. As increses or decreases occur in other comprehensive income, these are reported not in income stmt but in stmt of change in stock holder equity or in separate stmt of comprehensive income. But any accumulated balance of these unrealized gains/losses is reported under stockholder's equity. These normally include gains/losses on available for sale securities, foreign currency change, etc. Shares purchased for compensation plans: treasury stock is stock repurchased by the issuer. amount here indicates the cost of shares reacquired, at the market price at time of acquisition. On the balance sheet, this amount is deducted from stockholder equity since treasury stock is contra equity account.

Equity statement:

    Stockholder's Equity and comprehensive income Statement

It identifies changes in all balance sheet equity accounts over a specified period. It's purpose is similar to cash flow stmt, but rather than measuring change in one balance sheet element (cash), it measures change in all equity accounts.

3 yrs worth of info is reported. also, beginning balance to ending balance is reconciled with retained earnings. FASB requires that significant changes in equity accounts include comprehensive income

stockholder's equity implies net assets of a co. (assets - liabilities). dividend distributions are only reported in 2 places: here and in cash flow stmt.

The report is presented in row/col format.
Rows identify events that cause change in stockholder's equity balance. These events are:
1. shares issued under employee stock purchase and options plans: this increses the number of stocks outstanding. Par value of the stock as well as the additional piad in capital is recorded.
2. tax effect of sale of option shares by employees: exercise of selected stock options (i.e non-qualified options) provides issuing co. with certain tax advantages. however gaap accounting treats tax advantages differently than irs. under gaap, compensation expense related to stocks is measured as below:
expense under GAAP = (shares's mkt price - option price on date options are granted)*no. of options granted.
This expense amount is then allocated to expense over the vesting period.
however, with irs, compensation expense is measured and reported when options are exercised using this formula: (resulting in tax deferred asset)
expense under IRS = (option price - fair mkt value of stock on date options are exercised)*no. of options

so, expense differential between these 2 set of rules results in adjustment to piad in capital. if tax benefit associated with options exercised exceeded the previously reported deferred tax asset, then that amount is added to paid in capital.

3. net earnings: this increases both the retained earnings and total comprehensive income.
4. translation adjustments: foreign currency translation adjustment done to accumulated other comprehensive income.
5. stock compensation expense: granting stock options/units results in compensation expense and is added is the income stmt. however, this may result in addition on the paid in capital also, as explained above.
6. shares purchased for compensation plan (or assets in trust): assets in trust reflect shares set aside for certain stock compensation plans. this is reported in others. A positive value means assets decreased implying some options got cancelled, etc. stocks purchased for buyback are added to treasury stocks, and results in decrease in paid-in capital. note that gain/loss is not recognized on sale/buy of its own stock by cos.
7. cash dividends: this reduce the retained earnings.
8. comprehensive income: it's just a sum of realized and unrealized income.

Columns include:
1. shares issued.
2. amount = par value of shares
3. paid in capital = excess of selling price over par value
4. retained earnings = net income
5. accumulated other comprehensive income: other income
6. other: all other income/loss
7. total stockholder equity = sum of all colums
8. comprehensive income = income from all unusual items included.

 

This section deals with stocks or equities. These are the things that trade on stock market under various ticker symbols. People have made a lot of money via investing in stocks. To invest in stocks, you will need to open a brokerage account. I'll be writing specifically about USA stock market. But before that, some introduction:

Intro:

Time an again, I've seen everyone being fascinated by the stock market, and the insane amount of money that can be made from it. So, let me try to dissect into what stocks are:

In old times, people used to have their business, that they had built with their saved money. they used to make some profit from that business. Part of the profit was used to run their family, some part of it was saved, while the remaining portion was put back into business to grow the business.

Buying stocks or equity is the process of becoming a partner in the company. In simple terms, bunch of people come together, each contributes some money, and a business is set up to sell or buy stuff, and in the process make money. When the business makes profit, it's distributed to the partners based on the amount each contributed to setup that business.

That used to be the old and simple way. Now-a-days, a person starts a company. Then he goes to some big investors asking for money. They give him money in exchange for some stake in the company. The company barely becomes profitable in a couple of years. Then these investors try to make company public. Making a company public is the process of allowing other people to become partners in the company. The problem is that 100% of the company is already owned by the existing partners. There are only 2 solutions to this: either the existing owners sell a part of their equity for other people to by, or the company prints more stocks and sells the newly minted extra stocks. Newly minted extra stocks dilutes the % ownership of existing partners. for ex, if the company had total 1M stocks which were distributed amongst existing partners, then they combined owned 100% of the company,  However, if the company now prints 4M more stocks and sells it to another person, then the existing partners only own 1M/5M = 20% of the company, while the new buyer owns 4M/5M=80% of the company. This is how companies go public: by printing more stocks, rather than asking existing partners to sell their stocks to new investors.

Good websites:

https://www.optimizedportfolio.com => Very good informative and common sense investing advice. We'll dig into more of this later.

Reading material:

There is no dearth of reading material on internet relating to stocks. I've listed some financial Books to be Read:

1. The intelligent investor = By Benjamin Graham (one of the books that warren buffet considers bible of value investing)
2. Irrational Exuberance = By J. shiller (ok book to understand irrational physcology of masses)
3. Understanding corporate annual reports = by Brian stanko and Thomas Zeller (very concisely written book to help you understand 10K filings)
4. A random walk down wall street = by burton G. Malkiel (very good book which is all for efficient market theory and suggesting that you can never beat the market. nice to have a contrary perspective)
5. How to pick stocks like warren buffet = by Timothy Vick (very good book explaining basics)
6. One up on wall street = by Peter Lynch ( I haven't read this book, but this is considered to be bible by many. Since Peter Lynch became a very successful investor with no financial background, this book is more about common sense investing).
7. The DhanDho Investor = by Mohnish Pabrai ( I haven't read this book, but have heard a lot about it. Mohnish Pabrai has become very successful investor following Warren Buffett value investing techniques. Mohnish also talks about how Gujratis became so successful here even with total risk aversion).

AHB:

ARM microcontrollers have proprietery AMBA AHB  Lite bus. It's simply called AHB (advanced high performance bus). It connects ARM processor Bus signals to peripherals connected to ARM processor. These include peripherals like Memory (Flash, SRAM, ROM), devices (keyboard, mouse, etc) or devices communicating via I2C, SPI, etc. AHB is the backbone of ARM microcontrollers. Other ARM bus i/f are merely some modification or extension of AHB spec, so it's important to understand this protocol.

A typical AHB design consists of:

One AHB Master: This is usually ARM processor that is the master. It initiates read and write operations.

Multiple AHB slaves: These slaves respond to read and write operations depending on their addr range.

AHB decoder: This decoder decodes add, and provides select signal for various slaves, so that appr slave can be chosen to respond.

AHB Signals:

Any bus would need to have a clock, reset and data /control signals. For AHB, these are the signals:

A. Clock/Reset signals: Below signals are driven by neither master nor slave, but by independent controller. This controller usually sits on the master side, but may be anywhere.

1. HCLK = This clk times all bus transfers. All signal timings are related to rising edge of HCLK. HCLK can be generated by any clk source and used to fire flops on both master and slave.

2. HRESETn = This active low signal is used to reset system and the bus. HRESETn can be generated by any Reset controller, and used to reset flops on both master and slave. Many other bus i/f do not have Reset signal as part of Bus i/f as reset signal is generated locally to devices and ued to reset the bus.

B. Write signals: Below signals are driven by the master:

3. HADDR[31:0] = 32 bit system addr bus. It's driven by the master, and indicates which addr to read/write.

4. HWDATA[31:0] = This is write data to be written to slaves. It can be any number of bits, but is usually 32 bits.

5. HWRITE = This indicates whether xfer is read or write. When high, it indicates irt's a write, and when low, it's a read.

Below signals are optional, and needed for burst xfers or slaves which need additional info. None of the below signals are supported by slaves in simple microcontrollers.

6. HSIZE[2:0] = Indicates size of xfer, from 8 bits (1 byte) to 1024 bits (128 bytes). This signal is used in conjunction of HBURST[2:0] to determine addr boundary for wwrapping bursts.

7. HBURST[2:0] = Indicates if the transfer forms part of a burst. 000= single xfer or no burst, while others rep incrementing or wrapping burst

8. HPROT[3:0] = The protection control signals provide additional protection information about a bus access to the slaves. HPROT[3]=cacheable, HPROT[2]=bufferable, HPROT[1]=provileged, HPROT[0]=data/opcode

9. HTRANS[1:0] = Indicates the type of current xfer, which can be: 00=Idle, 01=busy, 10=Non-sequential, 11=sequential. Single xfer as well as 1st xfer of burst are non-seq, while all remaining xfers of burst are seq. Idle and busy are used by master to indicate to slave that it's busy, and hence not sening anything valid, so slave should just ignore this xfer. 10 or non-seq is the most commonly used xfer type.

C. Read signals: Below signals are driven by Slave:

10. HRDATA[31:0] = This is read data read from slaves. It can be any number of bits, but is usually 32 bits.

11. HREADY = This signal is driven low by slave to extend a xfer. This is the only ack signal provided by slave to indicate to master if it's finished with the transaction. Most of the simpler bus protocols don't have any ack signal from slave, and master transfers data sequentially and just expects the slave to consume it correctly. If the slave is busy, there is no way for master to know it. This limits the flexibility of such protocols. So, ARM AMBA protocols include this ack signal, so that Master can serve slaves of all kind (i.e it the slave is running slow or it's internal fifo is filled, it can keep pulling HREADY low until it's ready for next xfer)

12. HRESP[1:0] = This provides additional info on status of xfer. 00=OKAY, 01=ERROR, 10=RETRY, 11=SPLIT

D. Decode signals: Below signal is driven by addr decoder:

13. HSELx = This signal is driven by central addr decoder for each slave on the bus, where x indicates the slave number (So, HSEL0 is driven to slave 0, while HSEL15 is driven to slave 15)

Multiple Masters:

Though typical ARM microcontrollers have only 1 master, which is the ARM processor, there are cases where maore than 1 Master is needed. To take care of this, AHB protocol allows multiple bus masters. To support this, an arbiter is needed, and few extra control signals are required. Upto 16 Bus Masters are supported from Number 0 to Number 15.

HBUSREQx = This is signal from Bus Master "x" to aribter requesting that this bus master requires the bus. Each of the Masters has HBUSREQx signal (signals HBUSREQ0 to HBUSREQ15)

HLOCKx = This is to indicate Locked xfer, i.e master pulls this high, if it wants locked access to the bus (i.e no other master should be granted the bus, until this signal goes low)

HGRANTx = This is the ack signal from arbiter to the master, indicating that master x is currently the highest priority master.

HMASTER[3:0] = This is the signal from aribiter to slaves, to indicate which master is currently performing a xfer. It is used by slaves which support SPLIT transactions

HMASTLOCK = This signal is from arbiter to Masters?? to indicate that the current master is performing a locked seq of xfer.

HSPLITx[15:0] = This 16 bit signal is from each slave to arbiter  to indicate which bus master should be allowed to reattempt a split transaction. 16 bits are for 16 bus masters. This is needed only for SPLIT capable slaves.

Data Transfer Phases:

Master and slave transfer data each of which consist of 2 phases:

1. Addr phase: 1 cycle phase where Addr (HADDR) and control signals are put on Bus. HWRITE signal being high indicates write operation, while low indicates read. It's fixed 1 cycle operation, so slaves need to be able to capture the addr/ctl signlas within a cycle.

2. Data phase: multi cycle phase where Data (HWDATA/HRDATA) is put on bus. Thus data phase follows addr phase. We put addr and read/write signal in 1st cycle and then in 2nd cycle we either read or write data. What if data cannot be provided on next cycle by slave, just because it's too slow. HREADY signal solves this problem, by working as a feedback signal from slave. As long as the HREADY signal is high, master assumes that slave has finsihed the operation, and master can proceed with next xfer. However, if the slave is not ready, then it can pull it low. This signals to the master that it should keep driving the write data or keep waiting for read data until HREADY is taken HIGH again by the slave. HRESP is another signal driven by slave, which when low indicates sucess. Usually, HRESP signal is permanently tied to low, since it's of not much use for simpler designs.

One obvious differerence that we see between read and write is that verything needed for read tran is provided in 1st cycle, and by end of next cycle, read data is returned back. Memory is busing doing read during 2nd cycle. However for write, write data is not provided in 1st cycle. Though Addr and control signals are provided in 1st cycle, in absence of write data, memory cannot process write during 2nd cycle. write data is latched on input flop of memory at end of 2nd cycle, and then in 3rd cycle, internal write of memory takes place. So, for read, memory is busy during 2nd cycle, but for write it's busy during 3rd cycle. If write data would have been provided on AHB during 1st cycle (along with Addr and control signal), then write of memory would have taken in 2nd cycle (similar to read). However, that's a protocol that AHB chose for read and write. Since memory expects all signals to be available at the same time, we have to locally buffer Addr and control signals for write for 1 cycle, and then it pass it on to memory when write data arrives in next cycle. This also creates collision in memory when there is read followed by a write, and it has to be handled in sram controller. ARM IP already includes code in sram controller to take care of this situation

 

 

 

 

 

signal processing is a separate field by itself. It's important to know signal processing, as a lot of audio/video or other signals involve processing. Signal processing is basically transformation of signals. It's mostly mathematics, but then circuits can be built to realize those functions.