House Buying/Selling in USA

House Buying in USA is pretty relaxed process compared to buying a house in India. From start to finish on a house ready to move in,  you can move into the house in < 21 days. On a house that is going to be started on a new lot, it may take anywhere from 3 months to a year. House selling is equally easy. Let's explore the process.

Real Estate sites:

There are lots of real estate websites to start looking at houses. Few of the biggest ones that you start your search from are www.realtor.com, www.redfin.com, www.zillow.com, etc. They all have the same info, only difference is in the way they allow you to filter houses.

New houses vs used houses:

You should start the house search on your own. Look at the areas where you want to live, and the prices in that neighborhood. If the area is till developing, you may see new houses on sale too. My preference is to always buy a new house. 3 things in life that you never want to get used => Cars, Houses and Spouses !!

Reasons on why you should always buy a new house if possible:

  • New homes come stress free. Everything in the house is covered for a year (some cover for 2-3 years too). No matter what breaks, Builder will have it fixed for free.
  • You get a better price with new houses. Old houses are sold by people who are looking to make a profit. No one lists their houses to be sold for a loss. However, builders are willing to take a loss on a new house, especially if it' sitting on the market for quite some time. Their goal is to make cummulative profit. Even if they sell few houses at a loss or breakeven, it doesn't matter to them. Many times you will find "spec" houses, which are houses that the builder already built and is ready to move in. He doesn't have a buyer for it yet. In a down market, such houses sell for lower than market price. Everyday such a "spec" home sits on the market, builder has to pay for all the property taxes, utilities, maintenance, insurance, etc. So, it's in his best interest to sell the house asap.
  • First few houses in any new community being built are sold at lower prices than the houses which sell later. So, buy a house in a comunity which is just getting started. Builders will rarely reduce prices of houses selling later, as they don't want to ire previous homeowners who already bought houses in that community for a higher price.
  • Insurance rates on a new house are about couple of hundred dollars cheaper than on a used house.
  • Most realtor agents will give you a better cashback on a newer home than on a new home. See next section.

Agents:

The agent landscape is very competitive where there are more real estate agents than the number of houses that sell in a year. That means each agent is able to sell just 1 house on avg in one year. So, you can negotiate for cashback from these agents. Listing agent usually gets 6% commission on selling the house. The seller pays the commission, so buyer never sees the expense. However if the buyer also has an agent, then the selling agent splits the commission equally, resulting in 3% for each. Most of the times, buyer's agent will give 2%-2.5% cashback to the buyer, and keep 1%-0.5% to himself. This money can be put into the closing costs or can just be cashed out. There is no tax implication for this, as it's a rebate on the purchase.

Below realtor offers 2.5% on a new house and 2% on a used house. She's pretty reliable with rebate. Definitely inquire her and also shop around to see if you can get more cashback.

Link => https://texashomes2percentrebate.com/

 

 


 

 

Trignometry: Trignometry is a branch of Geometry that deals exclusively with triangles. You may wonder how come triangles have a whole branch of Mathematics dedicated to itself !! There are lots of things that's possible with triangles, and knowing triangles well forms the basis of Geometry.

We learned about drawing various triangles, finding angles of a triangles, and sides of a right angle triangle.

We can find all sides of a triangle given it's angles or vice versa. We need to know sine, cosine and tangent for that. We'll learn about right angle triangles and then move to other generic triangles.

Radians: So, far we learned that unit of angle is degrees. That is what our protractor also shows. One other unit of angle is radian. It's very widely used in scientific community, because many ratios cancel out nicely when using radian. 180 degrees is defined as π (pi=3.14) radians.

So 1 radian = 180/π degrees (approx 57.3 degrees). So, 1 radian of angle is an angle which is slightly less than 60 degrees.

Right angle Triangle:

For a right angle triangle with any one of the angles as Θ, we will have ratios of all 3 sides of triangle fixed, i.e if we make any other right angle triangle with this angle, that triangle will be similar to this triangle. Infact all such triangles will have same shape, they will just differ in the scaling. it makes sense to define the ratio of the sides for all right angled triangles for a given angle Θ on it's base.

Consider right angle triangle with sides a,b,c, where a=vertical side, b=base, c=hypotenuse, and angle Θ = angle b/w hypotenuse and base. Then we have six ratios that we can define between the 3 sides. Below we define those six ratios.

sin(Θ) = a/c  cosec(Θ) = 1/sin(Θ)  = c/a (aka cosecant)
cos(Θ) = b/c sec(Θ)    = 1/cos(Θ)  = c/b (aka secant) => cos was already used up, so putting co again sounds weird cocosecant, so we stick with secant
tan(Θ) = a/b cot(Θ)    = 1/tan(Θ)  = b/a (aka cotangent)

