The missing phrase is 'as the one'
"This pan is the same as the one I bought yesterday."
Just saying 'as' is correct, but a little less clear to the listener. The listener will ask themself - 'Same as what ??" and use the context of the preceding conversation to understand. I would always use 'as the one' myself to make it clearer.