IMAGE CREDIT: TBIT ON PIXABAY.

It was a good week to have money in the markets, as the S&P 500 inched 0.80% higher during the last few trading days. The famous index has now fully recovered from its horrendous start to the year and is officially crossed into positive territory year to date.

However, those gains didn't find their way into the healthcare sector this week as many of the most popular ETFs that invest in the industry ended the week in the red. Healthcare ETFs had such a poor performance that this week's top performer -- the iShares Dow Jones US Healthcare Provider ETF (IHF 1.78%) -- still showed a 0.69% loss during the period.

IHF Price Chart

IHF Price data by YCharts

Still, this was a much better showing than many other healthcare ETFs, most of which dropped at least 2% in value.

So what's inside the iShares Dow Jones US Healthcare Provider ETF that allowed it to largely sidestep the sector-wide selloff this week?

Peaking inside
One way that the IHF sets itself apart from other healthcare ETFs is that is keeps the bulk of its assets concentrated in just a handful of stocks. You might assume that doing so would make the fund's share price quite volatile, but in fact the opposite is true. This fund sports an equity beta of only 0.48, meaning that its volatility is less than half of the markets in general.

How does the fund manage to do so? It's trick is to keep the majority of its assets in a handful of giant health insurers, which tend to have stock prices that are less volatile than average. 

Take a quick glance at this fund's current top 10 positions to see what I mean:

CompanySymbol% Assets
UnitedHealth Group UNH 14.15%
Aetna AET 6.92%
Express Scripts Holding Company ESRX 6.91%
Anthem ANTM 6.69%
Cigna CI 6.62%
Humana HUM 5.55%
HCA Holdings HCA 5.07%
DaVita Healthcare Partners DVA 3.21%
Laboratory Corporation of America LH 3.03%
Universal Health Services UHS 2.91%

DATA SOURCE: ISHARES.

As you can see, five of this fund's top 10 holdings are giant health insurance companies. Those companies make up nearly 40% of the funds total assets, so when health insurance stocks outperform the healthcare sector in general -- as they did over the past few trading session -- then the IHF tends to outperform.

What went right this week?
The majority of this funds top holdings put up relatively muted performances this week. With earnings season in the rear view mirror there simply wasn't a lot of big news to justify huge price swings from the group.

However, two of the funds top holdings -- DaVita Healthcare Partners (DVA 2.00%) and UnitedHealth Group (UNH 1.68%) -- put up a decent performance this week, as each posted a gain of more than 1%.

UNH Price Chart

The reason behind DaVita HealthCare Partners risk this week is unclear, but the company was in the news this week. DaVita was recognized by Fortune magazine as one of the 'world's most admired companies', which is the ninth year in a row that the company has made the list. In addition, Fortune also ranked DaVita first for innovation in the healthcare medical facilities category, making it the sixth time that the firm has nabbed the honor. 

UnitedHealth Group's stock also had a good week as it too was in the news. The company announced that OptumRx, United's pharmacy benefit manager division, has signed an agreement with retail pharmacy giant Walgreens Boots Alliance (WBA 3.37%). The deal will allow OptumRx customers to fill their 90-day prescriptions at any one of Walgreen's retail stores for the same cost as the company's mail deliver service, which quite often is cheaper. The deal will kick off at the start of 2017.

While the financial terms of the deal were not released publicly, the agreement looks like it could be a big win for UnitedHealth Group as it will give OptumRx customers a more convenient way to pick up their drugs. That could help it compete more effectively against its main rivals, CVS Health and Express Scripts.

What's next for the IHF?
The healthcare sector has been in the doghouse for several months now, which is mostly owed to investors fleeing from the biotech sector. That's evidenced by the fact that several ETFs that invest primarily in biotech stocks are down more than 25% year to date. 

With that kind of carnage going investors who are worried that the sell-off could continue might want to give the IHF a closer look, as it offers a lower risk way to put money to work in the healthcare sector.