This is the definition for all 6 ratios. Sine, cosine and tangent are the ones most commonly used. There are tables that give values of sine, cosine and tangent for all values of angle Θ, from 0 degrees to 90 degrees. By looking at the table, we can figure out lengths or angles for any given triangle.

Few basics of terms above:

  • All 6 of the ratios are periodic. Sin/cos are periodic with period of 2π (360 degrees), while tan has a period of π (180 degrees).
  • Sin, cos are continuous while tan becomes discontinuous at any odd multiple of π/2 (90 degrees, 270 degrees, etc).
  • Cosine is just a shifted version of Sine, where the Sine function is shifted to the left by 90 degrees to form cosine

I've put the most common theorems for these 6 defn, and their relationship at 90, 180 and 360 degrees. It's easy to see these relations from the graph itself, or by using the formula defn of the  triangle

Link => SIN/COS/TAN waveforms and equations

There are lot of theorems that can be derived for these 3 equations defined above. Lot more theorems are on link below.

  1. sin2(Θ) + cos2(Θ) = 1 (This can be proved by Pythagaros therem: (a/c)^2 + (b/c)^2 = (a^2+b^2)/c^2 = c^2/c^2 = 1). Most IMP formula, one you can't afford to forget.
  2. sin(Θ)/cos(Θ) = tan(Θ) (this can be proved by dividing sin and cos eqn above)
  3. sin(Θ) = cos(90-Θ). Similarly cosΘ) = sin(90-Θ). This can be proved by looking at the right triangle, and finding sine and cosine for the other angle which is (90-Θ). OR by noting that cosine is a 90 degree left shifted version of sine. See link above.
  4. 360+Θ is same angle as Θ, as 360 is one full rotation and comes back to starting line. So, is 360*n+Θ where n is an integer number. So, all 6 definitions above give same result for 360+Θ, i.e Sin(360*n+Θ)=Sin(Θ), where n is an integer (+ve or -ve)
  5. For all other angles between 0 to 360 clockwise (treated as +ve), above equations are defined depending on whether base and height are +ve or -ve. Hypotenuse is always taken as +ve. Height and base are taken as +ve or -ve depending on X and Y coordinate. Similarly for angles going anticlockwise, we treat those angles as -ve, and again define all equations above the same way. These equations are defined in this way, so that the same sin, cos, tan eqn will work in all quadrants.
  6. Many more formulas, and definition for angles > 90 degrees and < 0 degrees are in "unit circle" link below: 
    1. One other imp formula is sum of angles: Sin(a+b) = Sin(a).Cos(b) + Cos(a).Sin(b). This can be used to derive Sin(a-b), Cos and tan sum/diff formula ver easily. This is harder to prove. One such proof is on Khan
    2. Academy => https://www.youtube.com/watch?v=R0EQg9vgbQw
  7. Cheat sheet for imp formulas => trig_cheat_sheet.pdf

So, we see that all 3 definitions above for sine, cosine and tangent are related to each other. If we know any one of the sine, cosine or tangent we can know the other 2 easily.

Unit Circle: We can also use a unit circle to learn these ratios. There is a unit circle that can be drawn. Then sin, cos, tan etc are just sides of that triangle inside and outside the circle.

Explained on this link: https://www.math10.com/en/algebra/sin-cos-tan-cot.html

 

Graphs of transformation of sin/cos functions:

So far we saw drawing Sin/Cos functions. However if we transform the eqn to be more generic like y = A*sin(B*x-C) + D, then sin/cos func is compressed/expanded + shifted up/down or left/right. It's similar to transformation of any function that we saw in earlier section. When f(x) gets transformed to A*f(B*x-C) + D, func shifts as well as get compressed/expanded. Exactly the same thing here with sin/cos. Below link explains well.

Link => https://math.libretexts.org/Courses/Rio_Hondo/Math_175%3A_Plane_Trigonometry/02%3A_Graphing_Trigonometric_Functions/2.04%3A_Transformations_Sine_and_Cosine_Functions

 

Inverse functions:

So far we saw drawing Sin/Cos functions. We have inverse functions for any given function.For ex, the inverse of square function is square root function, etc. For sin/cos/tan etc, the direct function converts from angle to a number. The inverse function gives us the angle back from that number. So, the domain of inverse function is from -1 to +1 and range is from -∞ to +∞. However since the forward function is periodic, the reverse func will give us multiple values of Θ for a given number. That violates the defn of func, which states that there can be a max of 1 Y value for a given x. To make it fit, we choose a range for inverse function so that none of the Y values are repeated. We define our inverse function only in this range. That's how officially inverse func for sin/cos/tan etc are defined.

