Saturday, April 27, 2019

My happy hour new definition

April 27, 2019

Introduction


It is my personal finance research. I like to have a happy hour every day. What  I can do is to watch morningstar video, and then I like to push myself to learn from Christian Benz and understand more about portfolio, and look into ideas shared by those videos.

My happy hour


5 minutes video, I watched twice, 10 minutes. Now it is 11:57 PM.

Here is the video called Give your portolio a fresh start this spring.

Here is the video called Investing insights: Portfolio spring cleanup, solid dividend, and more.


Commission-Free ETFs on TD Ameritrade

Here is the article.


Here is the folder to contain my excel sheet used for analysis on JuliaPersonalFinance github repository. 

It is time for me to look into mid-cap growth ETF vanguard. I have to learn how to read the economy and then take some action on purchase of the ETF after last year dip on stock market. 

Symbol
ETF Name
Asset Class
Total Assets ($MM)
YTD
Avg Volume
Previous Closing Price
1-Day Change
IWP iShares Russell Midcap Growth ETF Equity $10,844.49 24.62% 534,648 $141.46 0.85%
VBK Vanguard Small Cap Growth ETF Equity $8,974.69 23.74% 164,705 $186.09 0.97%
VOT Vanguard Mid-Cap Growth ETF Equity $6,163.80 23.53% 140,442 $147.61 0.81%
IWO iShares Russell 2000 Growth ETF Equity $9,350.38 21.01% 590,359 $202.98 1.11%
VXF Vanguard Extended Market VIPERs ETF Equity $6,955.78 20.07% 404,905 $119.52 0.78%
IWV iShares Russell 3000 ETF Equity $9,552.24 18.18% 368,534 $172.99 0.53%
VOE Vanguard Mid-Cap Value ETF Equity $9,259.24 17.71% 351,169 $111.59 0.50%
VBR Vanguard Small Cap Value ETF Equity $13,588.72 17.64% 279,066 $133.57 1.06%
IWS iShares Russell Midcap Value ETF Equity $11,009.19 17.54% 591,483 $89.34 0.61%
IJS iShares S&P SmallCap 600 Value ETF Equity $6,394.23 16.97% 196,270 $153.64 0.88%
IVE iShares S&P 500 Value ETF Equity $15,617.26 16.21% 779,862 $116.88 0.48%
ACWI iShares MSCI ACWIETF Equity $10,748.36 15.91% 2,928,964 $74.37 0.38%
IWN iShares Russell 2000 Value ETF Equity $9,130.21 15.85% 801,903 $124.06 0.87%
VT Vanguard Total World Stock ETF Equity $12,788.53 15.84% 2,610,625 $75.54 0.48%
VGK Vanguard FTSE Europe ETF Equity $13,816.09 14.26% 3,516,800 $55.24 0.22%
FXI iShares China Large-Cap ETF Equity $6,288.56 14.12% 28,774,536 $44.60 0.59%
SCZ iShares MSCI EAFESmall-Cap ETF Equity $9,643.77 14.07% 1,031,286 $59.11 0.42%
JNK SPDR Barclays High Yield Bond ETF Bond $9,784.96 9.46% 13,668,484 $36.25 0.22%
EWJ iShares MSCI Japan ETF Equity $14,250.59 9.29% 8,074,709 $55.40 0.91%
EWZ iShares MSCI Brazil ETF Equity $8,639.64 7.98% 31,630,064 $41.25 0.41%
BIV Vanguard Intermediate-Term Bond ETF Bond $11,608.12 3.87% 682,678 $83.82 0.24%
MUB iShares National AMT-Free Muni Bond ETF Bond $12,567.19 2.91% 802,955 $111.49 0.14%
TLT iShares 20+ Year Treasury Bond ETF Bond $12,585.40 2.56% 7,886,922 $123.81 0.34%
VMBS Vanguard Mortgage-Backed Securities ETF Bond $8,685.76 2.09% 787,667 $52.17 0.13%
IEI iShares 3-7 Year Treasury Bond ETF Bond $6,816.20 1.76% 854,370 $122.86 0.20%

1035. Uncrossed Lines

I like to share the link of my discussion post.

Algorithm 1035 Uncrossed lines is here.


I also like to write down my feelings after I wrote and completed the solution after the weekly contest 114. I studied discussion post, and there is a trick to design dynamic programming array size to remove m - 1 out of range edge case, just apply start index = 1 instead of 0. 

Another thing is for me to argue that the cross case is the maximum case if the last number of both arrays are the same. 

Algorithms 3 is a dynamic programming. I have to learn some tip to avoid the edge case. I also asked question about the most popular post the question. The post is here, the question is the following, I did ask some one before more than a year ago, I also wrote a blog about it.

May I ask you how to argue the following statement is correct?
dp[i][j] = 1 + dp[i - 1][j - 1];
The above statement is based on the fact that dp[i - 1][j] <= 1 + dp[i - 1][j - 1] and dp[i][j -1] <= 1 + dp[i -1][j - 1]. How to reason those two formulas?

Follow up 


May 3, 2019

I got response back from the author.


Weekly contest 114

April 27, 2019

Introduction


It is my favorite weekly contest. I solved two algorithms, but I came out the third algorithm using dynamic programming solution. I could not complete the third on since I only had 10 minutes left to work on the solution.

Case study


I should be able to complete the third algorithm dynamic programming in less than 10 minutes. But I have not written a dynamic programming solution for long time. I wrote one solution after the contest using List<int> to help, but the first one is so messy with redundant if/ else and isEqual discussion.



