Solid state parts can last decades though. The best way to calculate the rate of return would be to actually get accurate numbers for lifespans for all the parts and amortize them. It's probably greater than 4.5% and lower than 13%. Regardless, at near zero risk, even 5% is a great return these days, so it's totally worth doing.
Since you like the stock analogy -- a share bought at $100, that earns $10 a year, and that for whatever reason we confidently expect to keep earning $10 every year for decades, returns a 10% rate of return. The fact that the stock now sells for $50 makes no difference, as long as we believe we are right and the market is wrong about the likely future earnings.
In a liquid market like the stock market, the odds of this being true is small. Recognizing a 10% return against a stock that's crashed 50% borders on, depending on if you're investing your money or others', delusion and fraud, respectively. There is no liquid secondary market for home-solar components, however, so approximating cash flows and amortization schedules works.
(If you've heard the terms "mark to market" and "mark to model", this is what they're talking about.)
But every year we seem to get better silicon. Better CPUs, GPUS, SSDs, etc. Same holds for photovoltaics.
To run with the investing analogy, it's like claiming you bought a bond with a 5 percent return, when six months later interest rates shift in the bond market. Now the rest of society is getting 7 percent returns, and you have to sell your to sell your bond at a discount to compensate. Sure you can hold the bond to maturity, but you're still missing out on that 2 percent return in the greater market.
Yet that's what most of us keep doing with solar, missing out on a good deal because it gets better every year.
Assuming these are real, not nominal rates, who cares? I'd rather maybe miss out on the extra 2% than definitely miss out on the original 5%. Why be jealous?
You can also hedge your bets by gradually increasing your investment (maybe even "dollar cost averaging" or some other strategy)
For solar, that could mean getting a small system like the OP describes, trying it for a year or two, then expanding it a little more every year or two with the latest cheapest most effecient panels. This should work even better than dollar cost averaging does for securities, since you know it's unlikely the cost of panels will go up.