<?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"><channel><title><![CDATA[Recently Active Topics]]></title><description><![CDATA[A list of topics that have been active within the past 24 hours]]></description><link>https://actuarygarden.com/recent</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 14:07:48 GMT</lastBuildDate><atom:link href="https://actuarygarden.com/recent.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Nov 2025 16:28:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[一些有用的Macro]]></title><description><![CDATA[<p dir="auto">Crawler: 网页表格爬虫; 多用于risk free rate的自动获取;<br />
FolderSetUp: 自动创建文件夹树; 配合copy file macro 多用于Valuation当中每个月working folder的自动建立;<br />
Relink: 自动批量换文件中的link;<br />
仅作范本参考;<br />
欢迎斧正;<br />
<a href="/assets/uploads/files/1762964623654-crawler-foldersetup-relink.rar">Crawler+FolderSetUp+Relink.rar</a></p>
]]></description><link>https://actuarygarden.com/topic/303/一些有用的macro</link><guid isPermaLink="true">https://actuarygarden.com/topic/303/一些有用的macro</guid><dc:creator><![CDATA[jonathan-jiang]]></dc:creator><pubDate>Wed, 12 Nov 2025 16:28:52 GMT</pubDate></item><item><title><![CDATA[非重磅！不全面梳理保险基础知识思维导图，附开源文件]]></title><description><![CDATA[@Howie-Jie 在 非重磅！不全面梳理保险基础知识思维导图，附开源文件 中说：
为什么没有Part 2 人身保险啊
]]></description><link>https://actuarygarden.com/topic/184/非重磅-不全面梳理保险基础知识思维导图-附开源文件</link><guid isPermaLink="true">https://actuarygarden.com/topic/184/非重磅-不全面梳理保险基础知识思维导图-附开源文件</guid><dc:creator><![CDATA[西瓜太郎]]></dc:creator><pubDate>Thu, 10 Jul 2025 16:55:04 GMT</pubDate></item><item><title><![CDATA[Study Manual for Exam FAM-L Part 3]]></title><description><![CDATA[<p dir="auto"><a href="/assets/uploads/files/1750210130024-asm-fam-l-1st-edition.part3.rar">ASM FAM-L 1st Edition.part3.rar</a></p>
]]></description><link>https://actuarygarden.com/topic/300/study-manual-for-exam-fam-l-part-3</link><guid isPermaLink="true">https://actuarygarden.com/topic/300/study-manual-for-exam-fam-l-part-3</guid><dc:creator><![CDATA[jonathan-jiang]]></dc:creator><pubDate>Wed, 18 Jun 2025 01:30:10 GMT</pubDate></item><item><title><![CDATA[Study Manual for Exam FAM-L Part 2]]></title><description><![CDATA[<p dir="auto"><a href="/assets/uploads/files/1750210033075-asm-fam-l-1st-edition.part2.rar">ASM FAM-L 1st Edition.part2.rar</a></p>
]]></description><link>https://actuarygarden.com/topic/299/study-manual-for-exam-fam-l-part-2</link><guid isPermaLink="true">https://actuarygarden.com/topic/299/study-manual-for-exam-fam-l-part-2</guid><dc:creator><![CDATA[jonathan-jiang]]></dc:creator><pubDate>Wed, 18 Jun 2025 01:28:02 GMT</pubDate></item><item><title><![CDATA[Study Manual for Exam FAM-L Part 1]]></title><description><![CDATA[<p dir="auto"><a href="/assets/uploads/files/1750209951748-asm-fam-l-1st-edition.part1.rar">ASM FAM-L 1st Edition.part1.rar</a></p>
]]></description><link>https://actuarygarden.com/topic/298/study-manual-for-exam-fam-l-part-1</link><guid isPermaLink="true">https://actuarygarden.com/topic/298/study-manual-for-exam-fam-l-part-1</guid><dc:creator><![CDATA[jonathan-jiang]]></dc:creator><pubDate>Wed, 18 Jun 2025 01:25:54 GMT</pubDate></item><item><title><![CDATA[Study Manual for Exam FAM-S Part 3]]></title><description><![CDATA[<p dir="auto"><a href="/assets/uploads/files/1749443322882-asm-fam-s.part3.rar">ASM FAM-S.part3.rar</a></p>
]]></description><link>https://actuarygarden.com/topic/297/study-manual-for-exam-fam-s-part-3</link><guid isPermaLink="true">https://actuarygarden.com/topic/297/study-manual-for-exam-fam-s-part-3</guid><dc:creator><![CDATA[jonathan-jiang]]></dc:creator><pubDate>Mon, 09 Jun 2025 04:31:18 GMT</pubDate></item><item><title><![CDATA[Study Manual for Exam FAM-S Part 2]]></title><description><![CDATA[<p dir="auto"><a href="/assets/uploads/files/1749443182281-asm-fam-s.part2.rar">ASM FAM-S.part2.rar</a></p>
]]></description><link>https://actuarygarden.com/topic/296/study-manual-for-exam-fam-s-part-2</link><guid isPermaLink="true">https://actuarygarden.com/topic/296/study-manual-for-exam-fam-s-part-2</guid><dc:creator><![CDATA[jonathan-jiang]]></dc:creator><pubDate>Mon, 09 Jun 2025 04:26:38 GMT</pubDate></item><item><title><![CDATA[Study Manual for Exam FAM-S Part 1]]></title><description><![CDATA[<p dir="auto"><a href="/assets/uploads/files/1749442904118-asm-fam-s.part1.rar">ASM FAM-S.part1.rar</a></p>
]]></description><link>https://actuarygarden.com/topic/295/study-manual-for-exam-fam-s-part-1</link><guid isPermaLink="true">https://actuarygarden.com/topic/295/study-manual-for-exam-fam-s-part-1</guid><dc:creator><![CDATA[jonathan-jiang]]></dc:creator><pubDate>Mon, 09 Jun 2025 04:22:12 GMT</pubDate></item><item><title><![CDATA[Study Manuals for Exam SRM]]></title><description><![CDATA[<p dir="auto"><a href="/assets/uploads/files/1749442514176-asm_srm.pdf">ASM_SRM.pdf</a></p>
]]></description><link>https://actuarygarden.com/topic/294/study-manuals-for-exam-srm</link><guid isPermaLink="true">https://actuarygarden.com/topic/294/study-manuals-for-exam-srm</guid><dc:creator><![CDATA[jonathan-jiang]]></dc:creator><pubDate>Mon, 09 Jun 2025 04:15:22 GMT</pubDate></item><item><title><![CDATA[以Excel VBA实现对网页中Table的爬虫 --- Part 2]]></title><description><![CDATA[<p dir="auto">在上一篇帖子当中我们介绍了XMLHTTP对象及方法获取网页中Table对应的网页字符串. 那么如何从这些字符串中获取我们想要的数据呢?在python或者java中这些会有对应的包和函数可以实现. 而本篇将会介绍一种简单而基础的方法: 正则表达式 (Regex).</p>
<p dir="auto">3.正则表达式 (Regex):</p>
<p dir="auto">正则表达式是一种用于匹配字符串中字符模式的工具, 它可以用来搜索、编辑和处理文本.</p>
<p dir="auto">正则表达式的作用非常强大，详细的总结可以参考CSDN大佬的帖子：<a href="https://blog.csdn.net/gogoel/article/details/139539448?ops_request_misc=%257B%2522request%255Fid%2522%253A%25227418e52a1f4a908043336136e1d513a2%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=7418e52a1f4a908043336136e1d513a2&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-139539448-null-null.142%5ev102%5epc_search_result_base7&amp;utm_term=vba%20%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F&amp;spm=1018.2226.3001.4187" rel="nofollow">VBA学习笔记六：正则表达式</a>.</p>
<p dir="auto">下面我会总结用到的一些对象和方法:</p>
<p dir="auto">3.1 创建正则表达式对象:</p>
<p dir="auto">3.1.1 前期绑定:</p>
<p dir="auto">添加引用库：工具 &gt; 引用 &gt;勾选 ’Microsoft VBScript Regular Expressions 5.5‘</p>
<pre><code>'直接声明reg对象就可以使用'
Dim reg as New RegExp
</code></pre>
<p dir="auto">3.1.2 后期绑定 (推荐使用):<br />
使用 CreateObject 方法来创建 <code>VBScript.RegExp</code> 对象，便可使用<br />
代码</p>
<pre><code>'先声明再创建reg对象'
Dim reg As Object
Set reg = CreateObject("VBScript.RegExp")
</code></pre>
<p dir="auto">3.2 用到的属性及方法:</p>
<p dir="auto">3.2.1 Pattern 属性<br />
• 描述：定义要匹配的正则表达式模式<br />
• 示例：匹配任意四个字母的单词<br />
<code>reg.Pattern = "\b\w{4}\b"</code><br />
3.2.2 Global 属性<br />
• 描述：设置是否全局搜索匹配。默认为 False，只匹配第一个<br />
• 示例：全局匹配所有符合模式的字符串<br />
<code>reg.Global = True</code></p>
<p dir="auto">3.2.3 Execute 方法<br />
• 描述：执行正则表达式匹配，查找所有符合匹配模式的子字符串，并返回一个匹配集合对象 (MatchCollection对象)<br />
• 示例：查找匹配项，其中 string 是要搜索的字符串<br />
<code>Set matches = reg.Execute(string)</code></p>
<p dir="auto">3.3 匹配规则 这里我照抄CSDN文章:</p>
<p dir="auto"><img src="/assets/uploads/files/1745852816554-157d2261-46c2-4313-a232-0c4c8079a265-image.png" alt="157d2261-46c2-4313-a232-0c4c8079a265-image.png" class="img-responsive img-markdown" /><br />
<img src="/assets/uploads/files/1745852768132-6258b8f7-a1f8-4c19-a267-e49b7cc8e985-image.png" alt="6258b8f7-a1f8-4c19-a267-e49b7cc8e985-image.png" class="img-responsive img-markdown" /><br />
<img src="/assets/uploads/files/1745852848647-16d5c92c-3716-47b2-aa97-71571c626c78-image.png" alt="16d5c92c-3716-47b2-aa97-71571c626c78-image.png" class="img-responsive img-markdown" /><br />
<img src="/assets/uploads/files/1745852871511-c315a32b-c95e-458b-a491-f5d99b516307-image.png" alt="c315a32b-c95e-458b-a491-f5d99b516307-image.png" class="img-responsive img-markdown" /><br />
<img src="/assets/uploads/files/1745852895257-a29325aa-1fbb-4e53-8929-fe412fd97883-image.png" alt="a29325aa-1fbb-4e53-8929-fe412fd97883-image.png" class="img-responsive img-markdown" /><br />
<img src="/assets/uploads/files/1745852925119-9af8624b-dfbe-4ab8-b2a1-69fa9e32465c-image.png" alt="9af8624b-dfbe-4ab8-b2a1-69fa9e32465c-image.png" class="img-responsive img-markdown" /><br />
<img src="/assets/uploads/files/1745852951040-72445095-6198-4af6-a7c1-1c1930fb2132-image.png" alt="72445095-6198-4af6-a7c1-1c1930fb2132-image.png" class="img-responsive img-markdown" /><br />
<img src="/assets/uploads/files/1745852969849-0b578d14-5ad9-4391-bf2d-3975a7d69d45-image.png" alt="0b578d14-5ad9-4391-bf2d-3975a7d69d45-image.png" class="img-responsive img-markdown" /></p>
<p dir="auto">3.4 匹配结果的对象:</p>
<p dir="auto">3.4.1 MatchCollection对象:</p>
<p dir="auto">含义：是一个<strong>集合</strong>对象，包含了正则表达式在输入文本中找到的所有匹配项，每个匹配项都表示为一个 Match 对象.</p>
<p dir="auto">用到的属性:<br />
Item 属性<br />
○ 功能：返回集合中第几个 <code>Match</code> 对象，从0开始计数<br />
○ 用法：<code>matches.Item(index)</code> 或 <code>matches(index)</code><br />
○ 示例：输出第一个匹配到的对象<br />
<code>Set match = matches(0)</code><br />
<code>MsgBox "Found match: " &amp; match.Value</code></p>
<p dir="auto">3.4.2 Match对象:</p>
<p dir="auto">含义：表示正则表达式匹配中的一个匹配项，包含匹配的文本和其他相关信息</p>
<p dir="auto">用到的属性:</p>
<p dir="auto">SubMatches 属性<br />
○ 功能：返回一个 <code>SubMatches</code> 集合（注意这里返回了<strong>集合</strong>，因而适用MatchCollection对象的所有方法），包含所有捕获的子匹配项，通过索引访问捕获组的内容（索引从0开始）可以获取匹配到的分组内容<br />
○ 前提：在正则表达式模式中使用了括号来创建捕获组 (参考3.3.&gt;&gt;&gt;)<br />
○ 用法：<code>match.SubMatches(n)</code>*表示访问子匹配项第n+1个捕获组的内容，也就是表达式里面的第n+1个括号</p>
<p dir="auto">*这里的语法也可以写成<code>match.SubMatches.Item(n)</code>来表达同样的意思。</p>
<p dir="auto">4.正则表达式应用实例:</p>
<p dir="auto">4.1 代码及注释</p>
<pre><code>Sub getrates(s As String)

    Dim reg As Object, m As Object, mchs As Object
    Dim i As Long, j As Long, p As String
    
    Set reg = CreateObject("vbscript.regexp")'后期绑定创建regex'
    
    '----regex'
    p = "&lt;tr&gt;\s*&lt;td.*&gt;&lt;time.*&gt;([^&lt;]*)&lt;/time&gt;\s*&lt;/td&gt;\s*&lt;td.*&gt;.*&lt;/td&gt;\s*&lt;td.*&gt;.*&lt;/td&gt;\s*&lt;td.*&gt;.*&lt;/td&gt;\s*&lt;td.*&gt;.*&lt;/td&gt;\s*&lt;td.*&gt;.*&lt;/td&gt;\s*&lt;td.*&gt;.*&lt;/td&gt;\s*&lt;td.*&gt;.*&lt;/td&gt;\s*&lt;td.*&gt;.*&lt;/td&gt;\s*&lt;td.*&gt;.*&lt;/td&gt;\s*&lt;td.*&gt;.*&lt;/td&gt;\s*&lt;td.*&gt;.*&lt;/td&gt;\s*&lt;td.*&gt;([^&lt;]*)&lt;/td&gt;\s*&lt;td.*&gt;([^&lt;]*)&lt;/td&gt;\s*&lt;td.*&gt;([^&lt;]*)&lt;/td&gt;\s*&lt;td.*&gt;([^&lt;]*)&lt;/td&gt;\s*&lt;td.*&gt;([^&lt;]*)&lt;/td&gt;\s*&lt;td.*&gt;([^&lt;]*)&lt;/td&gt;\s*&lt;td.*&gt;([^&lt;]*)&lt;/td&gt;\s*&lt;td.*&gt;([^&lt;]*)&lt;/td&gt;\s*&lt;td.*&gt;([^&lt;]*)&lt;/td&gt;\s*&lt;td.*&gt;([^&lt;]*)&lt;/td&gt;\s*&lt;td.*&gt;([^&lt;]*)&lt;/td&gt;\s*&lt;td.*&gt;([^&lt;]*)&lt;/td&gt;\s*&lt;td.*&gt;([^&lt;]*)&lt;/td&gt;\s*&lt;td.*&gt;([^&lt;]*)&lt;/td&gt;\s*&lt;/tr&gt;"
    
    reg.pattern = p'3.2.1 pattern属性'
    reg.Global = True'3.2.2 global属性'
    
    Set mchs = reg.Execute(s)'3.2.3 execute方法'
    
    i = 6
    For Each m In mchs'3.4.1 MatchCollection对象'
        For j = 0 To m.submatches.Count - 1
            Cells(i, j + 1) = m.submatches.Item(j)
       '利用3.4.2match对象的submatches属性去将捕获字符输出到单元格中'
        Next j
        i = i + 1
    Next m
    
