By history & imaging
The history giving symptoms of pain in back and/or legs standing and walking relieved by sitting or bending over is classic.
If a vascular reason, same symptoms occur but one can stand in place and not sit or bend for relief. A MRI
or ct will diagnose the stenosis.