Buying more expensive manufacturing equipment for your factory is an investment, even if the value of that machine falls after you buy it.
Investments generate an ROI, like the parent gave examples of (rent, dividends, the production of goods). Speculation is about arbitrage and reselling things at higher prices.