Unplanned inventory investment refers to the changes in the stock of unsold goods that occur when actual sales differ from expected sales. This concept is crucial as it indicates whether businesses are producing too much or too little relative to demand, impacting their production and investment decisions. When companies face unplanned inventory changes, they must adjust their production levels to align with market demand, which can affect overall economic activity and investment function in the economy.