I like to share the links of my discussion posts.

Algorithm 1 is here.
Algorithm 2 is here.
Algorithm 3 is here.

I stuck on first easy level algorithm, as shown in the above image, I spent 41 minutes to play with submission and test cases, and then I made it work.

I did not have time to read the fourth algorithm at all. I need to work on my reading skills. Sometimes I have to think carefully before I write the code, I had to hack the code and then figured out what was asking. Life is tough to play weekly contest.

Algorithms 3 is a dynamic programming. I have to learn some tip to avoid the edge case. I also asked question about the most popular post the question. The post is here, the question is the following, I did ask some one before more than a year ago, I also wrote a blog about it.

May I ask you how to argue the following statement is correct?
dp[i][j] = 1 + dp[i - 1][j - 1];
The above statement is based on the fact that dp[i - 1][j] <= 1 + dp[i - 1][j - 1] and dp[i][j -1] <= 1 + dp[i -1][j - 1]. How to reason those two formulas?

Follow up 


May 3, 2019

I got response back from the author.


Weekly contest 113

It was a big mistake since I was distracted in the contest, I chatted with two friends on wechat in the contest, so I could not solve any problem.


Commission-Free ETFs on TD Ameritrade

Here is the article.

Symbol
ETF Name
Asset Class
Total Assets ($MM)
YTD
Avg Volume
Previous Closing Price
1-Day Change
VBK Vanguard Small Cap Growth ETF Equity $8,974.69 23.74% 164,705 $186.09 0.97%
VOT Vanguard Mid-Cap Growth ETF Equity $6,163.80 23.53% 140,442 $147.61 0.81%
VXF Vanguard Extended Market VIPERs ETF Equity $6,955.78 20.07% 404,905 $119.52 0.78%
VOE Vanguard Mid-Cap Value ETF Equity $9,259.24 17.71% 351,169 $111.59 0.50%
VBR Vanguard Small Cap Value ETF Equity $13,588.72 17.64% 279,066 $133.57 1.06%
VT Vanguard Total World Stock ETF Equity $12,788.53 15.84% 2,610,625 $75.54 0.48%
VGK Vanguard FTSE Europe ETF Equity $13,816.09 14.26% 3,516,800 $55.24 0.22%
BIV Vanguard Intermediate-Term Bond ETF Bond $11,608.12 3.87% 682,678 $83.82 0.24%
VMBS Vanguard Mortgage-Backed Securities ETF Bond $8,685.76 2.09% 787,667 $52.17 0.13%

Cohen & Steers Real Estate Securities Fund, Inc. Class Institutional CSDIX

Here is the link. The fund link on morningstar is here.

It is one of my 401 K par tech fund. I just could not believe that $10,000 dollars in 2009, now it worths more than $60,000 dollars.

Real Estate


Real Estate is a cyclical industry that is sensitive to interest rates, economic conditions (both nationally and locally), property tax rates, and other factors. Changes in real estate values or economic downturns can have a significant negative effect on issuers in the real estate industry. Stock markets are volatile and can decline significantly in response to adverse issuer, political, regulatory, market, economic or other developments. These risks may be magnified in foreign markets. Sector funds can be more volatile because of their narrow concentration in a specific industry. In general the bond market is volatile, and fixed income securities carry interest rate risk. (As interest rates rise, bond prices usually fall, and vice versa. This effect is usually more pronounced for longer-term securities.) Fixed income securities also carry inflation risk and credit and default risks for both issuers and counterparties. Unlike individual bonds, most bond funds do not have a maturity date, so avoiding losses caused by price volatility by holding them until maturity is not possible. Additional risk information for this product may be found in the prospectus or other product materials, if available.

Short Term Redemption Fee
None

Who May Want To Invest
Someone who is willing to accept the potentially lower diversification and higher risks associated with investing in a particular industry or sector.

Someone who is seeking to complement his or her core holdings with investments concentrated in a particular sector or industry.

Actionable Item


I did purchase $300.00 US dollar on my 401 K Par technologies Charles Schwab. I will learn from the experience.



Par tech 401 K asset allocation

April 27, 2019

It is the first time I read all funds available in my plan. I decide to make some transfer today.

I should do this every year starting from 2008 to 2019.

2019-04-27 Asset allocation
Name Amount
Fidelity 500 Index     $500  $                            500.00
T. Rowe Price Blue Chip Growth    $1000  $                        1,000.00
Pioneer Equity Income Y   $500  $                            500.00
Fidelity Mid Cap Index                  $300  $                            300.00
T. Rowe Price Mid-Cap Growth Adv   $300  $                            300.00
Wells Fargo Special Mid Cap Value Inst  $300  $                            300.00
Fidelity Small Cap Index        $300  $                            300.00
Hartford Small Cap Growth HLS IB   $300  $                            300.00
Delaware Emerging Markets Instl   $500  $                            300.00
Fidelity International Index     $500  $                            300.00
American Funds Europacific Growth R3   $500  $                            500.00
Cohen & Steers Real Estate Securities I   $800  $                            300.00
Fidelity US Bond Index           $300  $                            300.00
Western Asset Core Plus Bond I  $                            300.00
PIMCO Income Instl     $1000  $                            700.00
total  $                        6,200.00
Notes: 1. Index fund is all time high, less contribution 
2. Put bond and REIT up to $1300
3. I still like to put at least 25% on growth equities
4. Diversify on equity location, now US stock is all time high, I put other countries as well
5. Plan to sell everything and move to Bond fund in 12 months.