<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>產業分析 &#8211; FinLab</title>
	<atom:link href="https://www.finlab.tw/tag/%E7%94%A2%E6%A5%AD%E5%88%86%E6%9E%90/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.finlab.tw</link>
	<description>深入淺出的量化投資，讓你在在茫茫股海中，找到專屬於自己的投資方法</description>
	<lastBuildDate>Fri, 07 Jul 2023 12:31:10 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.9</generator>

<image>
	<url>https://www.finlab.tw/wp-content/uploads/2020/07/favicon.png</url>
	<title>產業分析 &#8211; FinLab</title>
	<link>https://www.finlab.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">179699571</site>	<item>
		<title>美股探險記第4課:美股選股池分類器使用教學｜本益成長比最適合用在哪些產業？</title>
		<link>https://www.finlab.tw/us_stock_industry_peg/</link>
					<comments>https://www.finlab.tw/us_stock_industry_peg/#respond</comments>
		
		<dc:creator><![CDATA[Ben]]></dc:creator>
		<pubDate>Fri, 07 Jul 2023 03:49:18 +0000</pubDate>
				<category><![CDATA[VIP文章]]></category>
		<category><![CDATA[FinLab 量化平台]]></category>
		<category><![CDATA[Python新手教學]]></category>
		<category><![CDATA[股票策略]]></category>
		<category><![CDATA[PEG]]></category>
		<category><![CDATA[VIP限定]]></category>
		<category><![CDATA[產業分析]]></category>
		<category><![CDATA[美股]]></category>
		<guid isPermaLink="false">https://www.finlab.tw/?p=5424</guid>

					<description><![CDATA[美股該如何選股？如果你有實際開發過美股策略，會發現一件很奇怪的事，那就是台股有用的策略，在美股幾乎都失效。除了 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="has-medium-font-size">美股該如何選股？如果你有實際開發過美股策略，會發現一件很奇怪的事，那就是台股有用的策略，在美股幾乎都失效。除了高效率市場的因素，我想還有一個關鍵假設，那就是選股池的影響性。<br>我們知道每個產業適用的指標不同，像本益比指標可能就不適合在獲利起伏很大的行業，例如原物料、營造，而在獲利穩定比較高的產業較具指標意義。<br>如果沒縮小選股池，針對特定產業找出指標，那就像在大海撈針，會對基本面選股有很大的影響美國是全球最大的資本市場，上市交易的標地很多，達上萬檔，細產業也分散到上百個，不像台股集中在製造業與電子業，就算台股沒分類，也很容易找到通用全市場的指標，但美股直接全市場選股，很容易因產業一致性的缺乏，導致許多雜訊出來，例如挑本益比低於10倍的股票，在A產業偏低，但在B產業是偏高，不可混為一談。</p>



<figure class="wp-block-image"><img src="https://pineapple-centaur-13d.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F7215288f-c611-4162-8b08-4def11a666a9%2Fnewplot_(12).png?id=3c3e1f3c-9626-4a5c-8cba-dec340bc7a7c&amp;table=block&amp;spaceId=9ed484a1-504e-442b-b113-ec69267e5d7a&amp;width=2000&amp;userId=&amp;cache=v2" alt="https%3A%2F%2Fs3 us west 2.amazonaws.com%2Fsecure.notion static.com%2F7215288f c611 4162 8b08 4def11a666a9%2Fnewplot (12)" title="美股探險記第1課:為什麼要投資美股？ 5"/><figcaption>台股製造業數據</figcaption></figure>



<p class="has-medium-font-size">為解決選股池的問題，FinLab Package 在 0.4.5 的版本開發了<a href="https://doc.finlab.tw/reference/data/#finlab.data.us_universe" target="_blank" rel="noopener">美股選股池控制</a>的功能，利用短短的程式碼，就能對美股做不同層級的分類，接下來會向大家介紹如何使用此功能，並找出本益成長比最適合用在哪些產業？</p>



<h2>美股選股池分類</h2>



<p class="has-medium-font-size">此功能的用途在當呼叫&nbsp;<code>data.get</code>&nbsp;或是&nbsp;<code>data.indicator</code>&nbsp;時，返回美股產業相關類股。<br>和台股不同的地方在美股因標的範圍較大，有4個篩選變數可以控制，預設都是全選。<br>細節請見<a href="https://doc.finlab.tw/reference/data/#finlab.data.us_universe" target="_blank" rel="noopener">美股選股池控制</a>的功能。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="824" src="https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-上午8.31.30-1024x824.png" alt="截圖 2023 07 07 上午8.31.30" class="wp-image-5425" srcset="https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-上午8.31.30-1024x824.png 1024w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-上午8.31.30-300x241.png 300w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-上午8.31.30-768x618.png 768w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-上午8.31.30.png 1446w" sizes="(max-width: 1024px) 100vw, 1024px" title="美股探險記第4課:美股選股池分類器使用教學｜本益成長比最適合用在哪些產業？ 1"></figure>



<h3>參數說明</h3>



<ul class="has-medium-font-size"><li>market：證券種類，採取模糊比對。<br>若設定為 Common Stock ，則會篩選出美國國內上市企業與 ADR (海外存託憑證:外國公司在美國二次上市) 的普通股，不會選到一些流動性比較低的特別股。<br>若想排除 ADR，則可以設定為 Domestic Common Stock，就只會選到美國國內上市企業。</li><li>sector：產業主板塊，可視為比較粗略的產業分類。像是美股有許多高科技公司很吸引人，若想選定標的在科技股，將此參數設定為 Technology 。</li><li>industry：細產業，可視為比較細的產業分類，由於細產業很多，不方便一一列在文件上，我們可在<a href="https://ai.finlab.tw/database#%E7%BE%8E%E8%82%A1%E4%BC%81%E6%A5%AD%E5%9F%BA%E6%9C%AC%E8%B3%87%E8%A8%8A" target="_blank" rel="noopener">美股企業基本資訊</a>的資裡中找到資料，利用以下程式碼取得細產業索引： <code>set(data.get('us_tickers')['industry'])</code>。像是美股科技股中的軟體公司很吸引人，若想選定標的在軟體股，將此參數設定為 Software &#8211; Application 。</li><li>exchange：交易所。不同的交易所有不同的主流標地及規範。偏愛科技股或新創的，可選NASDAQ。<br>紐約證券交易所（New York Stock Exchange，簡稱NYSE）和納斯達克交易所（NASDAQ）是美國主要的證券交易所，它們在以下幾個方面存在差異：<br>1.交易模式：紐約交易所採用傳統的“交易員制”模式，即交易員在交易所的交易廳內進行股票交易。而納斯達克交易所採用電子交易系統，投資者通過計算機網絡進行交易。<br>2.有吸引力的上市公司類型：紐約交易所主要是大型傳統企業，如跨國公司和傳統產業公司。納斯達克交易所則更有吸引力的科技、生物技術和高成長性公司。<br>3.上市要求：紐約證券交易所對上市公司的要求較為嚴格，包括市值、財務狀況、歷史業績等方面的要求。納斯達克交易較多成長型公司，其上市要求相對較低。<br>4.交易時間：紐約交易所的交易時間為周一至週五上午9:30至下午4:00（美國東部時間）。納斯達克交易所的交易時間也是周一至週五上午9:30至下午4:00 :00，但還提供了一些延長交易時間的選項。<br>5.許多市場地位：紐約交易所是世界上最大、最多的股票交易所之一，吸引了許多大型企業和國際投資者。納斯達克交易所在科技股領域具有越來越大的影響力，吸引了新興市場科技公司和高科技投資者。</li></ul>



<h3>使用範例</h3>



<p class="has-medium-font-size">以下為幾個常用範例，幫助我們將資料限縮在特定範圍，限縮之後，就能針對本質較相近的股票做後續研究。</p>



<h3>限定在美股普通股中的科技類股</h3>



<pre class="wp-block-code"><code lang="python" class="language-python"><a href="https://doc.finlab.tw/reference/data/#__codelineno-0-1" target="_blank" rel="noopener"></a>with us_universe('Common Stock', ['Technology']):
<a href="https://doc.finlab.tw/reference/data/#__codelineno-0-2" target="_blank" rel="noopener"></a>    close_subset = data.get('us_price:close')
<a href="https://doc.finlab.tw/reference/data/#__codelineno-0-3" target="_blank" rel="noopener"></a>    print(close_subset)
</code></pre>



<figure class="wp-block-table has-medium-font-size"><table><thead><tr><th>date</th><th>AAOI</th><th>AAPL</th><th>..</th><th>ABCO</th><th>NVDA</th></tr></thead><tbody><tr><td>2017-01-03</td><td>39.65</td><td>38.3</td><td>..</td><td>7.8</td><td>17.55</td></tr><tr><td>2017-01-04</td><td>39.85</td><td>38.85</td><td>..</td><td>8.34</td><td>17.5</td></tr><tr><td>2017-01-05</td><td>39.25</td><td>38.1</td><td>..</td><td>8.25</td><td>17.3</td></tr><tr><td>2017-01-06</td><td>39</td><td>37.85</td><td>..</td><td>8.2</td><td>17.3</td></tr><tr><td>2017-01-09</td><td>38.2</td><td>37.2</td><td>..</td><td>7.88</td><td>16.6</td></tr></tbody></table></figure>



<h3>限定在美股特別股中的基礎原物料和能源類股</h3>



<pre class="wp-block-code"><code lang="python" class="language-python"><a href="https://doc.finlab.tw/reference/data/#__codelineno-1-1" target="_blank" rel="noopener"></a>with data.us_universe('Preferred Stock', ['Basic Materials','Energy']):
<a href="https://doc.finlab.tw/reference/data/#__codelineno-1-2" target="_blank" rel="noopener"></a>    close_subset = data.get('us_price:close')
<a href="https://doc.finlab.tw/reference/data/#__codelineno-1-3" target="_blank" rel="noopener"></a>    print(close_subset)
</code></pre>



<figure class="wp-block-table has-medium-font-size"><table><thead><tr><th>date</th><th>AEUA</th><th>ALIN-PA</th><th>..</th><th>ALIN-PB</th><th>ALIN-PE</th></tr></thead><tbody><tr><td>2017-01-03</td><td>39.65</td><td>38.3</td><td>..</td><td>7.8</td><td>17.55</td></tr><tr><td>2017-01-04</td><td>39.85</td><td>38.85</td><td>..</td><td>8.34</td><td>17.5</td></tr><tr><td>2017-01-05</td><td>39.25</td><td>38.1</td><td>..</td><td>8.25</td><td>17.3</td></tr><tr><td>2017-01-06</td><td>39</td><td>37.85</td><td>..</td><td>8.2</td><td>17.3</td></tr><tr><td>2017-01-09</td><td>38.2</td><td>37.2</td><td>..</td><td>7.88</td><td>16.6</td></tr></tbody></table></figure>



<h3>限定在美股 NASDAQ 交易所普通股中的軟體類股</h3>



<pre class="wp-block-code"><code lang="python" class="language-python"><a href="https://doc.finlab.tw/reference/data/#__codelineno-2-1" target="_blank" rel="noopener"></a>with data.us_universe('Common Stock', industry='Software', exchange='NASDAQ'):
<a href="https://doc.finlab.tw/reference/data/#__codelineno-2-2" target="_blank" rel="noopener"></a>    close_subset = data.get('us_price:close')
<a href="https://doc.finlab.tw/reference/data/#__codelineno-2-3" target="_blank" rel="noopener"></a>    print(close_subset)
</code></pre>



<figure class="wp-block-table has-medium-font-size"><table><thead><tr><th>date</th><th>ACIW</th><th>ACVA</th><th>..</th><th>ZI</th><th>ZS</th></tr></thead><tbody><tr><td>2017-01-03</td><td>39.65</td><td>38.3</td><td>..</td><td>7.8</td><td>17.55</td></tr><tr><td>2017-01-04</td><td>39.85</td><td>38.85</td><td>..</td><td>8.34</td><td>17.5</td></tr><tr><td>2017-01-05</td><td>39.25</td><td>38.1</td><td>..</td><td>8.25</td><td>17.3</td></tr><tr><td>2017-01-06</td><td>39</td><td>37.85</td><td>..</td><td>8.2</td><td>17.3</td></tr><tr><td>2017-01-09</td><td>38.2</td><td>37.2</td><td>..</td><td>7.88</td><td>16.6</td></tr></tbody></table></figure>



<h3>檢視有哪些細產業可選擇</h3>



<pre class="wp-block-code"><code lang="python" class="language-python"><a href="https://doc.finlab.tw/reference/data/#__codelineno-3-1" target="_blank" rel="noopener"></a>print(set(data.get('us_tickers')['industry']))
</code></pre>



<pre class="wp-block-code"><code class=""><a href="https://doc.finlab.tw/reference/data/#__codelineno-4-1" target="_blank" rel="noopener"></a>{'Advertising Agencies',
<a href="https://doc.finlab.tw/reference/data/#__codelineno-4-2" target="_blank" rel="noopener"></a> 'Aerospace &amp; Defense',
<a href="https://doc.finlab.tw/reference/data/#__codelineno-4-3" target="_blank" rel="noopener"></a> 'Agricultural Inputs',
<a href="https://doc.finlab.tw/reference/data/#__codelineno-4-4" target="_blank" rel="noopener"></a> 'Airlines',
<a href="https://doc.finlab.tw/reference/data/#__codelineno-4-5" target="_blank" rel="noopener"></a> 'Airports &amp; Air Services',
<a href="https://doc.finlab.tw/reference/data/#__codelineno-4-6" target="_blank" rel="noopener"></a> 'Aluminum',
<a href="https://doc.finlab.tw/reference/data/#__codelineno-4-7" target="_blank" rel="noopener"></a> ...}</code></pre>



<h2><span style="font-size: 49.4px;">本益成長比最適合用在哪些產業？</span></h2>



<h3>全市場回測</h3>



<p class="has-medium-font-size">我們來寫一個簡單的本益成長比(PEG)當範例，條件說明如下</p>



<ul class="has-medium-font-size"><li>本益比 &gt; 0：公司近一年獲利要是正數</li><li>營業利益成長率 &gt; 20：公司的獲利能力具一定水準，不是低利潤產業</li><li>營業利益成長率 &gt; 營收成長率：本業獲利成長大於營收成長，代表公司的銷貨是重質不重量。</li><li>篩選出來後，用本益成長比做排序選出本益成長比最低的前10名，若您不了解本益成長比的定義，可參考這篇文章「<a href="https://www.finlab.tw/finlab-tw-stock-peg-strategy/">進化後的本益比｜本益成長比選股策略</a>」。</li><li>每週再平衡。</li><li>停損為10%。<br></li></ul>



<h3>程式碼</h3>



<pre class="wp-block-code"><code lang="python" class="language-python">from finlab import data
from finlab.backtest import sim

本益比 = data.get('us_daily_metrics_all:pe')
營收= data.get('us_fundamental_all:revenue')
營業利益 = data.get('us_fundamental_all:opinc')

def 成長率(s):
    return ((s-s.shift(4)) / s.shift(4).abs()) * 100

營收成長率 = 成長率(營收)
營業利益成長率 = 成長率(營業利益)
peg = (本益比/營業利益成長率)

cond1 = 本益比 &gt; 0
cond2 = 營業利益成長率 &gt; 20
cond3 = 營業利益成長率 &gt; 營收成長率

cond_all = cond1 &amp; cond2 &amp; cond3
position = peg*cond_all
position = position[position &gt; 0].is_smallest(10)

report = sim(resample='W', position=position, fee_ratio=0, tax_ratio=0, stop_loss=0.1, name='美股本益成長比')
report.display()</code></pre>



<h3>回測結果</h3>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="536" src="https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.06.34-1024x536.png" alt="截圖 2023 07 07 下午8.06.34" class="wp-image-5438" srcset="https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.06.34-1024x536.png 1024w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.06.34-300x157.png 300w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.06.34-768x402.png 768w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.06.34-1536x804.png 1536w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.06.34.png 1930w" sizes="(max-width: 1024px) 100vw, 1024px" title="美股探險記第4課:美股選股池分類器使用教學｜本益成長比最適合用在哪些產業？ 2"></figure>



<p class="has-medium-font-size">以這麼簡單的條件而言，發現效果相當不錯，接下來我們用選股池分類器來針對不同的板塊做回測。</p>



<h2>板塊分組回測</h2>



<p class="has-medium-font-size">將不同的板塊名稱輸入進選股池分類器，執行迴圈。並使用「<a href="https://doc.finlab.tw/reference/optimize/#finlab.optimize.combinations.ReportCollection" target="_blank" rel="noopener">回測組合比較報告</a>」的功能來比較不同板塊的回測結果。</p>



<h3>程式碼</h3>



<pre class="wp-block-code"><code lang="python" class="language-python">from finlab import data
from finlab.backtest import sim
from finlab.optimize.combinations import ReportCollection

dataset = {}

for ind in ['Basic Materials','Communication Services','Consumer Cyclical','Consumer Defensive','Energy','Financial Services','Healthcare','Industrials','Real Estate','Technology','Utilities']:
    with data.us_universe(sector=ind):

        本益比 = data.get('us_daily_metrics:pe')
        營收= data.get('us_fundamental:revenue')
        營業利益 = data.get('us_fundamental:opinc')


        def 成長率(s):
            return ((s-s.shift(4)) / s.shift(4).abs()) * 100

        營收成長率 = 成長率(營收)
        營業利益成長率 = 成長率(營業利益)
        peg = (本益比/營業利益成長率)

        cond1 = 本益比 > 0
        cond2 = 營業利益成長率 > 20
        cond3 = 營業利益成長率 > 營收成長率

        cond_all = cond1 &amp; cond2 &amp; cond3
        position = peg*cond_all
        position = position[position > 0].is_smallest(10)

        report = sim(resample='W', position=position, fee_ratio=0, tax_ratio=0, stop_loss=0.1, name='美股本益成長比', upload=False)
        dataset[ind] = report


indicators=['daily_mean','daily_sharpe','max_drawdown']
report_collection = ReportCollection(dataset)
# 策略分組指標報告
report_collection.plot_creturns().show()
report_collection.plot_stats('bar',indicators=indicators).show()
report_collection.plot_stats('heatmap',indicators=indicators)</code></pre>



<h3>回測結果</h3>



<p class="has-medium-font-size">可以發現「科技股」的報酬率一支獨秀，報酬率的前3名板塊與後3名的差距非常大。<br>綜合評分以「報酬率、夏普率、最大回撤幅度」分級平均計算，前3名依序是「<strong>Consumer Cyclical</strong>、<strong>Financial Services</strong>、<strong>Technology</strong>」。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="521" src="https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午7.59.31-1024x521.png" alt="截圖 2023 07 07 下午7.59.31" class="wp-image-5439" srcset="https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午7.59.31-1024x521.png 1024w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午7.59.31-300x153.png 300w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午7.59.31-768x391.png 768w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午7.59.31-1536x782.png 1536w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午7.59.31-2048x1042.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" title="美股探險記第4課:美股選股池分類器使用教學｜本益成長比最適合用在哪些產業？ 3"></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="926" height="1024" src="https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.08.57-926x1024.png" alt="截圖 2023 07 07 下午8.08.57" class="wp-image-5440" srcset="https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.08.57-926x1024.png 926w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.08.57-271x300.png 271w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.08.57-768x849.png 768w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.08.57-1389x1536.png 1389w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.08.57.png 1447w" sizes="(max-width: 926px) 100vw, 926px" title="美股探險記第4課:美股選股池分類器使用教學｜本益成長比最適合用在哪些產業？ 4"></figure>



<h2>最終策略</h2>



<p class="has-medium-font-size">將策略範圍的選股池限定在「<strong>Consumer Cyclical</strong>、<strong>Financial Services</strong>、<strong>Technology</strong>」這三個使用本益成長比策略表現較好的板塊，為什麼不要只限定在第一名的產業就好？原因在適當產業多元化，能避免過度集中在特定產業循環的風險，在產業逆風年，個股很難有表現，但如果有做產業分散，就比較有機會抵抗單一產業的逆風時刻。</p>



<h3>程式碼</h3>



<p class="has-medium-font-size">每個產業選10檔股票，再將這3個產業的選股結果合併。</p>



<pre class="wp-block-code"><code lang="python" class="language-python">from finlab import data
from finlab.backtest import sim
import pandas as pd

def sector_postion(sector):
    with data.us_universe(sector=sector):
        本益比 = data.get('us_daily_metrics:pe')
        營收= data.get('us_fundamental:revenue')
        營業利益 = data.get('us_fundamental:opinc')

        def 成長率(s):
            return ((s-s.shift(4)) / s.shift(4).abs()) * 100

        營收成長率 = 成長率(營收)
        營業利益成長率 = 成長率(營業利益)
        peg = (本益比/營業利益成長率)

        cond1 = 本益比 > 0
        cond2 = 營業利益成長率 > 20
        cond3 = 營業利益成長率 > 營收成長率

        cond_all = cond1 &amp; cond2 &amp; cond3
        position = peg*cond_all
        position = position[position > 0].is_smallest(10)
        return position


positions = pd.concat([sector_postion(sector) for sector in ['Consumer Cyclical','Financial Services','Technology']],axis=1)
report = sim(position=positions, resample='W', fee_ratio=0, tax_ratio=0, stop_loss=0.1, name='美股本益成長比', live_performance_start='2021-06-01')</code></pre>



<h3>回測結果</h3>



<figure class="wp-block-image size-large"><img loading="lazy" width="912" height="1024" src="https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.26.05-912x1024.png" alt="截圖 2023 07 07 下午8.26.05" class="wp-image-5441" srcset="https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.26.05-912x1024.png 912w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.26.05-267x300.png 267w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.26.05-768x862.png 768w, https://www.finlab.tw/wp-content/uploads/2023/07/截圖-2023-07-07-下午8.26.05.png 1127w" sizes="(max-width: 912px) 100vw, 912px" title="美股探險記第4課:美股選股池分類器使用教學｜本益成長比最適合用在哪些產業？ 5"></figure>



<p class="has-medium-font-size">撋報酬率降低一些，但夏普率和最大回撤幅度與原先的結果相比則有明顯提升。<br>還在為優化策略所苦嗎？你絕對不能錯過 <a href="https://doc.finlab.tw/reference/data/#finlab.data.us_universe" target="_blank" rel="noopener">美股選股池控制</a> 這個好用功能，趕緊來試試吧！</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.finlab.tw/us_stock_industry_peg/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">5424</post-id>	</item>
		<item>
		<title>冰風暴概念股季節效應｜老王是對的嗎？</title>
		<link>https://www.finlab.tw/winter_storm_industry_index_backtest/</link>
					<comments>https://www.finlab.tw/winter_storm_industry_index_backtest/#respond</comments>
		
		<dc:creator><![CDATA[Ben]]></dc:creator>
		<pubDate>Tue, 27 Dec 2022 05:53:34 +0000</pubDate>
				<category><![CDATA[FinLab 量化平台]]></category>
		<category><![CDATA[Python新手教學]]></category>
		<category><![CDATA[VIP文章]]></category>
		<category><![CDATA[季節效應]]></category>
		<category><![CDATA[產業分析]]></category>
		<category><![CDATA[老王]]></category>
		<guid isPermaLink="false">https://www.finlab.tw/?p=5007</guid>

					<description><![CDATA[日本北海道創下130公分積雪的歷史紀錄，美國更是遭到北極氣旋Polar Vortex肆虐，度過40年以來最冷聖 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote has-medium-font-size"><p>日本北海道創下130公分積雪的歷史紀錄，美國更是遭到北極氣旋Polar Vortex肆虐，度過40年以來最冷聖誕節！別以為下雪過節才有氣氛，遭受暴雪襲擊的人們可是笑不出來，至於台股的炒作題材就是，雪下得越大，汽車用抗凍劑賣得越好！再來就是暴風雪過後，撞車該修的、或者發不動車的，就會很需要汽車售後維修！以上二大族群包括抗凍劑與副廠汽車零組件AM，往往都是過去在冰天雪地裡頭的熱門族群 &#8212; 摘自<a href="https://www.facebook.com/winnstock/posts/pfbid0oVgvJD2rCTZEtSfTLwyfrqn9jZ3ZN8cr41vb35tKTcTQaGz9UCRmvkK2vDXAxbQsl" target="_blank" rel="noopener">王董的籌碼大盤FB粉絲團</a></p></blockquote>



<p class="has-medium-font-size">投顧分析師「老王」在台灣是相當知名的台股 Youtuber，經常發表市場洞見，易懂生動的表達方式讓他在台灣具有高知名度。投顧老師百百款，有的真的有料，有的只是綜藝咖，說法都邏輯說得通，但實際結果真的如此嗎？<br>如何判斷投顧老師的說法？最簡單直接的方式就是數據為憑，這也是在 FinLab 能學的技巧，資料與程式就是最好的照妖鏡，究竟老王的冰風暴概念股是否真有季節效應？讓我們來驗證吧！</p>



<h2>冰風暴概念股有哪些？</h2>



<p class="has-medium-font-size">之前有篇教學教大家使用 FinLab <a href="https://www.finlab.tw/industry_themes_database_basic_application/">產業資料庫的基礎應用</a>，現在再來複習一下，我們來找找「汽車售後維修」、「抗凍劑」有哪些？結果發現我們的資料庫並沒有「汽車售後維修」、「抗凍劑」這兩個族群標籤，但你如果去 google 這兩個關鍵字，可以找到這兩個產業的台股代表公司，分別是 1319 東陽 和 1710 東聯，之後再反查 1319 東陽 和 1710 東聯 有哪些族群標籤。查詢結果如下。</p>



<ul class="has-medium-font-size"><li> 1319 東陽：[&#8216;汽車&#8217;, &#8216;汽車:保險桿&#8217;, &#8216;汽車:引擎蓋&#8217;, &#8216;汽車:鈑金&#8217;, &#8216;石化及塑橡膠&#8217;, &#8216;石化及塑橡膠:塑膠製品&#8217;]</li><li>1710 東聯 ：[&#8216;其他&#8217;, &#8216;其他:其他&#8217;, &#8216;紡織&#8217;, &#8216;紡織:石化原料(例如純對苯二甲酸、乙二醇、己內醯胺、丙烯腈等)&#8217;]</li></ul>



<p class="has-medium-font-size">可以發現資料庫的族群關鍵字其實有吻合，只是名稱不同，汽車的「保險桿、引擎蓋、鈑金」 都是雪地車禍碰撞時需要維修的零組件。而乙二醇是<a href="https://news.cnyes.com/news/id/4979729" target="_blank" rel="noopener">抗凍劑</a>的原料，可以「乙二醇」為關鍵字定義類股。運用幾行程式就可以找出老王所說的冰風暴概念股。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="812" src="https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-27-下午12.40.55-1024x812.png" alt="截圖 2022 12 27 下午12.40.55" class="wp-image-5008" srcset="https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-27-下午12.40.55-1024x812.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-27-下午12.40.55-300x238.png 300w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-27-下午12.40.55-768x609.png 768w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-27-下午12.40.55-1536x1217.png 1536w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-27-下午12.40.55.png 1678w" sizes="(max-width: 1024px) 100vw, 1024px" title="冰風暴概念股季節效應｜老王是對的嗎？ 6"><figcaption>冰風暴概念股</figcaption></figure>



<h2>編製概念股指數</h2>



<p class="has-medium-font-size">編製方式不難，把成分股的漲跌幅取出，再取成份股的漲跌幅平均值，每日累乘上去，結果就是以平均持有各成分股的類股指數。結果可以發現，該類股長期是上漲趨勢，基本面不會太差。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="795" src="https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-27-下午12.43.53-1024x795.png" alt="截圖 2022 12 27 下午12.43.53" class="wp-image-5009" srcset="https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-27-下午12.43.53-1024x795.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-27-下午12.43.53-300x233.png 300w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-27-下午12.43.53-768x596.png 768w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-27-下午12.43.53-1536x1192.png 1536w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-27-下午12.43.53.png 1639w" sizes="(max-width: 1024px) 100vw, 1024px" title="冰風暴概念股季節效應｜老王是對的嗎？ 7"></figure>



<h2>統計結果</h2>



<p class="has-medium-font-size">有了類股指數後，就可以來統計類股指數每個月的漲跌表現，看看冬季的月份是否有較高的報酬率與勝率。統計 2007/4/23~202212/26 共16年的回測結果，可以發現「冰風暴類股指數」老王發文時間的「12月」確實明顯有較高的報酬率與勝率，但同為冬季的1月則是墊底的表現，比較好的進場時間點應為11月底的秋末，才能吃到12月初冬的漲幅，如果在12月底進場，按歷史數據，如果持有到1月份，被修理的機會蠻高的。<br>冬末的2月份也有不錯的表現，是另一個可考慮的選擇，至於為何初夏的7月會是表現最好的月份 (報酬率第一、勝率第二)？就不得而知了。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="201" src="https://www.finlab.tw/wp-content/uploads/2022/12/newplot-47-1024x201.png" alt="newplot 47" class="wp-image-5010" srcset="https://www.finlab.tw/wp-content/uploads/2022/12/newplot-47-1024x201.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/12/newplot-47-300x59.png 300w, https://www.finlab.tw/wp-content/uploads/2022/12/newplot-47-768x151.png 768w, https://www.finlab.tw/wp-content/uploads/2022/12/newplot-47-1536x302.png 1536w, https://www.finlab.tw/wp-content/uploads/2022/12/newplot-47.png 2036w" sizes="(max-width: 1024px) 100vw, 1024px" title="冰風暴概念股季節效應｜老王是對的嗎？ 8"><figcaption>各月份平均報酬率統計</figcaption></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="201" src="https://www.finlab.tw/wp-content/uploads/2022/12/newplot-48-1024x201.png" alt="newplot 48" class="wp-image-5011" srcset="https://www.finlab.tw/wp-content/uploads/2022/12/newplot-48-1024x201.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/12/newplot-48-300x59.png 300w, https://www.finlab.tw/wp-content/uploads/2022/12/newplot-48-768x151.png 768w, https://www.finlab.tw/wp-content/uploads/2022/12/newplot-48-1536x302.png 1536w, https://www.finlab.tw/wp-content/uploads/2022/12/newplot-48.png 2036w" sizes="(max-width: 1024px) 100vw, 1024px" title="冰風暴概念股季節效應｜老王是對的嗎？ 9"><figcaption>各月份勝率統計</figcaption></figure>



<h2>結論</h2>



<p class="has-medium-font-size">老王的說法大致上沒錯，只是要留意該題材，不是整個冬天都在漲，12、1、2月份的表現有落差，如果要操作波段，現在12月底才入手並不是好選擇，聰明的早在11月就部署。<br>還有什麼概念股想驗證的嗎？利用本篇的 <a href="https://colab.research.google.com/drive/1tCFAHP88Ul8CzK1HYFCMER73pBPETBq2?usp=sharing" target="_blank" rel="noopener">colab範例程式</a>，就能針對特定族群回測月表現，把產業資料庫的價值展現出來。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.finlab.tw/winter_storm_industry_index_backtest/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">5007</post-id>	</item>
		<item>
		<title>產業資料庫的基礎應用</title>
		<link>https://www.finlab.tw/industry_themes_database_basic_application/</link>
					<comments>https://www.finlab.tw/industry_themes_database_basic_application/#respond</comments>
		
		<dc:creator><![CDATA[Ben]]></dc:creator>
		<pubDate>Tue, 20 Dec 2022 06:35:19 +0000</pubDate>
				<category><![CDATA[FinLab 量化平台]]></category>
		<category><![CDATA[Python新手教學]]></category>
		<category><![CDATA[基本面分析]]></category>
		<category><![CDATA[生產力]]></category>
		<category><![CDATA[pandas]]></category>
		<category><![CDATA[台股]]></category>
		<category><![CDATA[產業分析]]></category>
		<category><![CDATA[資料處理]]></category>
		<guid isPermaLink="false">https://www.finlab.tw/?p=4971</guid>

					<description><![CDATA[這篇教學文章將說明FinLab的「產業題材資料庫」的簡單應用，並教你如何用 Python 與 Pandas 基礎語法去「客製化」自己的產業分類，讓產業資料庫更豐富]]></description>
										<content:encoded><![CDATA[
<p class="has-medium-font-size">產業資料庫重要嗎？如果你想讓選股技巧更上一層樓，勢必會進階到產業分析。<br>投資標的的優劣評價，除了自己跟自己比，例如近期財報是否較過去改善，另一個判斷企業競爭力的評價方式，就是跟同業比，好壞都是比較而來的，選對比較基準才讓評價有意義。<br>除了同業個股比較，產業資料庫的另一個主要應用在找出族群趨勢，如果一個產業的企業的營收或股價趨勢都向上，那代表該產業蒸蒸日上，有產業景氣良好的基本面護體，更能增加投資判斷把握度與可解釋性，排除單一個股炒作的個別性，更進階的應用甚至可延伸到概念股落後補漲效應。<br>這一切的應用的基礎都建構在「產業資料庫」的分類，這篇教學文章將說明FinLab的「<a href="https://ai.finlab.tw/database#security_industry_themes" target="_blank" rel="noopener">產業題材資料庫</a>」的簡單應用，並教你如何用 Python 與 Pandas 基礎語法去「客製化」自己的產業分類，讓產業資料庫更豐富。</p>



<h2>產業資料</h2>



<p class="has-medium-font-size">FinLab 的細產業主題資料來源主要取自「<a href="https://ic.tpex.org.tw/" target="_blank" rel="noreferrer noopener">產業價值鍊資訊平台</a>」，少部分為自定義分類。從&nbsp;<a href="https://ai.finlab.tw/database#security_industry_themes" target="_blank" rel="noreferrer noopener">FinLab資料庫</a>&nbsp;只要一行程式碼就能下載全部的細產業資訊，讓你輕鬆以此基礎做後續應用。要注意的是此份資料僅限&nbsp;<a href="https://ai.finlab.tw/pricing" target="_blank" rel="noreferrer noopener">VIP</a>&nbsp;使用。<br><a href="https://ic.tpex.org.tw/" target="_blank" rel="noreferrer noopener">產業價值鍊資訊平台</a>&nbsp;會將主產業再分拆上下游的細產業，讓你更精細的去比較，否則證交所一般分類光半導體就近百檔，比較效果相對籠統。</p>



<figure class="wp-block-image"><img src="https://www.finlab.tw/wp-content/uploads/2022/11/%E6%88%AA%E5%9C%96-2022-11-02-%E4%B8%8A%E5%8D%887.30.52-1024x404.png" alt="截圖 2022 11 02 上午7.30.52" class="wp-image-4756" title="產業面選股策略｜同業本益比比較法 1"/><figcaption>資料庫欄位</figcaption></figure>



<p class="has-medium-font-size">每家公司所屬產業的資訊放在 catergory 內，category 欄位的型態是文字格式，所有產業分類會放入 List 後再包成文字型態，從該資料得知公司分別有哪些產業的標籤。<br>例如1101台泥的產業序列裡有主產業的水泥，也有細產業「水泥:水泥成品」、「水泥:水泥熟料」(格式為「主產業:細產業 or 主產業」)。</p>



<figure class="wp-block-image"><img src="https://www.finlab.tw/wp-content/uploads/2022/11/%E6%88%AA%E5%9C%96-2022-11-02-%E4%B8%8A%E5%8D%887.35.04-1024x810.png" alt="截圖 2022 11 02 上午7.35.04" class="wp-image-4757" title="產業面選股策略｜同業本益比比較法 2"/></figure>



<h2>簡單查詢應用</h2>



<p class="has-medium-font-size">如果我們想查詢哪些公司屬於水泥產業？我們可以運用pandas內的 <a href="https://pandas.pydata.org/docs/reference/api/pandas.Series.str.contains.html" target="_blank" rel="noopener">Series.str.contains</a>，讓我們快速分類出產業名單，如下範例，只要「category」欄位內含「水泥」兩字，就會被納入範圍。</p>



<pre class="wp-block-code"><code lang="python" class="language-python">from finlab import data
from finlab.backtest import sim

# 取出產業題材
themes = data.get('security_industry_themes')

# 選出產業包含「水泥」的公司
ind1 = themes[themes['category'].str.contains('水泥')]
</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="513" src="https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午12.36.55-1024x513.png" alt="截圖 2022 12 20 下午12.36.55" class="wp-image-4972" srcset="https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午12.36.55-1024x513.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午12.36.55-300x150.png 300w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午12.36.55-768x384.png 768w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午12.36.55-1536x769.png 1536w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午12.36.55.png 1894w" sizes="(max-width: 1024px) 100vw, 1024px" title="產業資料庫的基礎應用 10"></figure>



<p class="has-medium-font-size">contains 語法支援 or 的運用，如果我們今天想選出產業包含「水泥」或「建材營造」的公司，可以使用以下語句，使用&#8217;|&#8217;的符號做邏輯運算串連：</p>



<p class="has-medium-font-size"> <code>ind2 = themes[themes['category'].str.contains('水泥|建材營造')]</code> </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="532" src="https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午12.37.48-1024x532.png" alt="截圖 2022 12 20 下午12.37.48" class="wp-image-4973" srcset="https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午12.37.48-1024x532.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午12.37.48-300x156.png 300w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午12.37.48-768x399.png 768w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午12.37.48-1536x799.png 1536w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午12.37.48-2048x1065.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" title="產業資料庫的基礎應用 11"></figure>



<h2>簡單回測範例</h2>



<p class="has-medium-font-size">「想挑出水泥產業中，本益比低於水泥產業本益比中位數之個股當投資組合」</p>



<p class="has-medium-font-size">實作很簡單，用前述contains篩選的stock_id，套入本益比資料做欄位圈選，就能限定資料範圍，再運用 <code>median(axis=1)</code>，計算每日產業本益比中位數，axis=1的用途在取每一期(橫列)的中位數。</p>



<pre class="wp-block-code"><code lang="python" class="language-python">from finlab import data
from finlab.backtest import sim

# 取出產業題材
themes = data.get('security_industry_themes')

# 選出產業包含「水泥」公司
ind = themes[themes['category'].str.contains('水泥')]
pe = data.get('price_earning_ratio:本益比')
ind_pe = pe[list(ind['stock_id'])]

# 計算每日產業本益比中位數,axis=1的用途在取每一期(橫列)的中位數
ind_pe_med = ind_pe.median(axis=1)

# 選出本益比小於同業本益比中位數且本益比小於25的公司
position = (ind_pe &lt; ind_pe_med) &amp; (ind_pe &lt; 25)

# 回測
report = sim(position, upload=False)
report.display()</code></pre>



<figure class="wp-block-image"><img loading="lazy" width="800" height="600" src="https://www.finlab.tw/wp-content/uploads/2022/11/newplot-2.png" alt="newplot 2" class="wp-image-4758" title="產業面選股策略｜同業本益比比較法 3" srcset="https://www.finlab.tw/wp-content/uploads/2022/11/newplot-2.png 800w, https://www.finlab.tw/wp-content/uploads/2022/11/newplot-2-300x225.png 300w, https://www.finlab.tw/wp-content/uploads/2022/11/newplot-2-768x576.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<h2>自定義產業分類</h2>



<p class="has-medium-font-size">有時我們發現產業價值鏈資訊平台的分類仍不能滿足需求，像是他缺少概念股的標籤資料，學會Python 的好處在我們可以任意擴展資料，去自定義新增的分類。<br>使用開發好的 create_new_industry_themes 的函式去創建新的產業分類，其中 additional_themes 變數控制新增標籤，格式為<code>[([目標群],[標籤群]),...]</code>。<br><br>例如以下範例對&#8217;6684&#8242;, &#8216;6756&#8217;, &#8216;3014&#8217; 新增 &#8216;元宇宙:祖克柏概念股&#8217; 的標籤，對&#8217;1342&#8242;, &#8216;1584&#8217;新增&#8217;航太週邊:空中巴士概念股&#8217;的標籤，對&#8217;2342&#8242;, &#8216;3317&#8217;, &#8216;4923&#8217;, &#8216;5299&#8217;, &#8216;6287&#8217; 增加兩個標籤&#8217;半導體:基礎元件&#8217;, &#8216;通訊產業:通訊元件&#8217;。</p>



<pre class="wp-block-code"><code lang="python" class="language-python">def add_sub_group(dataframe, stock_list: list, theme_list: list):
    try:
        dataframe.loc[stock_list]['category'] = dataframe.loc[stock_list]['category'].apply(
            lambda s: s.extend(theme_list))
    except KeyError:
        print('stock_list not in index.')
    return dataframe


def process_sub_group_list(sub_group_list):
    sub_group_list.extend(list(set({i[:i.index(':')] for i in sub_group_list if ':' in i})))
    return sorted(list(set(sub_group_list)))


def create_new_industry_themes(additional_themes):

    df = data.get('security_industry_themes')
    df = df.set_index(['stock_id', 'name'])
    df['category'] = df['category'].apply(lambda s: eval(s))

    if additional_themes:
        for stock_list, theme_list in additional_themes:
            df = add_sub_group(df, stock_list, theme_list)

    df['category'] = df['category'].apply(lambda s: process_sub_group_list(s))
    df = df.astype(str)
    df = df.reset_index()
    return df


additional_themes = [
    (['6684', '6756', '3014'], ['元宇宙:祖克柏概念股']),
    (['1342', '1584'], ['航太週邊:空中巴士概念股']),
    (['2342', '3317', '4923', '5299', '6287'], ['半導體:基礎元件', '通訊產業:通訊元件']),
]


new_themes = create_new_industry_themes(additional_themes)
# 檢查6684 是否成功新增標籤
new_themes[new_themes['stock_id']=='6684']['category'].values</code></pre>



<p class="has-medium-font-size"><br><br></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="699" src="https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午2.02.42-1024x699.png" alt="截圖 2022 12 20 下午2.02.42" class="wp-image-4974" srcset="https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午2.02.42-1024x699.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午2.02.42-300x205.png 300w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午2.02.42-768x524.png 768w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午2.02.42-1536x1049.png 1536w, https://www.finlab.tw/wp-content/uploads/2022/12/截圖-2022-12-20-下午2.02.42.png 1797w" sizes="(max-width: 1024px) 100vw, 1024px" title="產業資料庫的基礎應用 12"></figure>



<p class="has-medium-font-size">執行完含式後，會發現 new_themes 已有新增資料～之後就可以用自定義後的 new_themes  做產業分析囉！</p>



<h2>小結</h2>



<p class="has-medium-font-size"><a href="https://colab.research.google.com/drive/15PQ_W_6xUZ1lHlDWaNZtZgsUPZPMiove?usp=sharing" target="_blank" rel="noopener">colab程式範例</a><br><br>學會基礎的產業資料的資料處理技巧後，就可以進行許多分析與策略開發，像是「<a href="https://www.finlab.tw/industry_pe_strategy/">產業面選股策略｜同業本益比比較法</a>」就是延伸的應用喔！<br>如果有自己的產業分類標籤可以加入，那就會進化成個人獨有的資料，可能創造出不易被模仿的策略或產業觀察指標。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.finlab.tw/industry_themes_database_basic_application/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4971</post-id>	</item>
		<item>
		<title>研發費用率選股策略</title>
		<link>https://www.finlab.tw/research_expense_ratio_strategy/</link>
					<comments>https://www.finlab.tw/research_expense_ratio_strategy/#respond</comments>
		
		<dc:creator><![CDATA[Ben]]></dc:creator>
		<pubDate>Thu, 24 Feb 2022 03:24:32 +0000</pubDate>
				<category><![CDATA[選股策略]]></category>
		<category><![CDATA[FinLab 量化平台]]></category>
		<category><![CDATA[Python新手教學]]></category>
		<category><![CDATA[PYTHON財經]]></category>
		<category><![CDATA[VIP文章]]></category>
		<category><![CDATA[基本面分析]]></category>
		<category><![CDATA[股票策略]]></category>
		<category><![CDATA[VIP限定]]></category>
		<category><![CDATA[產業分析]]></category>
		<category><![CDATA[研發費用]]></category>
		<guid isPermaLink="false">https://www.finlab.tw/?p=3365</guid>

					<description><![CDATA[台灣之光台積電  (TSM)是一個經典的例子，不斷投入的研發費用和資本支出最終拉開與競爭者的差距，現在高階製程在對手看不到車尾燈的情況下，還可以在毛利50%的情況下再漲價，且沒有客戶敢抱怨啥，營收持續成長，讓台積電股價持續在緩步上升，就知道研發實力、企業競爭力、股價有所關聯。]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full is-resized"><img loading="lazy" src="https://www.finlab.tw/wp-content/uploads/2022/02/下町火箭.png" alt="下町火箭" class="wp-image-3444" width="480" height="297" srcset="https://www.finlab.tw/wp-content/uploads/2022/02/下町火箭.png 960w, https://www.finlab.tw/wp-content/uploads/2022/02/下町火箭-300x186.png 300w, https://www.finlab.tw/wp-content/uploads/2022/02/下町火箭-768x475.png 768w" sizes="(max-width: 480px) 100vw, 480px" title="研發費用率選股策略 13"><figcaption>日劇：<a href="https://news.tvbs.com.tw/ttalk/detail/life/14603" class="rank-math-link" target="_blank" rel="noopener">下町火箭劇照</a></figcaption></figure>



<p class="has-normal-font-size">記得以前看日劇「下町火箭」時，被阿部寬演的<meta charset="utf-8">火箭研發職人激得熱血沸騰。<br><meta charset="utf-8"><meta charset="utf-8">劇中呈述一家小型精密機械公司「佃製作所」專注研發的過程，大宗產品的獲利都拿來研發高技術門檻的「火箭門閥」，社長不畏眾人質疑，就算被貸款銀行嘲笑：「沒有利潤的專利就像垃圾一樣。」，仍堅定專注研發的孤獨道路，熬了許久，經歷多次考驗，搶先註冊的專利和品質頂尖的產品，打進<meta charset="utf-8">帝國重工(現實中的三菱重工)的星鏈計畫，最後享受到獨門專利帶來的高毛利甜美果實。</p>



<p class="has-normal-font-size">現實中有這樣的企業嗎？最經典的範例就是Amazion (AWZN)，創辦人Bezos一直追求破壞式創新，不斷投入研發經費做個領域的嘗試，但龐大的研發費用也吃掉許多獲利，讓損益表和本益比的數字一直不太好看，<meta charset="utf-8">Bezos較在乎營收與營運現金流量同步成長，只要這趨勢能維持，為公司帶來研發經費的支撐，那只要在激烈的資訊產業不斷投入資源而脫隱而出，就能囊括藍海市場的份額。<meta charset="utf-8">木頭姐 (Cathie Wood) 的破壞式創新選股很多都是像<meta charset="utf-8">AWZN這類經營模式。<br><br>台灣之光台積電  (TSM)是另一個經典的例子，不斷投入的研發費用和資本支出最終拉開與競爭者的差距，現在高階製程在對手看不到車尾燈的情況下，還可以在毛利50%的情況下再漲價，且沒有客戶敢抱怨啥，營收持續成長，讓台積電股價持續在緩步上升，就知道研發實力、企業競爭力、股價有所關聯。<br><br>先前已開發過財務指標的策略，例如<a href="https://www.finlab.tw/finlab-tw-stock-peg-strategy/">本益成長比</a>，研發費用率能不能也開發出好策略呢？<br></p>



<h2><meta charset="utf-8">研發費用相關財務指標</h2>



<h3><meta charset="utf-8">研究發展費</h3>



<p class="has-normal-font-size">是指公司在研究開發產品/技術的過程產生的各項費用。</p>



<h3>研發費用率</h3>



<p class="has-normal-font-size">算法：研究發展費 / 營業收入淨額<br>越高代表從營收拿出較高比例的份額繼續投入研發，好的情況是<meta charset="utf-8">研究發展費與<meta charset="utf-8">營業收入淨額同步增加，若是<meta charset="utf-8">營業收入淨額下降而導致<meta charset="utf-8"><meta charset="utf-8">研發費用率變高，那可能會對財務體質帶來傷害，代表公司燒錢燒的有點嚴重。</p>



<p class="has-normal-font-size">來看看台股上市櫃產業的<meta charset="utf-8">研發費用率中位數熱力圖，明顯可見半導體、光電、通信網路、生技醫療的比率比別的產業高出一截。半導體許多公司都投入不少經費研發，長年中位數分級在0.83上下，代表多數半導體公司的研發費用率大過全市場83%的公司。傳產相關投入研發的費用明顯少很多。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="455" src="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-6-1024x455.png" alt="newplot 6" class="wp-image-3449" srcset="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-6-1024x455.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-6-300x133.png 300w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-6-768x341.png 768w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-6.png 1181w" sizes="(max-width: 1024px) 100vw, 1024px" title="研發費用率選股策略 14"></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="455" src="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-5-1024x455.png" alt="newplot 5" class="wp-image-3450" srcset="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-5-1024x455.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-5-300x133.png 300w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-5-768x341.png 768w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-5.png 1181w" sizes="(max-width: 1024px) 100vw, 1024px" title="研發費用率選股策略 15"></figure>



<p class="has-normal-font-size"><br></p>



<h3>研發費用佔營業費用比</h3>



<p class="has-normal-font-size">算法:研究發展費 / 營業費用<br>營業費用由<meta charset="utf-8"><strong>研究發展費</strong>、<strong>銷售費用</strong>、<strong>管理費用</strong>所組成，<meta charset="utf-8">研發費用佔營業費用比可看出一家企業願意在營業費用預算下拿出多少比例投入研發，而不是花到別項如包裝費、運輸費、展覽費、廣告費、服務費，可以看出一家企業願意在有限資源的情況下，有多在意研發。<br><br><meta charset="utf-8">來看看台股上市櫃產業的<meta charset="utf-8"><meta charset="utf-8">研發費用佔營業費用比中位數熱力圖，基本上產業排名和研發費用率一樣。有趣的是生技醫療、文化創意產業的比率逐季呈現下降趨勢，研發費用率高，但是不是花更多錢到行銷等費用 (美妝產業特色)上？資訊服務業、電子零組件的比率有上升趨勢，在有限的收入下，仍願意越來越注重研發。至於傳產的比率都還是偏低或下降趨勢，經營相對保守。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="455" src="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-8-1024x455.png" alt="newplot 8" class="wp-image-3451" srcset="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-8-1024x455.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-8-300x133.png 300w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-8-768x341.png 768w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-8.png 1181w" sizes="(max-width: 1024px) 100vw, 1024px" title="研發費用率選股策略 16"></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="455" src="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-7-1024x455.png" alt="newplot 7" class="wp-image-3452" srcset="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-7-1024x455.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-7-300x133.png 300w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-7-768x341.png 768w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-7.png 1181w" sizes="(max-width: 1024px) 100vw, 1024px" title="研發費用率選股策略 17"></figure>



<h2>全市場回測</h2>



<h3>燒錢企業</h3>



<p class="has-normal-font-size">研發費用率有個問題是若&#8221;<meta charset="utf-8">營業收入淨額&#8221;小於&#8221;研究發展費&#8221;很多，會使比率放到超大，這類通常都是新藥公司，沒啥收入，不斷投入研發燒錢，現金流也常不佳，所以之後的使用研發費用比率回測要過濾這類的狀況。<br>來測測這類燒錢公司的獲利曲線，果然很差。</p>



<pre class="wp-block-code"><code lang="python" class="language-python">from finlab import data
from finlab.backtest import sim

研究發展費 = data.get("financial_statement:研究發展費")
營業收入淨額 = data.get("financial_statement:營業收入淨額")


# 選股條件
position = 研究發展費 &gt; 營業收入淨額
report = sim(position=position, resample='Q', upload=False)
report.display()</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" width="800" height="600" src="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-9.png" alt="newplot 9" class="wp-image-3453" srcset="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-9.png 800w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-9-300x225.png 300w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-9-768x576.png 768w" sizes="(max-width: 800px) 100vw, 800px" title="研發費用率選股策略 18"></figure>



<h3>研發費用率分群</h3>



<p class="has-normal-font-size">單因子回測，分10個級距分別做季回測，前10%與後10%表現差距明顯，R2_score 0.48。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="455" src="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-10-1024x455.png" alt="newplot 10" class="wp-image-3454" srcset="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-10-1024x455.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-10-300x133.png 300w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-10-768x341.png 768w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-10.png 1181w" sizes="(max-width: 1024px) 100vw, 1024px" title="研發費用率選股策略 19"></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="455" src="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-11-1024x455.png" alt="newplot 11" class="wp-image-3455" srcset="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-11-1024x455.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-11-300x133.png 300w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-11-768x341.png 768w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-11.png 1181w" sizes="(max-width: 1024px) 100vw, 1024px" title="研發費用率選股策略 20"></figure>



<h3><meta charset="utf-8">研發費用佔營業費用比分群</h3>



<p class="has-normal-font-size"><meta charset="utf-8">單因子回測，分10個級距分別做季回測，前10%與後10%表現差距明顯，R2_score 0.56。整體報酬比研發費用率的回測較低。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="455" src="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-12-1024x455.png" alt="newplot 12" class="wp-image-3456" srcset="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-12-1024x455.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-12-300x133.png 300w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-12-768x341.png 768w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-12.png 1181w" sizes="(max-width: 1024px) 100vw, 1024px" title="研發費用率選股策略 21"></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="455" src="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-13-1024x455.png" alt="newplot 13" class="wp-image-3457" srcset="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-13-1024x455.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-13-300x133.png 300w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-13-768x341.png 768w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-13.png 1181w" sizes="(max-width: 1024px) 100vw, 1024px" title="研發費用率選股策略 22"></figure>



<h2>半導體產業回測</h2>



<blockquote class="wp-block-quote is-style-default"><p></p><cite><meta charset="utf-8">摩爾定律的定義歸納起來，主要有以下三種版本：<br>積體電路上可容納的電晶體數目，約每隔18個月便增加一倍。<br>微處理器的效能每隔18個月提高一倍，或價格下降一半。<br>相同價格所買的電腦，效能每隔18個月增加一倍。</cite></blockquote>



<p class="has-normal-font-size">由前述可知半導體產業是火拚研發實力的產業，許多相關公司都投入不少資源，像台積電長期的研發費用率都在8%上下，佔了營業費用的80%，不拚不行啊！若照摩爾定律的假設，不研發推新製程、產品，產品掉價會很快，分群回測出來的結果會不會比全市場更顯著？<br><br>結果是沒有比較顯著，相關性低一點，中間分群報酬率也蠻不錯的。</p>



<div class="wp-block-jetpack-tiled-gallery aligncenter is-style-rectangular"><div class="tiled-gallery__gallery"><div class="tiled-gallery__row"><div class="tiled-gallery__col" style="flex-basis:100%"><figure class="tiled-gallery__item"><img srcset="https://i1.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-14.png?strip=info&#038;w=600&#038;ssl=1 600w,https://i1.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-14.png?strip=info&#038;w=900&#038;ssl=1 900w,https://i1.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-14.png?strip=info&#038;w=1181&#038;ssl=1 1181w" alt="newplot 14" data-height="525" data-id="3460" data-link="https://www.finlab.tw/?attachment_id=3460" data-url="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-14.png" data-width="1181" src="https://i1.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-14.png?ssl=1" layout="responsive" title="研發費用率選股策略 23"></figure></div></div><div class="tiled-gallery__row"><div class="tiled-gallery__col" style="flex-basis:100%"><figure class="tiled-gallery__item"><img srcset="https://i2.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-15.png?strip=info&#038;w=600&#038;ssl=1 600w,https://i2.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-15.png?strip=info&#038;w=900&#038;ssl=1 900w,https://i2.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-15.png?strip=info&#038;w=1181&#038;ssl=1 1181w" alt="newplot 15" data-height="525" data-id="3461" data-link="https://www.finlab.tw/?attachment_id=3461" data-url="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-15.png" data-width="1181" src="https://i2.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-15.png?ssl=1" layout="responsive" title="研發費用率選股策略 24"></figure></div></div><div class="tiled-gallery__row"><div class="tiled-gallery__col" style="flex-basis:100%"><figure class="tiled-gallery__item"><img srcset="https://i0.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-16.png?strip=info&#038;w=600&#038;ssl=1 600w,https://i0.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-16.png?strip=info&#038;w=900&#038;ssl=1 900w,https://i0.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-16.png?strip=info&#038;w=1181&#038;ssl=1 1181w" alt="newplot 16" data-height="525" data-id="3462" data-link="https://www.finlab.tw/?attachment_id=3462" data-url="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-16.png" data-width="1181" src="https://i0.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-16.png?ssl=1" layout="responsive" title="研發費用率選股策略 25"></figure></div></div><div class="tiled-gallery__row"><div class="tiled-gallery__col" style="flex-basis:100%"><figure class="tiled-gallery__item"><img srcset="https://i0.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-17.png?strip=info&#038;w=600&#038;ssl=1 600w,https://i0.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-17.png?strip=info&#038;w=900&#038;ssl=1 900w,https://i0.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-17.png?strip=info&#038;w=1181&#038;ssl=1 1181w" alt="newplot 17" data-height="525" data-id="3463" data-link="https://www.finlab.tw/?attachment_id=3463" data-url="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-17.png" data-width="1181" src="https://i0.wp.com/www.finlab.tw/wp-content/uploads/2022/02/newplot-17.png?ssl=1" layout="responsive" title="研發費用率選股策略 26"></figure></div></div></div></div>



<p class="has-normal-font-size"><br></p>



<h2>策略範例</h2>



<p class="has-normal-font-size">策略很簡單，將前面介紹的指標取交集，條件如下：</p>



<ul class="has-normal-font-size"><li>上市櫃標的</li><li>研究發展費 &lt; 營業收入淨額</li><li>研發費用率排名前10%</li><li>研發費用佔營業費用比排名前10%</li><li>營業現金流大於0，排除一直燒錢的危險體質企業，eps為負數，至少要有現金活水來支撐。</li><li>每季換股</li></ul>



<pre class="wp-block-code"><code lang="python" class="language-python">from finlab import data
from finlab.backtest import sim
import pandas as pd
import numpy as np

data.set_universe(market='TSE_OTC')

研究發展費 = data.get("financial_statement:研究發展費")
營業收入淨額 = data.get("financial_statement:營業收入淨額")
research_ratio= 研究發展費 / 營業收入淨額 * 100
research_ratio_drop=research_ratio[研究發展費 &lt; 營業收入淨額]
research_ratio_drop=research_ratio_drop.dropna(how='all',axis=1).replace(np.inf,np.nan)
research_ratio_rank=research_ratio_drop.rank(pct=True,axis=1)

營業費用 = data.get("financial_statement:營業費用")
research_prop_ratio= 研究發展費 / 營業費用 * 100
research_prop_ratio_drop=research_prop_ratio.dropna(how='all',axis=1).replace(np.inf,np.nan)
research_prop_ratio_rank=research_prop_ratio_drop.rank(pct=True,axis=1)

營運現金流=data.get('fundamental_features:營運現金流')

position = (research_ratio_rank &gt;= 0.9) &amp; (research_prop_ratio_rank &gt;= 0.9) &amp; (營運現金流&gt;0)

report = sim(position=position, resample='Q', upload=False)
report.display()</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" width="800" height="600" src="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-18.png" alt="newplot 18" class="wp-image-3464" srcset="https://www.finlab.tw/wp-content/uploads/2022/02/newplot-18.png 800w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-18-300x225.png 300w, https://www.finlab.tw/wp-content/uploads/2022/02/newplot-18-768x576.png 768w" sizes="(max-width: 800px) 100vw, 800px" title="研發費用率選股策略 27"><figcaption>年化約22%，以這麼簡單的條件來說，相當不錯喔</figcaption></figure>



<h2>延伸想想</h2>



<p class="has-normal-font-size">能否再將策略更優化呢？可以思考怎麼將上述策略優化。<br>Finlab策略面板上的「<a class="rank-math-link" href="https://ai.finlab.tw/strategy/?uid=TJN4FDuqrwU8DML7DAjUYFIMutp2&amp;sid=%E7%A0%94%E7%99%BC%E9%AD%94%E4%BA%BA" target="_blank" rel="noopener">研發魔人</a>」選股策略，再加入一點點技術指標、出場條件、基本面條件後又能大幅優化策略，選股清單多是專注研發的top科技公司，財務體質正常乖寶寶。<br>如果你從此策略延伸出更厲害的策略，可以跟我交流喔！<br><a href="https://drive.google.com/file/d/1IWlBtp61X-RnnXRAXc3GJlNSVCpcUD3w/view?usp=sharing" target="_blank" rel="noopener">colab 範例檔</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="987" src="https://www.finlab.tw/wp-content/uploads/2022/02/截圖-2022-02-24-上午11.18.28-1024x987.png" alt="截圖 2022 02 24 上午11.18.28" class="wp-image-3465" srcset="https://www.finlab.tw/wp-content/uploads/2022/02/截圖-2022-02-24-上午11.18.28-1024x987.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/02/截圖-2022-02-24-上午11.18.28-300x289.png 300w, https://www.finlab.tw/wp-content/uploads/2022/02/截圖-2022-02-24-上午11.18.28-768x740.png 768w, https://www.finlab.tw/wp-content/uploads/2022/02/截圖-2022-02-24-上午11.18.28.png 1061w" sizes="(max-width: 1024px) 100vw, 1024px" title="研發費用率選股策略 28"></figure>



<h2>參考資源</h2>



<ul class="has-normal-font-size"><li><a href="https://www.books.com.tw/products/0010840871" class="rank-math-link" target="_blank" rel="noopener">貝佐斯寫給股東的信</a></li><li><a href="https://statementdog.com/blog/archives/10207" class="rank-math-link" target="_blank" rel="noopener">財報狗-營業費用率拆解</a></li><li><a href="https://zh.wikipedia.org/wiki/%E6%91%A9%E5%B0%94%E5%AE%9A%E5%BE%8B" class="rank-math-link" target="_blank" rel="noopener">摩爾定律</a></li></ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.finlab.tw/research_expense_ratio_strategy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3365</post-id>	</item>
	</channel>
</rss>