Link => https://math.libretexts.org/Courses/Monroe_Community_College/MTH_165_College_Algebra_MTH_175_Precalculus/06%3A_Analytic_Trigonometry/6.01%3A_Inverse_Trigonometric_Functions

 

 


 

Drawing Right angled triangles:

It's important that kids draw right angled triangles. Then they should be able to figure out by themselves if they can draw a unique right angled triangle for a given angle. Following are cases where info is enough to draw a unique right angles triangle.

  • Given Any 2 sides of right angles triangle => Pythogaros Thm gives us 3rd side, and all 3 sides (SSS) gives us unique triangle
  • Given any one angle and one side of right angled triangle => Since 1 angle (X) is given, we can find out other angle (90-X). So, all 3 angles are known, and 1 side is known, so unique triangle can be drawn using ASA.

Ex: Draw a right angled triangle, with one angle=30 degrees. You can draw bunch of such triangles since length of any of the sides is not given. However, all these triangles are going to be congruent or similar to each other. Also, make sure the kids realize that the sides seem to have a fixed ratio to each other for a given angle. Make them find sine, cosine and tangent by measuring the lengths a, b, c and finding the ratios.

Ex: Repeat the exercise above with the other angle of the right angled triangle = 45 degrees. Again make the kid find out sine, cosine and tangent by measuring

