The $36 million increase in net income relative to the prior year was primarily attributable to an increase in net interest income of $45 million and a change in other income/(loss) of $19 million, partially offset by an increase of $21 million in the Bank's provision for credit losses.
The $45 million increase in net interest income for 2022 was primarily attributable to higher yields on growing average balances of advances and investments (primarily Federal funds sold), which was partially offset by higher funding levels with higher interest costs and a decrease in net gains on designated fair value hedges.
The $19 million change in other income/(loss) for 2022 was primarily driven by $28 million in settlement proceeds received in 2022 from the final resolution of putback litigation, to which the Bank was not a party, involving three private-label residential mortgage-backed securities' (PLRMBS) trusts, including one trust in which the Bank owns a certificate.
The increase of $21 million in the provision for credit losses for 2022 was largely attributable to declines in the fair values and the present value of expected cash flows of certain PLRMBS.
For the fourth quarter of 2022, net income was $117 million, an increase of $50 million compared to the same period during the prior year. The increase was primarily attributable to an increase in net interest income of $62 million, which was driven by higher yields on growing average balances of advances and investments (primarily Federal funds sold), and partially offset by higher funding levels with higher interest costs. Additionally, the provision for credit losses increased by $4 million, primarily attributable to a decline in the fair values of certain PLRMBS.
At December 31, 2022, total assets were $121.1 billion, an increase of $67.0 billion from $54.1 billion at December 31, 2021. Advances increased to $89.4 billion at December 31, 2022, from $17.0 billion at December 31, 2021, an increase of $72.4 billion, as member demand for primarily short-term advances increased. Total investments decreased by $5.5 billion to $30.3 billion at December 31, 2022, from $35.8 billion at December 31, 2021. The decrease in investments primarily reflected declines of $8.5 billion in securities purchased under agreements to resell and $2.2 billion in mortgage-backed securities, which were partially offset by increases of $3.3 billion in U.S. Treasury securities and $2.6 billion in interest-bearing deposits to support the Bank's liquidity requirements.
As of December 31, 2022, the Bank complied with all regulatory capital requirements. The Bank exceeded its risk-based capital requirement of $898 million with $7.8 billion in permanent capital and exceeded the 4.0% regulatory requirement with a regulatory capital ratio of 6.4% at December 31, 2022. The decline in the regulatory capital ratio from 10.9% at December 31, 2021, was mainly attributable to an increase in total assets. Total retained earnings increased to $4.0 billion as of December 31, 2022, from $3.8 billion at yearend 2021.
Today, the Bank’s board of directors declared a quarterly cash dividend on the average capital stock outstanding during the fourth quarter of 2022 at an annualized rate of 7.00%. The quarterly dividend rate is consistent with the Bank's dividend philosophy of endeavoring to pay a quarterly dividend at a rate between 5% and 7% annualized. The quarterly dividend will total $63 million, and the Bank expects to pay the dividend on March 10, 2023.