If you know anyone with a similar bike you can try part swapping before you buy. Find a willing donor with a similar bike model and try a temporary carb swap. You can at least eliminate or confirm if the carburetor has anything to do with the problem. If the problem goes away, you know where to focus. If the problem persists after temporary carb swap you can follow the electrical path.