End Sub
</code></pre>
<p dir="auto">4.2 正则表达式<code>p</code>的写法:</p>
<p dir="auto">这里我复制出来整个Table的字符串, 以第一行（<code>&lt;tr&gt;...&lt;/tr&gt;</code>为一行的字符串）为例, 用黄色标出来我想要的字符.</p>
<p dir="auto"><img src="/assets/uploads/files/1745854013739-fc7c8410-56ab-4546-8119-8652145ea589-image.png" alt="fc7c8410-56ab-4546-8119-8652145ea589-image.png" class="img-responsive img-markdown" /></p>
<p dir="auto">参照3.3匹配规则中的捕获组方法, 将需要输出的字符以<code>()</code>包含进去,根据网页字符串的语法<code>&lt;tr&gt;.*&lt;/tr&gt;</code>和<code>&lt;td&gt;.*&lt;/td&gt;</code>做一些识别与中间内容的捕获, 作者就得到了如下的正则表达式.</p>
<p dir="auto"><img src="/assets/uploads/files/1745854537161-997718e6-8a54-411b-872e-9af853eb8a4d-image.png" alt="997718e6-8a54-411b-872e-9af853eb8a4d-image.png" class="img-responsive img-markdown" /></p>
<p dir="auto">5.总结:</p>
<p dir="auto">作者所使用的方法基本可以分为两步:<br />
第一步, 利用XMLHTTP对象先从网页中返回字符串;<br />
第二步, 利用正则表达式的匹配及捕获funtion从字符串中返回需要的字符</p>
<p dir="auto">6.杂谈:</p>
<p dir="auto">本帖是作者应管理员<a href="https://actuaryunion.com/user/mengkelyu" rel="nofollow">珂珂</a>之邀写的第一篇技术分享帖子, 谢邀~</p>
<p dir="auto">但作者对本论坛的流量表示怀疑, 因为截止到作者写part 2时, part 1帖仅有两个浏览量, 其中一个还是作者本人贡献QAQ.</p>
<p dir="auto">在此呼吁珂珂阿姨将论坛内容在公众号中做实时更新, 并祝愿珂珂阿姨做大做强, 再创辉煌~ 此致, 敬礼^.^-!</p>
]]></description><link>https://actuarygarden.com/topic/291/以excel-vba实现对网页中table的爬虫-part-2</link><guid isPermaLink="true">https://actuarygarden.com/topic/291/以excel-vba实现对网页中table的爬虫-part-2</guid><dc:creator><![CDATA[jonathan-jiang]]></dc:creator><pubDate>Mon, 28 Apr 2025 15:55:58 GMT</pubDate></item><item><title><![CDATA[以Excel VBA实现对网页中Table的爬虫 --- Part 1]]></title><description><![CDATA[<p dir="auto">1.需求与基本概念：</p>
<p dir="auto">1.1 需求：<br />
在我们平时的工作当中，往往会需要去获取一些诸如国债收益率的信息，而这些信息是写在官网的table上面的，需要我们手动去复制粘贴出来，非常浪费时间。因此就有利用爬虫(crawler)去自动获取的需求。</p>
<p dir="auto">1.2 爬虫的概念：</p>
<p dir="auto"><img src="/assets/uploads/files/1745756323089-c560acf3-52e4-4264-990f-2095d0424d83-image.png" alt="c560acf3-52e4-4264-990f-2095d0424d83-image.png" class="img-responsive img-markdown" /></p>
<p dir="auto">写爬虫的方法在不同的语言当中不尽相同，有用python的，也有用java的，而就工作实用性而言，VBA相对容易获得，毕竟不需要再去安装python的语言包。本文仅介绍基于EXCEL VBA对table的爬虫方法。</p>
<p dir="auto">2.基本方法介绍：</p>
<p dir="auto">2.1 XMLHTTP对象：<br />
XMLHTTP对象在VBA中用于在后台与服务器（Server）交换数据。</p>
<p dir="auto">XMLHTTP对象能够：<br />
在不重新加载页面的情况下更新网页<br />
在页面已加载后从服务器请求数据<br />
在页面已加载后从服务器接收数据<br />
在后台向服务器发送数据</p>
<p dir="auto">2.2 XMLHTTP对象及方法介绍：<br />
i. 定义XMLHTTP对象：</p>
<pre><code>Set xml = CreateObject("microsoft.xmlhttp")
'调用网络访问组件，相当于双击打开浏览器
</code></pre>
<p dir="auto">ii. Open方法：</p>
<pre><code>xml.Open "get", strURL, False
'strURL代表网址字符串,这一步相当于打开网页
</code></pre>
<p dir="auto">语法介绍：<br />
<code>open(bstrMethod, bstrUrl, varAsync, bstrUser, bstrPassword)</code><br />
<code>bstrMethod</code>： 数据传送方式，即<code>GET</code>或<code>POST</code>。用<code>POST</code>方式发送数据,可以大到4MB，也可以换为<code>GET</code>，只能256KB。<br />
<code>bstrUrl</code>： 服务网页的URL。<br />
<code>varAsync</code>： 是否同步执行。缺省为True，即同步执行，但只能在DOM中实施同步执行。用中一般将其置为False，即异步执行。<br />
<code>bstrUser</code>： 用户名，可省略。<br />
<code>bstrPassword</code>：用户口令，可省略。</p>
<p dir="auto">iii. Send方法：</p>
<pre><code>xml.send'提交请求，类似于回车'
</code></pre>
<p dir="auto"><code>send(varBody)</code><br />
语法介绍：<br />
<code>varBody</code>：指令集。可以是XML格式数据，也可以是字符串，流，或者一个无符号整数数组。也可以省略，让指令通过Open方法的URL参数代入。发送数据的方式分为同步和异步两种。在异步方式下，数据包一旦发送完毕，就结束Send进程，客户机执行的操作；而在同步方式下，客户机要等到服务器返回确认消息后才结束Send进程。</p>
<p dir="auto">iv. responsetext属性：</p>
<pre><code>s = xml.responsetext'responsetext得到网页字符串'
</code></pre>
<p dir="auto"><code>xml.responseText</code><br />
string型 结果返回为字符串。</p>
<p dir="auto">这一步就相当于返回了网页字符串，这个过程也可以手动显示出来，这个在后面写正则表达式(regex)的时候将会非常有用：<br />
首先打开网页，输入对应的网址<br />
以美债国库券Yield Curve为例：<a href="https://home.treasury.gov/resource-center/data-chart-center/interest-rates/TextView?type=daily_treasury_yield_curve&amp;field_tdr_date_value=2025" rel="nofollow">https://home.treasury.gov/resource-center/data-chart-center/interest-rates/TextView?type=daily_treasury_yield_curve&amp;field_tdr_date_value=2025</a><br />
然后按<code>F12</code>，这样就可以显示出来网页的code。<br />
<img src="/assets/uploads/files/1745758801836-58f1f8e6-82ed-4602-a15a-fad66868d89e-image.png" alt="58f1f8e6-82ed-4602-a15a-fad66868d89e-image.png" class="img-responsive img-markdown" /><br />
然后我们可以找得到这个Table对应的code：&lt;table&gt;***&lt;/table&gt;这一段，我们可以把这个copy出来方便我们之后写正则表达式。<br />
<img src="/assets/uploads/files/1745758870776-6daad06f-9735-453a-840f-863a72729305-image.png" alt="6daad06f-9735-453a-840f-863a72729305-image.png" class="img-responsive img-markdown" /><br />
根据网页字符串的写法，&lt;tr&gt;...&lt;tr&gt;就代表一行中间的内容，有多少行就会有多少个&lt;tr&gt;...&lt;tr&gt;。这个我们之后介绍正则表达式的时候再去详细介绍。<br />
<img src="/assets/uploads/files/1745759175580-b942066e-0912-4b71-9fe9-65b85c22e5ad-image.png" alt="b942066e-0912-4b71-9fe9-65b85c22e5ad-image.png" class="img-responsive img-markdown" /><br />
所以到现在为止，我们介绍了如何利用XLMHTTP对象访问网页并且返回网页字符串。那么如何从这些字符串当中提取想要的信息呢？请关注博主的第二篇帖子。</p>
]]></description><link>https://actuarygarden.com/topic/290/以excel-vba实现对网页中table的爬虫-part-1</link><guid isPermaLink="true">https://actuarygarden.com/topic/290/以excel-vba实现对网页中table的爬虫-part-1</guid><dc:creator><![CDATA[jonathan-jiang]]></dc:creator><pubDate>Sun, 27 Apr 2025 13:14:58 GMT</pubDate></item><item><title><![CDATA[SnakeBytes 2&#x2F;25: Corbin Barrels Slade]]></title><description><![CDATA[<p dir="auto">Diamondbacks Information Lovullo states Opening Working day rookie TBD even with providing clues through Nick Piecoro [AZ CentralThat is towards say, if Gallen remained upon a 5-working day timetable the take it easy of the spring, he would line up towards consider the ball upon Opening Working day with a single more working day of take it easy.  As for Burnes, he strains up completely towards pitch Working day 2 from the Chicago Cubs upon March Gallen Throws A person Inning, Diamondbacks Order Initially Cactus League Get through Jack Sommers [SIGallen mentioned he felt fantastic.  "When compared toward how I felt inside of my past stay [batting educate, I'll get it.  I felt a great deal superior <a href="https://www.diamondbacksgate.com/collections/jose-herrera-jersey" rel="nofollow">https://www.diamondbacksgate.com/collections/jose-herrera-jersey</a><br />
.  I felt which include nearly anything experienced its condition for the utmost component.  The changeup that basically style of was flat upon me.  It was the property operate, still anything at all else felt attractive powerful. "Gallen chips off the rust, K's 2 within spring debut through Steve Gilbert [Thus much this spring, the co-aces of the workforce contain not experienced a good deal of year jointly, still Gallen stated that would be substitute appear the regular monthly period. "Our schedules consist of been a tiny substitute," Gallen mentioned.  "I believe he will work upon a minor former program than I do inside words and phrases of he turns into inside of and becomes the things finished.  I'm further more of a gentleman who basically sort of hangs in the vicinity of listed here and does my things afterwards within just the afternoon.  Thus we style of miss out on each individual other for breakfast and things which include that, nevertheless we've been within just classes for [drills. "Diamonbacks Reliever Talks Success, Clubhouse Management by way of Alex D'Agostino [SI"We include a good deal of gentlemen inside this clubhouse towards a main and I feel a management see that sort of continue to keep other men within just line.  Hence even if an individual functions out of line, I imagine we can variety of maintain that back again within and chat relating to it," Ginkel Carroll prospects Diamondbacks in direction of very first spring gain as a result of Michael McDermott [Venom StrikesStar outfielder Corbin Carroll experienced a effective working day at the plate, homering and drawing a stroll that sooner or later grew to become the work that created the 's residence function arrived versus a previous Diamondback Slade Cecconi, who was delivered toward Cleveland in just the Josh Naylor excess of the LeagueTigers Indication Andrew Chafin Towards Very little League Bundle as a result of Darragh MacDonald [MLB Exchange RumorsIf Chafin appears including his aged self in just camp, he may perhaps potentially consider a task as the instant lefty inside the bullpen along with Holton.  If not, he'll consist of options towards physical appearance in other places.  Below the present-day collective bargaining arrangement, Write-up XX totally free brokers attain certain choose-out opportunities upon tiny league specials if they are signed a lot more than 10 times earlier in the direction of Opening Working day.  An Short article XX no cost consultant is a single with 6 many years of assistance who performed the final time upon a 40-person roster or 60-working day wounded record.  All those choose-out opportunities are 5 times preceding toward Opening Working day, Could possibly 1st and June Would a Vladito Agreement Appear to be Which include through Dan Szymborski [FanGraphs As a result at present the Blue Jays track down on their own at a crossroads.  Individually, I believe that their failure toward signal Guerrero in advance of his deadline really should be taken care of as the lethal blow in the direction of the organizationnot specifically for the up coming several yrs, nevertheless for this one particular as very well.  A large amount of factors would require toward shift straight for Toronto in direction of transform a Guerrero-considerably less roster into a severe AL East risk if he leaves as a cost-free consultant.  Thinking about this, the Jays may perhaps be far better off investing Guerrerothey would virtually totally purchase an ideal return package deal for himto retool for yet another operate 2 or a few yrs towards at present, even When that would all still formally consider them out of rivalry for the 2025 marketing campaign <a href="https://www.diamondbacksgate.com/collections/luis-gonzalez-jersey" rel="nofollow">https://www.diamondbacksgate.com/collections/luis-gonzalez-jersey</a>.  No matter what comes about, simply because the Blue Jays didn't grow the facial area of their franchise, this is shaping up in the direction of be their greatest consequential period due to the fact the cements enjoy for Philly with Phonetic tattoo by way of Todd Zolecky [MLB "I've been searching it for a When," Harper explained.  "In a natural way, the Phanatic and Philly necessarily mean a great deal.  Yet after I consider around the Phanatic, it's him upon an ATV.  I principle it was Very neat. "Cleveland Guardians proprietor Lawrence Dolan dies at 94 [ESPN "Mr.  Dolan expended his finish everyday living within Much better Cleveland and afflicted our area upon consequently several stages," Bob DiBiasio, Guardians senior vice president of community affairs, stated within a assertion.  "Against his assistance in the direction of our region as a Initially Lieutenant within just the United Claims Marines, his a lot of philanthropic functions of kindness, vocation in just regulation, business enterprise, education and learning, and sporting activities, a lot of benefited against his engagement, have an affect on, and pastime.  Specially inside of the globe of sporting activities. "Speculate of the DayPollIf Lovullo delivers Gallen the Opening Working day commence, it will be.  <a href="https://www.diamondbacksgate.com/collections/jake-mccarthy-jersey" rel="nofollow">https://www.diamondbacksgate.com/collections/jake-mccarthy-jersey</a>. This poll is shut 37% the specifically conclusion8% a miscalculation54% a nothingburger 61 votes totalVote Previously</p>
]]></description><link>https://actuarygarden.com/topic/288/snakebytes-2-25-corbin-barrels-slade</link><guid isPermaLink="true">https://actuarygarden.com/topic/288/snakebytes-2-25-corbin-barrels-slade</guid><dc:creator><![CDATA[ArizonaDiamond]]></dc:creator><pubDate>Fri, 25 Apr 2025 02:12:18 GMT</pubDate></item><item><title><![CDATA[有關房貸與租金的關係]]></title><description><![CDATA[<p dir="auto">本人是澳門人，是一個從事房地產多年的中介，最近有一個問題一直想釐定清楚！<br />
就是有關貸款買房時，在有租金收入情況下，實際的回報率是多少?<br />
一般計算房產回報的方法, 都是以年租金收入除以買入的房價作為計算。這樣計算是先假定是一次性付款作投資，再以年租金作計算。但是這個方法明顯地是計算錯誤的，實際操作是，有多少人是買房產不貸款的，當中利息支出怎樣計算?<br />
另外本金也是一個問題，一盤貸款都是先付一定數額的首付，比如說30%，那回報率應該是以房產100%計算，還是30%計算?<br />
同時要考慮的是每月租金絕大多數情況之下，是不足夠付每月供款的。以貸款100萬,年利率2.5%,分20年供,每月供款為5299.03,但月租金可能是2000，因此房東需要多付現金3299.03。那問題是用方法來計算呢?<br />
其實的親生弟弟就是精算的，而且在溫哥華從事這行業多年，他應該也算是算是老烏了。但是....我們試圖用IRR計算一直都發生錯誤，我明天會把模型上載，大家如果有興趣可以大家研究一下，到時候我會叫我弟一起上來跟你們交流，他好像是Simon Fraser university畢業的，有關留學,跟加拿大現時實況都可以跟他交流。<br />
現在太累了，明天再繼續。</p>
]]></description><link>https://actuarygarden.com/topic/285/有關房貸與租金的關係</link><guid isPermaLink="true">https://actuarygarden.com/topic/285/有關房貸與租金的關係</guid><dc:creator><![CDATA[mr_wong12]]></dc:creator><pubDate>Wed, 02 Apr 2025 18:38:06 GMT</pubDate></item><item><title><![CDATA[（感谢Judy同学投稿) 经验分析学习笔记（英文)]]></title><description><![CDATA[<p dir="auto">感谢Judy同学的分享！</p>
<h1>Introduction</h1>
<p dir="auto">Experience Analysis is a method that many insurers and reinsurers will adopt to determine some rates based on experience, like mortality and claim utilization rates, which will be used by actuaries in valuation, pricing &amp; so on.<br />
For product like CI, can use EA to determine the incidence rate &amp; improvement rate based on experience.</p>
<ul>
<li>There’re many different types of EA. Generally speaking, we can split EA studies into two categories by the event it studies:
<ul>
<li>Category I mainly studies decrement which will lead lives leaving the population, including mortality study、lapse study、 A/E study and so on</li>
<li>Category II mainly studies events that can occur while life is active in the population that do not result in the life leaving the population, like multiple claims for medical products. We call it a utilization study. Here we’ll do a frequency study, severity study, loss ratio study and so on.</li>
</ul>
</li>
</ul>
<p dir="auto"><img src="/assets/uploads/files/1714281225938-9ee05cf9-6657-4fed-ae93-f40db852f1db-image.png" alt="9ee05cf9-6657-4fed-ae93-f40db852f1db-image.png" class="img-responsive img-markdown" /></p>
<h1>Methodology</h1>
<p dir="auto">For the mortality study &amp; lapse study in Category I, it’s easy to see that they both focus on decrement rate, but one is for mortality rate, the other one is for lapse rate. In fact, there are many different EA classified by product line and decrement type. Usually, this type of analysis will be carried out across the insurance industry to produce industry standard tables. While some insurance companies will also do this when their data is credible enough. The calculation logic is quite close: use the decrement amount counted at age x divided by the exposure amount at age x. For E.g. use dx/Ex to get the mortality rate. But there’s still a difference in the calculation of exposure amount. (This can be another question).<br />
For A/E study, it’s usually used by companies with data only credible at the company level. By applying their A/E ratios to experience tables, a company can produce actual rates that match their overall experience. The A/E ratio at each age x is calculated by the actual death amount at age x: dx/ expected death amount at age x. The experience table could be industry-standard table or a standard table produced by the company itself.<br />
For the Utilization study, it comprises the calculation of Frequency, Severity, Loss Ratio and so on in order to control rates of the event it observes. As for Medical products, there may be multiple claims for prescription drugs. In order to better estimate the expected claim amount, the company may use the historical data to do experience study, estimate: frequency rate over the year of age x: fx= nx( number of claims over age x)/Ex; severity rate over age x: Sx= Cx (total claim amount incurring at age x)/nx.</p>
<ul>
<li>After all, the scope of usage is of great importance when we try to apply A/E to do adjustments. Like for HKA18 <a href="https://www.actuaries.org.hk/storage/download/20200830%20ASHK%20Mortality%20Studies%20HKA18%20(Final)%20(Clean)_Updated.pdf" rel="nofollow">REPORT ON HONG KONG ASSURED LIVES MORTALITY 2018</a> in Hong Kong, it’s produced based on data from fully underwritten, individual &amp; duration &gt;2 policies. So we need to do appropriate adjustments based on our requirements for valuation/pricing targets.</li>
<li>Comparing with other products, EA for CI product is a little different. Besides calculating the incidence rate from experience, we also need to estimate the  Cause Breakdown of CI product. Due to the Critical illness definitions are not standardized in Hong Kong, if we want to use industry table for pricing/valuation purposes, we need to do further adjustments.<br />
NB:</li>
<li>Death coverage &amp; CI product both focus on incidence rate &amp; improvement rate.</li>
<li>CI types:<br />
(1) standard CI： only cover claim for Critical illness<br />
(2) accelerated CI: cover both CI claim &amp; death claim – while CI occurs, will settle claims immediately. Later if occurs death, the settlement of claim will depend on whether the Max SA exceeds previous claim.<br />
(3) additional CI: with 2 coverages: death &amp; CI. Will pay claim separately once the 2 prescribed risk incidents occur.</li>
</ul>
]]></description><link>https://actuarygarden.com/topic/273/感谢judy同学投稿-经验分析学习笔记-英文</link><guid isPermaLink="true">https://actuarygarden.com/topic/273/感谢judy同学投稿-经验分析学习笔记-英文</guid><dc:creator><![CDATA[Mengkelyu]]></dc:creator><pubDate>Sun, 28 Apr 2024 05:16:02 GMT</pubDate></item><item><title><![CDATA[最简单的tkinter GUI应用场景]]></title><description><![CDATA[<p dir="auto">先前自己做一些内部开发程序的封装时，一直采用input的语句让用户输入文件路径：</p>
<pre><code>file_path = str(input('请输入文件路径：'))
</code></pre>
<p dir="auto">最近研究GUI时发现了一个对用户更友好的操作，可以利用tkinter库来打开一个窗口，直接选择文件，具体代码及实现效果如下（其中，select_file()是选择文件，select_dierectory()是选择文件夹）</p>
<pre><code>import tkinter as tk
from tkinter import filedialog