Now, instead of drawing, let's try to find sine, cosine and tangent for special angles = 30, 45, 60. For angle=45, it's easy as the 2 sides are going to be the same (3rd side can be computed via pythagoras  theorem), so ratios can be computed easily. For angle=30, we can make a reflection of the triangle, so that the 2 triangles combined become an equilateral triangle. Or we can draw an equilateral triangle and cut it in half. So, each half becomes a right angled triangle and the 2 halves are equivalent triangles, so, base is divided in half. Height can be found out by employing pythagoras  theorem (h^2=a^2 - (a/2)^2 => h = √3/2*a.

For 0 degrees, the height of triangle is reduced to 0, so hypotenuse is equal to base. That gives us the values for 0. For 90 degrees, the base of triangle is reduced to 0, so hypotenuse is equal to height. That gives us the values for 90 degrees.

So, now we know to compute these for these important angles:

The easiest way to remember the basic values of sin and cos at the angles of 0°, 30°, 60°, 90°: sin([0, 30, 45, 60, 90]) = cos([90, 60, 45, 30, 0]) = sqrt([0, 1, 2, 3, 4]/4) 

We can use the trignometric identities discussed earlier to get sin, cos, tan for 15 degrees and 75 degrees too.

  • 15 degrees: Use Sin(A-B)=Sin(A).Cos(B)+Cos(A).Sin(B) => Sin(15)=Sin(45-30)=Sin(45).Cos(30)+Sin(30).Cos(45)=√2/2*√3/2+1/2*√2/2 = √2/4*(√3-1)
  • 75 degrees: Use Sin(A+B)=Sin(A).Cos(B)+Cos(A).Sin(B) => Sin(75)=Sin(45+30)=Sin(45).Cos(30)+Sin(30).Cos(45)=√2/2*√3/2+1/2*√2/2 = √2/4*(√3+1)

There are trignometric tables provided which lists sin, cos, tan for all angles between 0 deg to 90 deg. These tables are very useful to find out sides or angles of a right triangle.

 

Car Tire Change

You should always know how to change the tire of your car, when it goes flat. Most of the people have never changed tire in their life. So, when they get stranded, they have no idea of how to change one. Internet is of course not reaching there, so you are out of luck. Don't be that guy.

Find out where the tire changing equipment and the spare tire is for your car. Usually tire changing equipment is in the trunk of your car, under some hidden box, while tire is also in the trunk. Sometimes spare tire is put in the bottom of the car, when there's not enough space to put it inside the car. Watch a video on youtube on exactly how to change the tire for your car. Then practice it once on your car on one of the tires.You will thank yourself later.

Below is a video on changing tire on Toyota Sienna Minivan: https://www.youtube.com/watch?v=mvC0SrMZ4l0

Do the same for your car. This is a generic tire changing video: https://www.youtube.com/watch?v=0KDMdYww4VE

Happy Driving !!

 

World Assets

This article goes over all the assets in the world and the ownership of those assets.

ASSETS

sifma.org is a very good resource for global capital market. Link for assets per year: https://www.sifma.org/resources/research/fact-book/

You can also find a pdf on the right side that has lots of detail for each year.

Total assets in the world may be found out by adding up the price of all assets in the world. It's hard to find data for the world, but USA data is readily available. 

World Assets as of FY 2024:

  • World stock market => ~$130T ($65T in USA). Assume most of it is owned by individuals, or finally goes to the individuals (i.e Pension funds, etc). About $0.5T of new equity is issued in the market every year (Not sure, if this euquity issuance includes only the money that was collected from investors, or if it accounts for the total market cap of the new company issuing stocks, most likely it includes only the money that was raised from investors by issuing stocks).
  • World housing market => No matter which country house prices everywhere are soaring due to cheap money supply. In US, total residential Housing asset is ~$45T (as of 2023), so we may guess that global housing market may be close to stock market valuation. So, about $100T in housing asset (minus the amount of mortgage loan, but that will be paid off eventually. It might be around 20% or $20T in housing loans globally. US mortgage loans are at $13T)
  • Fixed income (FI) market => This comprises of bonds, debt issued by companies, govt, etc that people buy as debt securities. This market is $145T of which $60T is USA market. This market comprises all the debt securities outstanding as of that year, Roughly 20% of these fixed income securities are paid off or rotated again as new securities. About $25T of new fixed income securities are issued each year (as lot of them mature within 5 yrs, I guess) . As we can see "fixed income security" market is bigger than "equity market", though the gap is closing fast, as equity market goes up by 10%/yr, while bond market is going up by 5%/yr.
    • In 2009, global equity market was $50T, while FI market was $75T. As of 2024, global equity market was $130T, while FI market was $145T.
  • Cryptocurrency => These have added $2T or so to world assets as combined market cap is ~$2T as of 2024. Top 5 cryptocurrency comprise 80% of the market. They are all traded on stock exchanges just like stocks.
    • Bitcoin (BTC) = $1.2T or about 55% of market,
    • Ethereum (ETH) => $0.3T or about 15% of market,
    • Tether USDt (USDT) @$115B, BNB (BNB) @80B and Solana (SOL) @60B comprise next 12%
  • Precious metals => These include gold, silver, etc. Prices have been rising fast as of 2024-2025. Gold prices are usually 50X-100X of silver prices, for no particular reason. Silver is more abundant than gold (About 10X more silver than gold). As can be seen, total market cap of precious metals is dominated by Gold and silver.
    • Gold => Assuming 200K ton of Gold exist in the world, and price of $4K/oz (as of 2025), the total mkt cap is ~$30T.
    • Silver => Assuming 1800K ton of silver exist in the world, and price of $50/oz (as of 2025), the total mkt cap is ~$3T.
    • Platinum => As of 2025 with price of Platinum = 1.5K/oz, total mkt cap is $0.4T
    • Palladium =>  As of 2025 with price price of Palladium = 1.5K/oz, total mkt cap is $0.25T

 

USA household asset numbers are much more reliable, as they come from FED, collected via surveys and other genuine resources. 

Fed Link for Q4, 2024 for household assets => https://fred.stlouisfed.org/release/tables?rid=52&eid=810420&od=2024-10-01#

You can look for any year by changing the year and Qtr in the above FED link.

USA household Assets as of FY 2024:

  • Total Assets =$180T (as reported by Fred data). However, on adding below numbers, it comes to $200T.
  • Financial assets = $72T 
    • Stock market (all equities, mutual funds (MF)) => $50T. Here equity market is $40T, and Mutual Funds is $12T. Ideally, all of the US stock market is eventually by all of US households. But when reporting equities held by households, we report only direct equities held by households. Equities via ETF, MF, other funds may be reported separately. Also, a good chunk of equities is owned by foreigners, corporate companies, pension funds, retirement funds, Life insurance companies, etc. For simplicity, Equity+MF component of assets for US households can be assumed to be 70%-80% US Wilshire Cap.
    • Bank Deposits/CDs: All money in banks/CU deposited by US households is $15T. CD and short term investments are $10T, while checkable deposits + currency are $5T. As of 2025, Total deposits in banks is $18T, while in CU, it's $1.8T. This total of $20 is less than $15T reported, maybe because $5T of deposits is not by US households, but by businesses.
    • Bonds (Corporate bonds, US treasuries, Muni Bonds): ~$6T. Bulk of it, $4T, is US Treasuries. However, sifma reports about $11T of corporate bonds outstanding, which doesn't line up with this data, maybe because most of corporate bonds are bought by other business, pension funds, etc.
    • Money market funds: ~$5T
  • Non Financial assets = $56T 
    • Housing market (all houses owned by households): $48T
    • Consumer durable goods (all houses owned by households): $8T. This includes personal items belong to Americans as cars, TV, , personal items, etc.
  • Other assets: $75T
    • Equity in non corporate business => This is to account for millions of Business that are run by Americans, which aren't listed listed on the stock market. Think of gas stations, restaurants, salons, etc that have substantial market value if sold by the owner. If you add this equity, it's ~$15T
    • Pension Entitlement: Millions of Americans are entitled for pensions, either via their government jobs, or by their private employers. This is a big chunk of money at ~$32T, and is included in household assets. Govt pensions are $15T, private is $13T and annuities are $5T.
    • Retirement Plan assets = $26T. These are individual retirement a/c consisting of IRA, 401K, etc.
      • 401K Plans => Total assets were $3T in 2009, but as of 2024, they swelled to $9T.
      • IRA a/c: => Total assets were $5T in 2009, but as of 2024, they swelled to $17T.
  • Total liabilities = $20T. Home mortgage is $14T, consumer credit=$5T, while misc loans are $1T. 
  • Net equity of US households = $200T-$20T=$180T

US wealth (excluding housing) was ~$70T in 2023. 

 


 

Wealth:

When it comes to wealth, developed economies have a lot of wealthy people. Though number of Billionaires reported as of 2022 is ~4K or so, I believe there are probably close to 10K billionaires in the world.

Billionaires by Country (US, China and India take top 3 positions)  => https://en.wikipedia.org/wiki/List_of_countries_by_number_of_billionaires

To be in the top 1% of the population in any developed country, you need to have ~$1M in net assets. In USA, you need about $12M to be in the top 1% of households (see in USA section).

Top 1% wealth threshold per country => https://www.msn.com/en-us/money/personalfinance/america-s-richest-1-s-staggering-wealth-and-how-it-compares/ss-AA1fbf0q

Total wealth owned by individuals reached $600T as of 2023. It keeps rising at 5%-10% per year. Total number of millionaires in world is about 100M.

Link => https://www.msn.com/en-us/money/markets/global-household-wealth-declined-in-2022-the-first-dip-since-the-2008-financial-crisis/ar-AA1fjuRf

 


 

Clock Gating

Clock Gating is a technique to reduce power on chip. We talked about 2 techniques for reducing power:

  • Clock Gating: This is where we turn clks on/off on different sections of chip as needed. This is what we are going to discuss in this section
  • Power Gating: This is where we turn power  on/off on different sections of chip as needed. Here we get more power saving compared to clock gating as the whole power is turned off. This is implemented via sleep transistors or switches.

 

History of Clock gating

Most of the flops in design are not actively switching every cycle. By that I mean, data doesn't need to be updated all the times. Data from the driving flops may still get updated, but we don't want data being captured to be updated. There would be some control signal in RTL that achieves this functionlity. In the past, we would have a mux on the capturing flop that would select between new data coming in or recirculating the old dsts on the capturing flop. This could also be called as data gating, as we are gating the data so as not to toggle. This was correct in terms of functionality, but the clk was needlessly toggling on the capture flop. To save even more power, we somehow tie the control signal into the capturing clk. Then the capturing clk doesn't toggle, and hence data is held in the flop to previous value. This eliminates the mux. This results in power saving compared to the mux scheme. This is called clk gating and is used widely and supported by all synthesis tools automatically (you don't have to write RTL for clk gating, it's automatically put in by synthesis tools). The logic structure that we put in the clk path to achieve this is called a clk gater.

 

Clock Gaters

Clk gaters are special logic cells used to implement clk gating. So, how do we implement clk gaters? Very simple, we just turn clk on or off, so a simple AND or OR gate would do. AND gate is needed when clk is active high, while OR gate is needed for active low clks. However, there is a setup and hold requirement for this "ENABLE" signal, so that the clk pulse is not shortened or glitchy.

FIXME: Digram B-1

From the diagram, we identify 4 cases. In all 4 cases, setup/hold timing need to be met. See all 4 cases below:

Out of the 4 cases, simple AND/OR doesn't work for 2 cases. For those 2 cases, we need to have a latch before the AND/OR gate.

 

Testability:

Clk gater need to be testable, as they block clk during fucnc mode. So, during scan mode, they can block clk, depending on "EN" signal being 0 or 1.