To transfer a math/stats course from outside Binghamton University for credit, you must receive pre-approval from the math & stats department's Director of Undergraduate Studies. Not all courses can be transferred, hence it is important to have the course content reviewed before you take them. To this end,
Online courses (especially asynchronous ones) are generally not approved for transfer (in some cases, transfer credits may be granted after passing our final exam with a grade of C or better.)
Courses from non-US institutions are typically not accepted, although there are exceptions for certain programs such as study abroad (excluding winter or summer sessions). More information on the rationale can be found here.