def select_file():
    root =tk.Tk()
    root.withdraw() #隐藏主窗口
    file_path = filedialog.askopenfilename()

    return file_path

def select_directory():
    root =tk.Tk()
    root.withdraw() #隐藏主窗口
    dir_path = filedialog.askdirectory()

    return dir_path

if __name__=='__main__':
    select_file()
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1713517029926-aeefbf95-3d04-432c-a322-a22f1bb7c057-image.png" alt="aeefbf95-3d04-432c-a322-a22f1bb7c057-image.png" class="img-responsive img-markdown" /></p>
]]></description><link>https://actuarygarden.com/topic/271/最简单的tkinter-gui应用场景</link><guid isPermaLink="true">https://actuarygarden.com/topic/271/最简单的tkinter-gui应用场景</guid><dc:creator><![CDATA[Brad]]></dc:creator><pubDate>Fri, 19 Apr 2024 08:58:37 GMT</pubDate></item><item><title><![CDATA[SA 2 复习笔记]]></title><description><![CDATA[SA2.docx
版本02
]]></description><link>https://actuarygarden.com/topic/204/sa-2-复习笔记</link><guid isPermaLink="true">https://actuarygarden.com/topic/204/sa-2-复习笔记</guid><dc:creator><![CDATA[Mengkelyu]]></dc:creator><pubDate>Mon, 15 Apr 2024 11:35:49 GMT</pubDate></item><item><title><![CDATA[有一起考MAS-II的朋友吗？一起交流下题目吧]]></title><description><![CDATA[<p dir="auto">有一起考MAS-II的朋友吗？一起交流下题目吧</p>
]]></description><link>https://actuarygarden.com/topic/270/有一起考mas-ii的朋友吗-一起交流下题目吧</link><guid isPermaLink="true">https://actuarygarden.com/topic/270/有一起考mas-ii的朋友吗-一起交流下题目吧</guid><dc:creator><![CDATA[jennifer]]></dc:creator><pubDate>Mon, 26 Feb 2024 08:50:36 GMT</pubDate></item><item><title><![CDATA[[调查] 做精算师的大家，对刚刚入行&#x2F;想入行的学生有什么建议？]]></title><description><![CDATA[<p dir="auto">做精算师的大家，对刚刚入行/想入行的学生有什么建议？或者说如果可以和当时的自己对话，现在的你有什么想分享的建议吗？<br />
欢迎大家畅所欲言</p>
]]></description><link>https://actuarygarden.com/topic/269/调查-做精算师的大家-对刚刚入行-想入行的学生有什么建议</link><guid isPermaLink="true">https://actuarygarden.com/topic/269/调查-做精算师的大家-对刚刚入行-想入行的学生有什么建议</guid><dc:creator><![CDATA[Mengkelyu]]></dc:creator><pubDate>Mon, 19 Feb 2024 04:46:53 GMT</pubDate></item><item><title><![CDATA[AI终于要取代精算师了？？Excel公式解释，VBA自动编写神器]]></title><description><![CDATA[解释公式：



]]></description><link>https://actuarygarden.com/topic/264/ai终于要取代精算师了-excel公式解释-vba自动编写神器</link><guid isPermaLink="true">https://actuarygarden.com/topic/264/ai终于要取代精算师了-excel公式解释-vba自动编写神器</guid><dc:creator><![CDATA[Mengkelyu]]></dc:creator><pubDate>Mon, 25 Dec 2023 04:28:08 GMT</pubDate></item><item><title><![CDATA[如何在Excel中使用ChatGPT]]></title><description><![CDATA[代码部分
Option Explicit

  
  Const key = "your key" # 这里写入我们在准备工作中拿到的API Key
  Sub SendQuestionToGPT3()
  'Declare variables
  
  Dim request As Object
  Dim response As String
  Dim API As String
  
  API = key 
