Mortgage-Backed and Credit Risk Transfer Securities | Mortgage-Backed and Credit Risk Transfer Securities The following tables summarize our mortgage-backed securities ("MBS") and GSE CRT portfolio by asset type as of June 30, 2018 and December 31, 2017 . June 30, 2018 $ in thousands Principal/ Notional Balance Unamortized Premium (Discount) Amortized Cost Unrealized Gain/ (Loss), net Fair Value Period- end Weighted Average Yield (1) Quarterly Weighted Average Yield (2) Agency RMBS: 15 year fixed-rate 2,532,605 85,680 2,618,285 (95,101 ) 2,523,184 2.32 % 1.99 % 30 year fixed-rate 7,602,464 284,277 7,886,741 (221,602 ) 7,665,139 3.14 % 2.95 % ARM * 215,178 1,300 216,478 (1,677 ) 214,801 2.58 % 2.43 % Hybrid ARM 1,566,739 23,143 1,589,882 (22,831 ) 1,567,051 2.56 % 2.28 % Total Agency RMBS pass-through 11,916,986 394,400 12,311,386 (341,211 ) 11,970,175 2.88 % 2.65 % Agency-CMO (3) 995,408 (745,565 ) 249,843 (11,027 ) 238,816 3.26 % 3.04 % Agency CMBS 150,268 1,940 152,208 19 152,227 3.46 % 3.63 % Non-Agency CMBS (4) 3,871,603 (700,887 ) 3,170,716 (19,479 ) 3,151,237 5.02 % 4.95 % Non-Agency RMBS (5)(6)(7) 2,945,105 (1,851,911 ) 1,093,194 126,882 1,220,076 7.09 % 7.12 % GSE CRT (8) 744,545 22,913 767,458 83,198 850,656 2.81 % 3.37 % Total 20,623,915 (2,879,110 ) 17,744,805 (161,618 ) 17,583,187 3.53 % 3.36 % * Adjustable-rate mortgage ("ARM") (1) Period-end weighted average yield is based on amortized cost as of June 30, 2018 and incorporates future prepayment and loss assumptions. (2) Quarterly weighted average yield for the period was calculated by dividing interest income, including amortization of premiums and discounts, by the average balance of the amortized cost of the investments. All yields are annualized. (3) Agency collateralized mortgage obligation ("Agency-CMO") includes interest-only securities ("Agency IO"), which represent 79.3% of principal/notional balance, 17.0% of amortized cost and 16.1% of fair value. (4) Non-Agency CMBS includes interest-only securities which represent 15.7% of principal/notional balance, 0.5% of amortized cost and 0.6% of fair value. (5) Non-Agency RMBS held by us is 47.6% variable rate, 46.0% fixed rate and 6.4% floating rate based on fair value. (6) Of the total discount in non-Agency RMBS, $190.7 million is non-accretable calculated using the principal/notional balance and based on estimated future cash flows of the securities. (7) Non-Agency RMBS includes interest-only securities ("Non-Agency IO") which represent 55.7% of principal/notional balance, 2.4% of amortized cost and 2.3% of fair value. (8) GSE CRT weighted average yield excludes coupon interest associated with embedded derivatives not accounted for under the fair value option that is recorded as realized and unrealized credit derivative income (loss), net. December 31, 2017 $ in thousands Principal/Notional Balance Unamortized Premium (Discount) Amortized Cost Unrealized Gain/ (Loss), net Fair Value Period- end Weighted Average Yield (1) Quarterly Weighted Average Yield (2) Agency RMBS: 15 year fixed-rate 2,917,307 119,120 3,036,427 (61,645 ) 2,974,782 2.17 % 1.98 % 30 year fixed-rate 7,354,211 295,977 7,650,188 (9,648 ) 7,640,540 3.09 % 2.90 % ARM 238,486 1,609 240,095 1,105 241,200 2.60 % 2.36 % Hybrid ARM 1,696,148 26,066 1,722,214 (2,829 ) 1,719,385 2.54 % 2.25 % Total Agency RMBS pass-through 12,206,152 442,772 12,648,924 (73,017 ) 12,575,907 2.79 % 2.58 % Agency-CMO (3) 1,226,539 (942,290 ) 284,249 (10,306 ) 273,943 2.91 % 2.74 % Non-Agency CMBS (4) 3,879,775 (704,097 ) 3,175,678 40,739 3,216,417 4.92 % 4.77 % Non-Agency RMBS (5)(6)(7) 2,785,704 (1,661,683 ) 1,124,021 133,587 1,257,608 7.19 % 7.18 % GSE CRT (8) 757,183 24,306 781,489 85,390 866,879 2.45 % 2.79 % Total 20,855,353 (2,840,992 ) 18,014,361 176,393 18,190,754 3.42 % 3.27 % (1) Period-end weighted average yield is based on amortized cost as of December 31, 2017 and incorporates future prepayment and loss assumptions. (2) Quarterly weighted average yield for the period was calculated by dividing interest income, including amortization of premiums and discounts, by the average balance of the amortized cost of the investments. All yields are annualized. (3) Agency collateralized mortgage obligation ("Agency-CMO") includes interest-only securities ("Agency IO"), which represent 81.8% o f principal (notional) balance, 20.9% of amortized cost and 18.7% of fair value. (4) Non-Agency CMBS includes interest-only securities which represent 15.8% of principal/notional balance, 0.5% of amortized cost and 0.6% of fair value. (5) Non-Agency RMBS held by us is 52.2% variable rate, 37.8% fixed rate, and 10.0% floating rate based on fair value. (6) Of the total discount in non-Agency RMBS, $195.3 million is non-accretable calculated using the principal/notional balance and based on estimated future cash flows of the securities. (7) Non-Agency RMBS includes interest-only securities, which represent 51.5% of principal/notional balance, 2.0% of amortized cost and 1.8% of fair value. (8) GSE CRT weighted average yield excludes coupon interest associated with embedded derivatives not accounted for under the fair value option that is recorded as realized and unrealized credit derivative income (loss), net. The following table presents the fair value of our available-for-sale securities and securities accounted for under the fair value option by asset type as of June 30, 2018 and December 31, 2017 . We have elected the fair value option for all of our RMBS IOs, our MBS purchased on or after September 1, 2016 and our GSE CRTs purchased on or after August 24, 2015. As of June 30, 2018 and December 31, 2017, approximately 41% and 36% , respectively, of our MBS and GSE CRTs are accounted for under the fair value option. June 30, 2018 December 31, 2017 $ in thousands Available-for-sale Securities Securities under Fair Value Option Total Fair Value Available-for-sale Securities Securities under Fair Value Option Total Agency RMBS: 15 year fixed-rate 2,170,906 352,278 2,523,184 2,842,440 132,342 2,974,782 30 year fixed-rate 2,216,755 5,448,384 7,665,139 2,467,871 5,172,669 7,640,540 ARM * 214,801 — 214,801 241,200 — 241,200 Hybrid ARM 1,535,502 31,549 1,567,051 1,719,385 — 1,719,385 Total RMBS Agency pass-through 6,137,964 5,832,211 11,970,175 7,270,896 5,305,011 12,575,907 Agency-CMO 182,293 56,523 238,816 203,351 70,592 273,943 Agency CMBS — 152,227 152,227 — — — Non-Agency CMBS 2,294,341 856,896 3,151,237 2,376,413 840,004 3,216,417 Non-Agency RMBS 1,075,371 144,705 1,220,076 1,236,178 21,430 1,257,608 GSE CRT 619,553 231,103 850,656 635,537 231,342 866,879 Total 10,309,522 7,273,665 17,583,187 11,722,375 6,468,379 18,190,754 The components of the carrying value of our MBS and GSE CRT portfolio at June 30, 2018 and December 31, 2017 are presented below. June 30, 2018 $ in thousands MBS and GSE CRT Securities Interest-Only Securities Total Principal/ notional balance 17,743,581 2,880,334 20,623,915 Unamortized premium 471,489 — 471,489 Unamortized discount (552,058 ) (2,798,541 ) (3,350,599 ) Gross unrealized gains (1) 253,314 7,010 260,324 Gross unrealized losses (1) (415,201 ) (6,741 ) (421,942 ) Fair value 17,501,125 82,062 17,583,187 December 31, 2017 $ in thousands MBS and GSE CRT Securities Interest-Only Securities Total Principal/ notional balance 17,974,390 2,880,963 20,855,353 Unamortized premium 521,626 — 521,626 Unamortized discount (577,344 ) (2,785,274 ) (3,362,618 ) Gross unrealized gains (1) 336,543 5,113 341,656 Gross unrealized losses (1) (155,146 ) (10,117 ) (165,263 ) Fair value 18,100,069 90,685 18,190,754 (1) Gross unrealized gains and losses includes gains (losses) recognized in net income for securities accounted for as derivatives or under the fair value option as well as gains (losses) for available-for-sale securities which are recognized as adjustments to other comprehensive income. Realization occurs upon sale or settlement of such securities. Further detail on the components of our total gains (losses) on investments, net for the three and six months ended June 30, 2018 and 2017 is provided later in this Note 4. The following table summarizes our MBS and GSE CRT portfolio according to estimated weighted average life classifications as of June 30, 2018 and December 31, 2017 . $ in thousands June 30, 2018 December 31, 2017 Less than one year 135,350 135,559 Greater than one year and less than five years 6,166,267 7,934,836 Greater than or equal to five years 11,281,570 10,120,359 Total 17,583,187 18,190,754 The following tables present the estimated fair value and gross unrealized losses of our MBS and GSE CRTs by length of time that such securities have been in a continuous unrealized loss position at June 30, 2018 and December 31, 2017 . June 30, 2018 Less than 12 Months 12 Months or More Total $ in thousands Fair Value Unrealized Losses Number of Securities Fair Value Unrealized Losses Number of Securities Fair Value Unrealized Losses Number of Securities Agency RMBS: 15 year fixed-rate 385,423 (5,524 ) 87 1,780,406 (92,961 ) 127 2,165,829 (98,485 ) 214 30 year fixed-rate 5,930,551 (182,696 ) 212 890,051 (50,074 ) 58 6,820,602 (232,770 ) 270 ARM 157,531 (2,230 ) 17 530 (26 ) 1 158,061 (2,256 ) 18 Hybrid ARM 852,306 (12,652 ) 94 436,416 (12,707 ) 46 1,288,722 (25,359 ) 140 Total Agency RMBS pass-through (1) 7,325,811 (203,102 ) 410 3,107,403 (155,768 ) 232 10,433,214 (358,870 ) 642 Agency-CMO (2) 149,189 (9,756 ) 43 71,796 (3,873 ) 5 220,985 (13,629 ) 48 Agency CMBS (3) 69,365 (78 ) 1 — — — 69,365 (78 ) 1 Non-Agency CMBS (4) 1,842,373 (35,757 ) 136 207,220 (11,547 ) 17 2,049,593 (47,304 ) 153 Non-Agency RMBS (5) 250,751 (1,687 ) 30 50,145 (374 ) 7 300,896 (2,061 ) 37 Total 9,637,489 (250,380 ) 620 3,436,564 (171,562 ) 261 13,074,053 (421,942 ) 881 (1) Amounts disclosed includes Agency RMBS with a fair value of $ 5.3 billion for which the fair value option has been elected. Such securities have unrealized losses of $ 177.0 million . (2) Amounts disclosed includes Agency IO and Agency-CMO with fair value of $22.4 million and $18.0 million , respectively, for which the fair value option has been elected. These Agency IO and Agency-CMO securities have unrealized losses of $6.5 million and $856,000 , respectively. (3) Fair value option has been elected for all Agency CMBS. (4) Amounts disclosed includes Non-Agency CMBS with a fair value of $693.4 million for which the fair value option has been elected. Such securities have unrealized losses of $21.8 million . (5) Amounts disclosed includes Non-Agency RMBS and Non-Agency IO with a fair value of $111.2 million and $10.7 million , respectively for which the fair value option has been elected. Such securities have unrealized losses of $4,000 and $247,000 , respectively. December 31, 2017 Less than 12 Months 12 Months or More Total $ in thousands Fair Value Unrealized Losses Number of Securities Fair Value Unrealized Losses Number of Securities Fair Value Unrealized Losses Number of Securities Agency RMBS: 15 year fixed-rate 111,020 (321 ) 26 2,406,021 (67,285 ) 133 2,517,041 (67,606 ) 159 30 year fixed-rate 3,677,576 (20,730 ) 107 963,547 (27,158 ) 56 4,641,123 (47,888 ) 163 ARM 101,173 (902 ) 12 — — — 101,173 (902 ) 12 Hybrid ARM 614,321 (4,189 ) 73 517,642 (8,091 ) 47 1,131,963 (12,280 ) 120 Total Agency RMBS pass-through (1) 4,504,090 (26,142 ) 218 3,887,210 (102,534 ) 236 8,391,300 (128,676 ) 454 Agency-CMO (2) 75,299 (10,433 ) 44 81,988 (2,309 ) 5 157,287 (12,742 ) 49 Non-Agency CMBS (3) 892,553 (17,612 ) 81 135,139 (3,792 ) 12 1,027,692 (21,404 ) 93 Non-Agency RMBS (4) 84,439 (709 ) 15 96,263 (1,732 ) 11 180,702 (2,441 ) 26 Total 5,556,381 (54,896 ) 358 4,200,600 (110,367 ) 264 9,756,981 (165,263 ) 622 (1) Amounts disclosed includes Agency RMBS with a fair value of $3.4 billion for which the fair value option has been elected. Such securities have unrealized losses of $ 22.8 million . (2) Amounts disclosed includes Agency IO and Agency-CMO with fair value of $36.5 million and $9.5 million , respectively, for which the fair value option has been elected. These Agency IO and Agency-CMO securities have unrealized losses of $10.1 million and $88,000 , respectively. (3) Amounts disclosed includes Non-Agency CMBS with a fair value of $596.0 million for which the fair value option has been elected. Such securities have unrealized losses of $8.9 million . (4) Amounts disclosed includes Non-Agency IO with a fair value of $530,000 for which the fair value option has been elected. Such securities have unrealized losses of $39,000 . Gross unrealized losses on our Agency RMBS, Agency CMBS and CMO were $366.1 million at June 30, 2018 ( December 31, 2017 : $131.3 million ). Due to the inherent credit quality of Agency RMBS, Agency CMBS and Agency-CMO, we determined that at June 30, 2018 and December 31, 2017 , any unrealized losses on these securities are not other than temporary. Gross unrealized losses on our Agency IO, non-Agency RMBS and non-Agency CMBS were $55.9 million ( December 31, 2017 : $33.9 million ) at June 30, 2018 . We did not consider these unrealized losses to be credit related, but rather due to non-credit related factors such as interest rates, prepayment speeds, and market fluctuations. These investment securities are included in our assessment for other-than-temporary impairment on a quarterly basis. We assess our investment securities for other-than-temporary impairment ("OTTI") on a quarterly basis. When the fair value of an investment is less than its amortized cost at the balance sheet date of the reporting period for which impairment is assessed, the impairment is designated as either "temporary" or "other-than-temporary." This analysis includes a determination of estimated future cash flows through an evaluation of the characteristics of the underlying loans and the structural features of the investment. Underlying loan characteristics reviewed include, but are not limited to, delinquency status, loan-to-value ratios, borrower credit scores, occupancy status and geographic concentration. The following table summarizes OTTI included in earnings for the three and six months ended June 30, 2018 and 2017 : Three Months Ended June 30, Six Months Ended June 30, $ in thousands 2018 2017 2018 2017 RMBS interest-only securities 2,089 3,585 6,398 3,876 Non-Agency RMBS (1) — 513 50 754 Total 2,089 4,098 6,448 4,630 (1) Amounts disclosed relate to credit losses on debt securities for which a portion of an other-than-temporary impairment was recognized in other comprehensive income. OTTI on RMBS interest-only securities was recorded as a reclassification from an unrealized to realized loss within gain (loss) on investments, net on the condensed consolidated statements of operations because we account for these securities under the fair value option. As of June 30, 2018 , we did not intend to sell the securities and determined that it was not more likely than not that we will be required to sell the securities. The following table summarizes the components of our total gain (loss) on investments, net for the three and six months ended June 30, 2018 and 2017 . Three Months Ended June 30, Six Months Ended June 30, $ in thousands 2018 2017 2018 2017 Gross realized gains on sale of investments 35 1,311 35 2,215 Gross realized losses on sale of investments (11,560 ) (1,962 ) (20,797 ) (3,873 ) Other-than-temporary impairment losses (2,089 ) (4,098 ) (6,448 ) (4,630 ) Net unrealized gains and losses on MBS accounted for under the fair value option (22,941 ) 7,715 (170,136 ) 4,113 Net unrealized gains and losses on GSE CRT accounted for under the fair value option 182 8,195 616 11,474 Net unrealized gains and losses on trading securities (4 ) 14 (17 ) 23 Total gain (loss) on investments, net (36,377 ) 11,175 (196,747 ) 9,322 The following tables present components of interest income recognized on our MBS and GSE CRT portfolio for the three and six months ended June 30, 2018 and 2017 . GSE CRT interest income excludes coupon interest associated with embedded derivatives not accounted for under the fair value option that is recorded as realized and unrealized credit derivative income (loss), net. For the three months ended June 30, 2018 $ in thousands Coupon Interest Net (Premium Amortization)/Discount Accretion Interest Income Agency RMBS and CMBS 105,430 (22,275 ) 83,155 Non-Agency CMBS 38,101 1,195 39,296 Non-Agency RMBS 13,195 5,159 18,354 GSE CRT 7,180 (696 ) 6,484 Other 259 — 259 Total 164,165 (16,617 ) 147,548 For the three months ended June 30, 2017 $ in thousands Coupon Interest Net (Premium Amortization)/Discount Accretion Interest Income Agency RMBS and CMBS 91,979 (27,775 ) 64,204 Non-Agency CMBS 31,506 (1,852 ) 29,654 Non-Agency RMBS 18,131 3,734 21,865 GSE CRT 5,556 (347 ) 5,209 Other 95 — 95 Total 147,267 (26,240 ) 121,027 For the six months ended June 30, 2018 $ in thousands Coupon Interest Net (Premium Amortization)/Discount Accretion Interest Income Agency RMBS and CMBS 213,747 (45,497 ) 168,250 Non-Agency CMBS 75,394 2,621 78,015 Non-Agency RMBS 27,207 10,336 37,543 GSE CRT 13,705 (1,393 ) 12,312 Other 431 — 431 Total 330,484 (33,933 ) 296,551 For the six months ended June 30, 2017 $ in thousands Coupon Interest Net (Premium Amortization)/Discount Accretion Interest Income Agency RMBS and CMBS 183,210 (56,353 ) 126,857 Non-Agency CMBS 61,182 (4,486 ) 56,696 Non-Agency RMBS 38,745 8,121 46,866 GSE CRT 10,043 (718 ) 9,325 Other 156 — 156 Total 293,336 (53,436 ) 239,900 |