<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Wenwei Xu on Medium]]></title>
        <description><![CDATA[Stories by Wenwei Xu on Medium]]></description>
        <link>https://medium.com/@xww0701?source=rss-1d033db03e1b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yXDWZZzAt4vkn3fRVWdwOA@2x.jpeg</url>
            <title>Stories by Wenwei Xu on Medium</title>
            <link>https://medium.com/@xww0701?source=rss-1d033db03e1b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 08:15:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@xww0701/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[This City is a “Value Valley” — Why Seattle Real Estate is Currently 20% Off]]></title>
            <link>https://medium.com/@xww0701/this-city-is-a-value-valley-why-seattle-real-estate-is-currently-20-off-4318f3207a2e?source=rss-1d033db03e1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4318f3207a2e</guid>
            <category><![CDATA[housing-data-analysis]]></category>
            <category><![CDATA[seattle-real-estate]]></category>
            <category><![CDATA[real-estate-agent-seattle]]></category>
            <category><![CDATA[bellevue]]></category>
            <category><![CDATA[lynnwood-wa]]></category>
            <dc:creator><![CDATA[Wenwei Xu]]></dc:creator>
            <pubDate>Fri, 08 May 2026 17:14:37 GMT</pubDate>
            <atom:updated>2026-05-08T17:15:24.023Z</atom:updated>
            <content:encoded><![CDATA[<p>A Data-Driven Analysis of the Lag Between the Tech Surge and Housing Prices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4oIeJYO0O-On9z6B1WfBuw.png" /></figure><p>As of May 2026, the Seattle market is living in a state of deep divergence. If you look at the Nasdaq-100 (<strong>QQQ</strong>), you see a massive wealth expansion: in just two months, the index rocketed from $558 in March to <strong>$708</strong> — a 26<strong>% surge</strong>. For the tech-heavy workforce of the Pacific Northwest, RSU balances have ballooned almost overnight. Historically, this kind of wealth creation is the primary fuel for a housing moonshot.</p><p>But here is the reality: <strong>Real estate is a lagging indicator.</strong> While tech wealth is already in the stratosphere, housing prices are still tethered to the reality of 6%+ interest rates.</p><p>By benchmarking current prices against the <strong>2022 Historical Peak</strong>, my latest data modeling has uncovered a rare “20% Discount” window that is likely closing fast.</p><h3>1. The “Safety Margin”: Who is Still at a Discount?</h3><p>In investment, we look for a “Margin of Safety.” When we use the 2022 peak as our anchor, we find that several core Seattle hubs are trading significantly below their all-time highs:</p><ul><li><strong>Bothell (74% of Peak):</strong> The undisputed <strong>“Value Valley.”</strong> Even with recent activity, Bothell is currently trading at just 74% of its 2022 peak — it is actually cheaper now than it was during the 2022 market trough.</li><li><strong>Kenmore (79% of Peak):</strong> A prime example of undervalued land equity.</li><li><strong>Kirkland (80% of Peak):</strong> Even in the high-end Eastside, we are seeing a 20% pullback from the peak frenzy.</li><li><strong>Redmond (81% of Peak) &amp; Bellevue (82% of Peak):</strong> These core tech hubs are showing strong resilience but remain within a rational price bracket compared to the 2022 mania.</li></ul><p>Interestingly, inventory in <strong>Bellevue</strong> has climbed to 302 units — a 10-year high. For the first time in a decade, buyers in these elite zip codes have genuine leverage.</p><h3>2. The Lynnwood Anomaly: Realized Momentum</h3><p>While Bothell represents the deep value play, <strong>Lynnwood</strong> has emerged as the region’s growth engine.</p><p>While most cities are still fighting to reach last year’s price levels, Lynnwood is the outlier: <strong>it is up 4% year-over-year and 5% month-over-year.</strong> The logic is simple: the Light Rail extension, the opening of T&amp;T Supermarket, and the arrival of Whole Foods have transformed this suburb into a legitimate “Urban-Suburban” hub. At <strong>85% of its 2022 peak</strong>, it is still a deal, but the window is narrowing quickly.</p><h3>3. The Great Exit: A Window for Condo Owners</h3><p>For homeowners looking to “trade up,” May 2026 has flashed a major green light: <strong>The Condo and Townhouse markets have regained liquidity.</strong></p><p>Just months ago, the average <strong>Days on Market (DOM)</strong> for a condo was a stagnant 75 days. Today, that has plummeted to <strong>14–23 days</strong>.</p><p>This return of liquidity is a classic sign of a market floor. If you have been waiting to sell an entry-level property to pivot into a “80% off” single-family home in the Eastside, this is your liquidity event.</p><h3>4. Conclusion: Rationality in a Fast Market</h3><p>Headlines often scream about “homes pending in 6 days,” scaring buyers into thinking the “blind bidding” wars of 2021 are back. The data tells a different story.</p><p>In Bellevue, <strong>51% of buyers are still successfully keeping their Loan Contingencies</strong>, and 21% are keeping their Inspection protections. In Lynnwood, <strong>85%</strong> of buyers are keeping their loan protection.</p><p><strong>My Takeaway:</strong> The stock market is already in the clouds; the housing market is still on the ground. This lag represents the last “safe distance” of this cycle. We aren’t seeing a bubble; we are seeing a disciplined market where those who understand the data can still find massive value in the “80% discount” zones.</p><p>Real estate isn’t about gambling on the future — it’s about securing the underlying logic of the land today.</p><p><em>If you are tracking a specific property and want a deep-dive ROI analysis or a structural risk assessment, feel free to reach out. I apply a scientist’s rigor to every deal to ensure my clients buy right, not just buy fast.</em></p><p><strong>#RealEstate #SeattleHousing #MarketAnalysis #Investing #DataScience #Bothell #Bellevue #HousingMarket2026</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4318f3207a2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[哪座小城是“价值洼地”？ — — 2026 西雅图房市深度复盘]]></title>
            <link>https://medium.com/@xww0701/%E5%93%AA%E5%BA%A7%E5%B0%8F%E5%9F%8E%E6%98%AF-%E4%BB%B7%E5%80%BC%E6%B4%BC%E5%9C%B0-2026-%E8%A5%BF%E9%9B%85%E5%9B%BE%E6%88%BF%E5%B8%82%E6%B7%B1%E5%BA%A6%E5%A4%8D%E7%9B%98-1dc7279e1940?source=rss-1d033db03e1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1dc7279e1940</guid>
            <category><![CDATA[房产数据分析]]></category>
            <category><![CDATA[西雅图买房]]></category>
            <category><![CDATA[seattle-real-estate]]></category>
            <category><![CDATA[real-estate-agent-seattle]]></category>
            <category><![CDATA[real-estate]]></category>
            <dc:creator><![CDATA[Wenwei Xu]]></dc:creator>
            <pubDate>Fri, 08 May 2026 17:10:47 GMT</pubDate>
            <atom:updated>2026-05-08T17:10:47.165Z</atom:updated>
            <content:encoded><![CDATA[<h3>哪座小城是“价值洼地”？ — — 2026 西雅图房市深度复盘：为什么科技股狂飙，房价却还在“打 8 折”？</h3><p>在西雅图做房产分析，最忌讳的是“凭感觉”。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KhkIZYMbc6N0Ui-Ly98GFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jG5PyAf-MAlymodpoSnzfA.png" /></figure><p>2026 年 5 月，我们正处于一个极度割裂的市场周期。如果你盯着纳斯达克 100 指数（QQQ），你会看到一幅波澜壮阔的画卷：短短两个月，QQQ 从 3 月的 $558 强力反弹至 <strong>$708</strong>，涨幅高达 26<strong>%</strong>。大厂员工的 RSU 资产在短时间内迅速膨胀，这种财富效应在历史上往往直接对应着房价的暴涨。</p><p>但现实是：<strong>房地产市场的反应存在显著的滞后性。</strong> 尽管科技财富回升，但受限于依然处于高位的利率，西雅图房市并没有出现 2021 年那种盲目“齐飞”的场面。作为一名习惯用数据建模的经纪人，我通过对标 <strong>2022 年房价峰值</strong> 发现，西雅图目前竟然存在几个极其罕见的“八折”窗口期。</p><h3>1. 寻找“安全边际”：谁在打 8 折？</h3><p>在投资领域，我们追求的是“安全边际”。如果以 2022 年的历史高点为锚点，西雅图东区和北区的几个核心城市目前表现出了极强的韧性，但也留下了巨大的估值缺口：</p><ul><li><strong>Bothell (74% of Peak):</strong> 这是目前西雅图当之无愧的 <strong>“价值洼地”</strong>。即便经历了几个月的反弹，Bothell 目前的房价仅为 2022 年峰值的 74%，甚至比该城市在 2022 年低谷时还要便宜。</li><li><strong>Kenmore (79% of Peak):</strong> 地权价值被低估的典型。</li><li><strong>Kirkland (80% of Peak):</strong> 即便在东区顶尖地段，依然存在 20% 的回调空间。</li><li><strong>Redmond (81% of Peak) &amp; Bellevue (82% of Peak):</strong> 核心区域的独栋（SFH）表现稳健，但与疯狂的 2022 年相比，依然处于理性的价格区间。</li></ul><p>目前 Bellevue 的库存量（302 套）达到了过去 10 年的最高点。这意味着买家在这些核心区域不再是被动“被挑选”，而是拥有了十年一遇的议价筹码。</p><h3>2. 区域分化的异数：Lynnwood 的强劲动力</h3><p>如果说 Bothell 是价值洼地，那么 <strong>Lynnwood</strong> 就是目前的增长先锋。</p><p>在大多数城市还在追赶去年同期价格时，Lynnwood 成了唯一的异数：<strong>它不仅比去年同期上涨了 4%，较上月也上涨了 5%。</strong> 逻辑很简单：轻轨延线的兑现、大统华与 Whole Foods 的入驻，让这个曾经的蓝领社区完成了向“城市副中心”的转型。虽然它目前仍处于 2022 年峰值的 <strong>85%</strong>，但其上升势头在整个 King County 和 Snohomish County 都是最强劲的。</p><h3>3. 流动性回归：Condo 业主的退出窗口</h3><p>对于想要“卖小换大”的业主来说，5 月份发出了一个非常强烈的信号：<strong>公寓（Condo）和联排（Townhouse）卖得动了。</strong></p><p>就在几个月前，Condo 在市场上的平均成交天数（DOM）还是令人绝望的 75 天。而 5 月的数据显示，这一数字已经缩短到了 <strong>14–23 天</strong>。</p><p>这种流动性的回归是市场触底回升的典型标志。如果你正计划卖掉手中的入门级房产去置换前述那些“八折”地段的独栋，现在的市场环境提供了极佳的窗口期。</p><h3>4. 结论：科学家思维下的理性决策</h3><p>很多人被“独栋平均一周 Pending”的头条新闻吓到，认为市场又回到了疯狂竞价的年代。但数据反映出的真相并非如此：</p><p>在 Bellevue，依然有 <strong>51% 的买家成功保留了贷款保护条款（Loan Contingency）</strong>；而在 Lynnwood，这一比例高达 <strong>85%</strong>。这说明买家虽然动作快，但逻辑非常清晰。</p><p><strong>文伟的真心话：</strong> 股价已经在天上，房价还在地上。科技财富的溢出效应传导到房市通常需要几个月的时间。目前 Bothell、Redmond 和 Bellevue 的价格相比峰值依然有较大的折扣，这可能是本轮周期中最后的“安全距离”。</p><p>买房不是为了赌博，而是为了在那块稀缺的土地上锁死长期的确定性。</p><p><em>如果您正在关注西雅图某套具体的房产，但不确定其真实的 ROI 或潜在硬伤，欢迎私信联系我。我会用我的数据模型为您提供一份深度的复盘分析，帮您买对，不买贵。</em></p><p><strong>#RealEstate #SeattleHousing #MarketAnalysis #Investing #DataScience #Bothell #Bellevue</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dc7279e1940" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seattle Housing Market Trends in October: Will Prices Drop Next Year?]]></title>
            <link>https://medium.com/@xww0701/seattle-housing-market-trends-in-october-will-prices-drop-next-year-d3c7e949e6f4?source=rss-1d033db03e1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3c7e949e6f4</guid>
            <dc:creator><![CDATA[Wenwei Xu]]></dc:creator>
            <pubDate>Fri, 18 Oct 2024 16:41:40 GMT</pubDate>
            <atom:updated>2024-10-18T16:41:40.978Z</atom:updated>
            <content:encoded><![CDATA[<p>As we head deeper into the fall season, Seattle’s real estate market is showing some interesting dynamics. In this post, I’ll break down the current trends, discuss pricing, inventory levels, and offer some thoughts on where things might be headed next year.</p><h4>1. Interest Rates and Housing Prices: A Continued Decline</h4><p>Recently, interest rates have fluctuated, but overall, we are seeing a continuation of the typical fall and winter price declines in Seattle’s housing market. In King County, for example, the median home price dropped by 2% compared to last month. If you’re looking at areas like <strong>Bellevue, Redmond, Kenmore, Issaquah</strong>, and <strong>Sammamish</strong>, prices are currently about <strong>20% lower than their 2022 peak</strong>. This trend reflects a more significant correction from the highs of the market frenzy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sJJI2IPlFII5-lUCRUXoPg.png" /></figure><h4>2. How Long Will Current Inventory Last?</h4><p>If no new homes come onto the market, how long will it take for the current inventory to be absorbed?</p><ul><li><strong>Bellevue</strong>: Single-family homes (SFH) will take around <strong>1.7 months</strong> to sell out, while condos will take about <strong>4 months</strong>.</li><li><strong>Seattle</strong>: Single-family homes will take <strong>3.4 months</strong> to clear out, and condos about <strong>5.5 months</strong>.</li></ul><p>The <strong>Eastside</strong> is generally more competitive, with homes selling faster, while the <strong>Westside</strong> is slower. If you’re looking for a deal, now might be a great time to negotiate for a condo or a property on the Westside. For context, during the height of the market, inventory for single-family homes in Bellevue was less than a month — so the current market is much more favorable for buyers.</p><h4>3. Price Adjustments for Single-Family Homes in Bellevue</h4><p>Here’s how homes are being priced in Bellevue:</p><ul><li><strong>34%</strong> of homes are sold above asking price.</li><li><strong>21%</strong> sell at the listed price.</li><li><strong>45%</strong> sell for below asking price.</li></ul><p>The hottest 10% of homes will go for at least <strong>7% above</strong> asking, while the least popular 10% are being discounted by <strong>7% or more</strong>.</p><h4>4. Seattle’s Price Adjustment Trends</h4><p>Seattle is seeing a similar trend:</p><ul><li><strong>32%</strong> of homes sell above asking.</li><li><strong>25%</strong> sell at asking.</li><li><strong>43%</strong> are selling below asking price.</li></ul><h4>5. Median Prices for Single-Family Homes by Area</h4><p>Here’s a snapshot of current median prices across various neighborhoods:</p><ul><li><strong>Bellevue</strong>: $1.8M</li><li><strong>Kirkland</strong>: $1.63M</li><li><strong>Redmond</strong>: $1.54M</li><li><strong>Sammamish</strong>: $1.63M</li><li><strong>Issaquah</strong>: $1.35M</li><li><strong>Kenmore</strong>: $1.15M</li><li><strong>Bothell</strong>: $1.05M</li><li><strong>Seattle</strong>: $940K</li><li><strong>Shoreline</strong>: $850K</li><li><strong>Edmonds</strong>: $1M</li><li><strong>Lynnwood</strong>: $800K</li><li><strong>Renton</strong>: $840K</li></ul><h4>6. Will Prices Drop Next Year?</h4><p>Seattle’s housing market, much like the Bay Area, is closely linked to the performance of tech stocks. The <strong>QQQ</strong> (an index tracking major tech stocks) remains near historic highs, and I’ve already seen reports that the Bay Area’s housing market is heating up again, with bidding wars becoming more frequent. If this trend continues, Seattle could see a similar surge in the coming months.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZJWHHRaOMtaG_74RLg9u5Q.png" /></figure><p>I’m Wenwei, a Seattle real estate agent who loves diving into data. I’ll continue to share insights and trends to help you navigate this dynamic market. Stay tuned for more real estate tips!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3c7e949e6f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You can have $65 Million through 401(k)]]></title>
            <link>https://themakingofamillionaire.com/you-can-have-65-million-through-401-k-1340e8de5c8d?source=rss-1d033db03e1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1340e8de5c8d</guid>
            <category><![CDATA[retirement]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[401kplans]]></category>
            <category><![CDATA[401k]]></category>
            <dc:creator><![CDATA[Wenwei Xu]]></dc:creator>
            <pubDate>Sun, 28 Jun 2020 05:54:29 GMT</pubDate>
            <atom:updated>2020-06-28T12:42:28.047Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uN56VygNk2AfssMn_bI4Zw.jpeg" /></figure><p>Before we get started, how do you feel when you hear the word 401(k)? Do you feel uncomfortable, annoyed, or guilty? The truth is, most of us are constantly being told that we are not saving enough for our retirement. It just seems that whatever we do, we are just not doing enough, and that judgment makes us feel bad. According to Vanguard, more than half of the 401(k) accounts owned by retirees have less than $65 k in them, which I know is very different from the $65 Million number that I mentioned. So whatever emotions do you feel, or whatever circumstance you are in, I want to let you know that I understand. In this article, I don’t want to make comparisons or make anyone feel uncomfortable, but instead, I want to show you the possibilities and equip you with the knowledge that you can use at your own will. So let’s drop all the emotions, and get started.</p><h3>So 65 Million Dollars, how is it possible?</h3><p>I got this number when I was doing a simple projection of what will happen if one maximizes the 401(k) contribution from the start of one’s career. The steps are simple, which I will explain below and also share with you a <a href="https://docs.google.com/spreadsheets/d/1MEY0uSMV7RFcV6kGzL4-CbU1CMKyYzZUC1FcoTseyeA/edit?usp=sharing">downloadable Google Sheet</a> so you can play with it yourself. But the results are absolutely mind-blowing.</p><p>To do this calculation, we need to make some assumptions. Let’s call this theoretical person Adam. Adam starts to work at the age of 25 and starts to make the maximum contribution to his 401(k) account, which is $19,500 in 2020. Adam is lucky that his employer provides 50% match to his entire contribution, which makes his effective total contribution in 2020 $29,250. We assume the long term annual investment return rate is 7%, and the annual inflation rate is 3%. We project IRS will increase the maximum contribution amount basing on inflation rate. Here is how Adam’s first few years’ 401(k) investment looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*GdfHgRSqjp5sAp0CX4v-Hw.png" /><figcaption>Adam’s first few years 401(k) investment</figcaption></figure><p><strong>And at age 100, Adam have $65 Million through his 401 (k).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_e25JsWxaZiYuhjwaE6S5g.png" /></figure><p>We did not forget about withdraws from his account. In the curve above, we assumed that at the age of 65, Adam stops contribution, and starts to withdraw $168 k from his account. (The $168 k is calculated from today’s $50 k projected to 40 years later based on inflation.) The amazing part is that even with withdraws, the total amount does not decrease but continues to increase because the capital is so big.</p><h3>Everyone’s circumstance is different, but the possibilities are equally exciting!</h3><p><strong>What if you start to make full contributions at 35 years old instead of 25 years old? You can still have $11 Million.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YtAy00H14E28ZzOfHtwyAA.png" /><figcaption><strong>What if you start to make full contributions at 35 years old?</strong></figcaption></figure><p><strong>What if you stop working after working for 10 years? Your 401(k) investment can still support your retirement and have a balance of $6.6 Million at age 100.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HjzS3Zwh7g_2MEX90hxaKw.png" /><figcaption><strong>What if you stop working after working for 10 years?</strong></figcaption></figure><p><strong>What if you do not have a company match? You can still have $32.8 Million.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dBkKMT2KAtxlbyL_kc_utg.png" /><figcaption><strong>What if you do not have company match?</strong></figcaption></figure><p>There are many more possibilities. You can use the <a href="https://docs.google.com/spreadsheets/d/1MEY0uSMV7RFcV6kGzL4-CbU1CMKyYzZUC1FcoTseyeA/edit?usp=sharing">spreadsheet</a> to calculate for the specific scenarios for yourself.</p><h3>I know maximum contribution can be hard, but the tax benefits may make it easier.</h3><p>Let’s further make the following assumptions about Adam:</p><p><em>Annual Salary:$100,000;</em></p><p><em>Marital Status: Single;</em></p><p><em>Deduction:Standard ($12,000)</em></p><p>If Adam makes no contribution to 401(k), his maximum federal tax bracket is 24%, and the Federal Tax he has to pay is $16,130, making his effective tax rate 16.13%. However, if he makes the maximum contribution to 401(k) [$19,500], then his maximum federal tax bracket becomes 22%, and his Federal Tax becomes $10,928, dropping his effective tax rate to 10.98%.</p><p><strong>Making a maximum contribution of $19,500 will save Adam $5,202 in Federal Tax.</strong></p><h3>One last thing, Required Minimum Distribution (RMD)</h3><p>Basically, because you have not to pay any tax for the amount of your 401(k) account yet, when you are above 70 years old, IRS wants you to make withdraws and pay some tax even if you don’t need the money. Here is how it works: <a href="https://www.irs.gov/pub/irs-tege/uniform_rmd_wksht.pdf">IRS will ask you to make 3.65% distribution of your remaining 401 (k) balance, and this ratio increases every year until when you get 115 years old, and by then the ratio will be as high as 52.63%.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k1_Bk9N-P5gM3fF4VPVmig.png" /></figure><p>As a result, technically, you will not likely have $65 Million in your 401(k) due to RMD, because you will have to withdraw aggressively starting from age 70.</p><p>However, our previous calculation is still valid, because when you make the required withdraws, you may put the excessive amount into another investment after paying income tax for that year. So it is not like you are losing the money.</p><p>Plus, Roth 401(k) and Roth IRA takes after-tax contributions and are not subject to RMD, so you may split your contributions between 401(k) and Roth 401(k) [or Roth IRA]. This way, when you reach age 70, you will only be required to take RMD from 401(k), and you can keep you Roth 401(k) [Roth IRA] growing tax-free. In this blog, I cannot go into depth on the decision of before-tax contribution or after-tax contributions. Maybe it will be content for another post. Let me know if you are interested.</p><h3>Summary:</h3><p>(1) Maximizing 401 (k) contributions have huge investment potentials. The example person Adam can have $65 Million from his 401 (k) plan if he is single, and can have $130 Million if he is married and double the contribution with his spouse.</p><p>(2) Everyone’s circumstance is different. That is why I offered the <a href="https://docs.google.com/spreadsheets/d/1MEY0uSMV7RFcV6kGzL4-CbU1CMKyYzZUC1FcoTseyeA/edit?usp=sharing">downloadable spreadsheet</a> so that you can customize to your situation and calculate the numbers for yourself.</p><p>(3) I know making full contributions to 401(k) can be hard, but the tax benefit may change your opinion.</p><p>(4) You will be required to take minimum distributions from your 401(k) account starting from age 70, but that does not change the investment potentials for 401(k).</p><p>I hope my post gives you some new knowledge and inspires you to utilize 401(k) for your advantage. If nothing else, I hope my post provides some interesting thoughts. Let me know if you have any questions!</p><p><em>This article is for informational purposes only. It should not be considered Financial or Legal Advice. Not all information will be accurate. Consult a financial professional before making any significant financial decisions.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1340e8de5c8d" width="1" height="1" alt=""><hr><p><a href="https://themakingofamillionaire.com/you-can-have-65-million-through-401-k-1340e8de5c8d">You can have $65 Million through 401(k)</a> was originally published in <a href="https://themakingofamillionaire.com/">Making of a Millionaire</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Some experiments on optimizing Python performance and vectorization]]></title>
            <link>https://medium.com/@xww0701/some-experiments-on-optimizing-python-performance-and-vectorization-24278be24df5?source=rss-1d033db03e1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/24278be24df5</guid>
            <category><![CDATA[vectorization]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Wenwei Xu]]></dc:creator>
            <pubDate>Wed, 19 Feb 2020 22:52:46 GMT</pubDate>
            <atom:updated>2020-09-03T05:28:48.694Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why is Python slower than MATLAB?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*GXc_BcXNVaEoDuEHvAWeUw.png" /></figure><p><strong>Python by default is not fast, and looping through something can be especially slow.</strong></p><p>This can be demonstrated in the following experiment, where we loop through 10,000 by 10,000 and sum up two inputs:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6844fe7249d26cbf3e44e696a5b0ab46/href">https://medium.com/media/6844fe7249d26cbf3e44e696a5b0ab46/href</a></iframe><p>And even MATLAB can be much faster:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/af529dbee90d1424d9a441cd7b1050ec/href">https://medium.com/media/af529dbee90d1424d9a441cd7b1050ec/href</a></iframe><p><strong>To make above Python code run faster, we can vectorize the variables and functions, and use libraries like numpy. Because the calculation we are doing is only summation, the code can simply be:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/121e7f266d9e8828aa22614fd7800551/href">https://medium.com/media/121e7f266d9e8828aa22614fd7800551/href</a></iframe><p><strong>We should do vector level manipulations as much as possible, which will guarantee to give us faster computation speed than loops.</strong></p><p>Sometimes it is not possible or not easy to directly write out vector level manipulation, maybe because we are using a function written by others, and the logic inside is too complicated to be rewritten at vector level.</p><p>In such situation, we may be inclined to try to vectorize functions using tools like numpy.vectorize. However, numpy.vectorize turns out to be a huge diappointment to me.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/61896a19b636f7026bd1df816b34715e/href">https://medium.com/media/61896a19b636f7026bd1df816b34715e/href</a></iframe><p>It turns out that numpy.vectorize do not help the performance at all, which is confirmed on the <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.vectorize.html">documentation</a> as “ <em>The </em><a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.vectorize.html#numpy.vectorize"><strong><em>vectorize</em></strong></a><em> function is provided primarily for convenience, not for performance. The implementation is essentially a for loop.</em>”</p><p>But why numpy.vectorize is so much slower than the for loop? That’s certainly odd.</p><p>In summary, we showed some experiments to demonstrate how Python can be slow, and MATLAB can be faster than Python in certain situations. We also tried out numpy.vectorize to vectorize functions in Python, and confirmed that numpy.vectorize is useless. We conclude that one should write vector level manipulation in Python as much as possible for better performance.</p><p>If you have any comments or suggestions, feel free to let me know!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24278be24df5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hometown’s Willow Tree]]></title>
            <link>https://medium.com/@xww0701/the-hometowns-willow-tree-f553a15d4c7f?source=rss-1d033db03e1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f553a15d4c7f</guid>
            <category><![CDATA[toastmasters]]></category>
            <category><![CDATA[china]]></category>
            <category><![CDATA[hometown]]></category>
            <category><![CDATA[farewell]]></category>
            <category><![CDATA[storytelling]]></category>
            <dc:creator><![CDATA[Wenwei Xu]]></dc:creator>
            <pubDate>Fri, 31 Jan 2020 01:16:51 GMT</pubDate>
            <atom:updated>2020-01-31T01:54:08.724Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Toastmaster Storytelling Manual, Project #4, The Touching Story</strong></p><p>Immediately after graduating from middle school at 14 years old, my dad got a new job: manure picker — he needed to pick up litters from cattle and goats on the road, to fertilize the farms owned by the People’s commune.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FcQmj9mWKKw7rWNTicR3vg.jpeg" /></figure><p>This was the 1970s in China. Only few students in my dad’s class could get the chance to go to high school, and he was certainly not the privileged one. At home he had already heard his parents constantly complaining the difficulty of life in the commune. Dad’s older brother was born deaf. Dad’s mother, my grandma was a very short and slim woman with foot-binding and could not do any farm work. Life was almost hopeless, except for one hope —The family had been talking about sending my dad to the city of Nanjing to study medicine from his uncle, who was a successful Chinese medicine doctor.</p><p>Nanjing, which means “south capital” (corresponding to Beijing means “north capital”), is a few hundred miles south of dad’s hometown. The climate there is a lot warmer, and the region is famous for producing the best fish and rice. The lower Yangtze River has been the most beautiful and prosperous region of China throughout history, at least that’s what dad’s textbooks said. Dad was very excited about his upcoming trip, and everyday after picking manures he came home to talk about his upcoming trip to the south. He dreamed about living in a city, and being able to send money to support parents and siblings.</p><p>That day finally came. Dad had to get up very early and leave secretly, because human migration had been forbidden in China at the time. Grandma insisted that she would walk 2 miles with dad to the main road, before sending him to take a train. On the way, dad was sad to leave everyone behind, but also a little excited to travel south — he had never taken the train before. Grandma was not saying a word, and when dad looked at her, he noticed her eyes welled with tears. They finally arrived at the main road. This was it. This was where dad would depart.</p><p>The land was barren except there was a big willow tree near them. The air was dry and cold. Before grandma could speak, tears streamed down her face. She said: “Son, if you encounter difficulties, don’t blame your mom for being so cruel. I want you to have a better future. I have no other choices.” Dad saw the fear in grandma’s eyes, and he started to realize that his trip to the south may not be that easy. He hold his tears, and said: “Don’t cry, mom. I will be a doctor and become very rich and successful. I will make our family respectable and make you proud.” Dad turned around and set out on his journey, with tears dropping on the dirt road. Dad walked further and further, he looked back and grandma was still under the big willow tree, until he can no longer see the tree.</p><p>As the train moved southward, life started to punch on dad’s face with one event after another. When dad arrived, he realized that his uncle did not live in the city of Nanjing, but in a rural community 50 miles north of the city, where 90% of the residents were refugees that fled from the north, just like him. His uncle was in prison because he had served as a doctor in the Nationalist army before the end of the civil war. Dad did not study medicine, but instead took a new job to collect vegetation to feed the pigs at the local commune.</p><p>Eventually dad studied medicine for a few years, and married my mom. They gave birth to 4 kids. With so many kids, dad could not make ends meet. To become rich and successful, he quit Chinese medicine. He was willing to try anything to make money, even if they were dangerous tasks. He sold firecrackers door-to-door. He later learnt to install telephones in the 90s. One time he was standing on a telephone pole, and somehow messed up the electric wires and the telephone wires. He got an electric shock and was glued to the pole by the electric waves. Luckily someone past by, and he survived the accident.</p><p>Years past by. Before dad fulfilled his dream, grandma passed away in the 2000s. It was after grandma’s funeral, I accompanied dad to visit the big willow tree where dad waved farewell with grandma.</p><p>The big, great willow tree — where we separated, was also where we started the new journey. This was where new dreams were formed, no matter fulfilled or not. Do you remember where did you started for your current journey, and why did you set off? If you are willing, I would love to hear it. I also just want to let you know: you are already doing so well and you are successful, even if you thought you have failed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f553a15d4c7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[In the Woods of Alaska]]></title>
            <link>https://medium.com/@xww0701/in-the-woods-of-alaska-d162d92ae106?source=rss-1d033db03e1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d162d92ae106</guid>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[toastmasters]]></category>
            <dc:creator><![CDATA[Wenwei Xu]]></dc:creator>
            <pubDate>Fri, 25 Oct 2019 23:53:33 GMT</pubDate>
            <atom:updated>2019-10-25T23:53:33.434Z</atom:updated>
            <content:encoded><![CDATA[<p>Toastmasters Storytelling Manual, Project #3, The Moral of the Story</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wv8er_vyJfIvWBMsJU74RA.jpeg" /></figure><p><strong>Introduction</strong></p><p>Once I was on a 3-hour bus ride from Seattle to Portland. It was a long ride, so I started to ask table topic question with the guy sitting next to me. We are clearly not short of time, so I asked: “Matt, which event changed your life the most?” Matt, the guy that I just got to know, gave me the following respond:</p><p><strong>Body</strong></p><p>After graduating from high school, Matt decided to work as a logger in Alaska during the summer months to save up for college tuition. With the abundance of summer daylight, Matt can work for 14 hours a day and make a lot of money over a summer. However as an 18 years old candy-ass, Matt was extremely afraid of wild animals, in particular wolves. He sometimes could hear them howling in the distance, and Matt was always concerned of wolf attack. As a result, he tried to stay awake as much as possible and always kept a weapon for self-defense at night.</p><p>One day he entered a new area of the forest, and he heard some strange animal sound — so close to him. He couldn’t believe his eye — 20 feet away, there was a giant timber wolf, looking right into his eyes. Before Matt could respond, he also noticed that the wolf’s back lag was chained to a trap and was bleeding. The wolf continued looking into Matt’s eyes with her pale blue eyes. Her fur was absolutely beautiful and she looked harmless. If Matt did not do something, the wolf would die. However the wolf would not let Matt get close, and Matt did not want to risk being killed either. Matt decided to camp around a little bit, maybe he can convince the hunter to release the wolf.</p><p>1 day, 2 days, 3 days. Matt shared his food with the wolf, and talked gently to the wolf to soothe the suffering.</p><p>4 days, 5 days. The hunter never came back. Each time Matt tried to get closer to the wolf, the wolf made a threatening sound in her throat.</p><p>6 days, 7 days. Right when Matt almost give up any hope of gaining any trust from the wolf, one day after feeding, Matt seemed to see the wolf wagged her tail a little bit. Matt tried to get closer bit by bit towards the wolf.</p><p>9 days, 10 days. Matt finally could get close enough. His heart was in his mouth again. When he put his hand on the wolf’ s wounded leg, the wolf did not make any threatening move. Instead, she turned away and bite onto a dead wood. With the wolf’s corporation, Matt was able to release the trap and set the wolf free.</p><p>Before Matt could retrieve back to a safe distance, the wolf leaned forward, sniffed and licked Matt’s hand, and wagged her tail again. Moment later, the wolf crippled into the woods and disappeared.</p><p><strong>Moral</strong></p><p>That afternoon, Matt sat on a big rock, and all kinds of emotions flushed through his body. Under the warmth of the Alaskan summer sunlight, Matt gained a new sense of connectedness: If we can make a wild wild carnivore to lick our hands over the course of 10 days, why can’t we gain trust from another human being? Matt decided to show goodwill everywhere he goes, and only assumes good intentions when meeting someone. That, changed Matt’s life forever.</p><p>While I was still lost in my own thoughts, the bus arrived at its stop.I looked around on the busy streets in Downtown Portland. People walking by. All of them appeared so lovely, each with a unique story to be told, and none of them looked like they would bite.</p><p>I started to smile. At that moment, I realized that Matt’s story had changed my life forever as well.</p><p><strong>Appendix:</strong></p><p>The speech was given at Toast of the Town Toastmasters club on 10/24/2019, and won a “Best Speaker” award. I attached the ribbon and also drawing I used to visualize the story plots. I wonder if anyone else can understand my drawing…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h8IPbs6FUGJNEavCb-D2eg.jpeg" /></figure><p>Part of the wolf story comes from <a href="https://www.msn.com/en-us/lifestyle/lifestyle-buzz/this-hiker-saved-the-life-of-an-alaskan-timber-wolf%E2%80%944-years-later-the-wolf-still-remembered-him/ar-BBU55mU">a blog</a> I read. Part of the story comes from my real experience rescuing my dog from a wild animal trap several years ago.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d162d92ae106" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hackerrank Flipping Bits Python solution]]></title>
            <link>https://medium.com/@xww0701/hackerrank-flipping-bits-python-solution-16eaa8b88264?source=rss-1d033db03e1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/16eaa8b88264</guid>
            <category><![CDATA[hackerrank]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Wenwei Xu]]></dc:creator>
            <pubDate>Tue, 03 Sep 2019 03:36:49 GMT</pubDate>
            <atom:updated>2019-09-03T03:36:49.077Z</atom:updated>
            <content:encoded><![CDATA[<p>Flip all the bits and print the result as an unsigned integer.</p><p>Link: <a href="https://www.hackerrank.com/challenges/flipping-bits/problem">https://www.hackerrank.com/challenges/flipping-bits/problem</a></p><h3>Thinking process:</h3><p>(1) How to write binary form?</p><p><em>example: Divide number by 2**16, the result is the first bit. As we write that bit, minus n by 2**16 so that we keep reducing the number.</em></p><p>(2) as we write, we can flip the 1 and 0 and add them up.</p><h3>Python 3 Solution:</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f8b20c95f7e4b5b25515274837a6d92/href">https://medium.com/media/9f8b20c95f7e4b5b25515274837a6d92/href</a></iframe><h3>Complexity:</h3><p>time: 0(n)</p><p>memory: o(1)</p><p>Comments and suggestions welcome!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16eaa8b88264" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hackerrank Minimum Time Required Python solution]]></title>
            <link>https://medium.com/@xww0701/hackerrank-minimum-time-required-python-solution-6fe3c6c07644?source=rss-1d033db03e1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fe3c6c07644</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[hackerrank]]></category>
            <dc:creator><![CDATA[Wenwei Xu]]></dc:creator>
            <pubDate>Tue, 03 Sep 2019 02:53:56 GMT</pubDate>
            <atom:updated>2019-09-03T02:53:56.136Z</atom:updated>
            <content:encoded><![CDATA[<p>Link:<a href="https://www.hackerrank.com/challenges/minimum-time-required/problem">https://www.hackerrank.com/challenges/minimum-time-required/problem</a></p><h3>Thinking process:</h3><p>I first tried making a best guess using the average efficiency of the machines, and gradually adding one day at a time. This still resulted in a runtime error.</p><p>To do better than starting off with the best search, we will need to do binary search. I set the the best guess to lower boundary pointer, and set the upper boundary to lower boundary plus the slowest machine’s time. When the two boundaries meeting, it means we have found the minimum time.</p><p>I used one trick by setting lower boundary to the best guess minus 1, so that we will not start of the lower boundary as our best answer. In my code below, we always return the upper boundary as the best solution.</p><h3>Python 3 Solution:</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1c5e9ae8694e510baa442a572e564207/href">https://medium.com/media/1c5e9ae8694e510baa442a572e564207/href</a></iframe><h3>Complexity:</h3><p>time: 0(mlogt) where m is the number of machines, and t is maximum value of machines’ time.</p><p>memory: o(1)</p><p>Comments and suggestions welcome!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fe3c6c07644" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hackerrank Pairs Python solution]]></title>
            <link>https://medium.com/@xww0701/hackerrank-pairs-python-solution-20fb4ef6321d?source=rss-1d033db03e1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/20fb4ef6321d</guid>
            <category><![CDATA[hackerrank]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[interview-questions]]></category>
            <dc:creator><![CDATA[Wenwei Xu]]></dc:creator>
            <pubDate>Mon, 02 Sep 2019 23:23:19 GMT</pubDate>
            <atom:updated>2019-09-02T23:23:19.131Z</atom:updated>
            <content:encoded><![CDATA[<p>You will be given an array of integers and a target value k. Determine the number of pairs of array elements that have a difference equal to k.</p><p>Link: <a href="https://www.hackerrank.com/challenges/pairs/problem">https://www.hackerrank.com/challenges/pairs/problem</a></p><h3>Thinking process and complexity:</h3><p>We will create a dictionary to save the elements, while looking for pairs from the dictionary at the same time. This way, we are saving time O(n), but we do consume some memory O(n) for the dictionary.</p><p>Another idea is to sort the array, and then use two pointers moving in the same direction to find pairs. This way, we will only use O(1) memory, while the sorting will cost time O(nlogn).</p><h3>Python 3 Solution:</h3><p>Hash map solution:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7a1b58ceb51fec879463a58a15965781/href">https://medium.com/media/7a1b58ceb51fec879463a58a15965781/href</a></iframe><p>Two pointers solution:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3fd7205af9a52cda8dba1ee0b55764b1/href">https://medium.com/media/3fd7205af9a52cda8dba1ee0b55764b1/href</a></iframe><p>Comments and suggestions welcome!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20fb4ef6321d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>