#这里我们把问题放到了B3里面
  Dim question As String
  question = """" &amp; Range("B3").Value &amp; """"

#创建HTTP request
  Set request = CreateObject("MSXML2.XMLHTTP")

#设置HTTP 请求
  request.Open "POST", "https://api.chatanywhere.com.cn/v1/chat/completions", False
  request.setRequestHeader "Content-Type", "application/json"
  request.setRequestHeader "Authorization", "Bearer " &amp; API
  request.send "{""model"": ""gpt-3.5-turbo"",""messages"": [{""role"": ""user"", ""content"": " &amp; question &amp; "}],""temperature"": 0.7 }"

  #解析返回值，这里用到了我们刚刚import进去的library
  response = request.responseText
response = Replace(response, "[{", "{")
response = Replace(response, "}]", "}")
Dim ParsedResponse As Object
Set ParsedResponse = JsonConverter.ParseJson(response)

#把返回的答案输入到excel里面
  Range("B6").Value = ParsedResponse("choices")("message")("content")
  'Clean up the object
  Set request = Nothing
End Sub




]]></description><link>https://actuarygarden.com/topic/263/如何在excel中使用chatgpt</link><guid isPermaLink="true">https://actuarygarden.com/topic/263/如何在excel中使用chatgpt</guid><dc:creator><![CDATA[Mengkelyu]]></dc:creator><pubDate>Sun, 24 Dec 2023 05:23:17 GMT</pubDate></item></channel></rss>