Speculation is the purchase of goods for later sale (or temporary sale) in order to profit from changes in their prices.
According to the above definition, the statement 'Mr. Wang bought a house for his own use. After the house price rose, Mr. Wang sold the house to make a profit' is speculation.