How do I mitigate my group project members plagiarizing off me and taking advantage of me? In a Statistics related class, Whenever I do a group project, my group members don't know how to do anything as much as I do, and if it's a big group such a 5 person group, one person may help me write. The other person doesn't have any original ideas and will do some small tasks I tell them to do, and the rest don't know how to program. 

I end up doing most of the work because I don't want to receive a bad grade, and I put everything in the project report. The professor doesn't really care about a fair division of labor, and on the day before presentations everyone ends up reading my project report, and especially the two people who did nothing just memorize what I said, then since the professor says everyone has to speak during the presentation, they end up stealing my lines, and I end up divide my work and sharing credit for it and throw it to charity. 

How do I mitigate my group members plagiarizing off me and taking advantage of me?
This doesn't happen when I work with people who actually understand what they're doing in class, and it's not a big deal when a project isn't worth 40 percent of the grade. 

The only benefit is that I know how to code everything, and they don't but the professor doesn't check who coded what or care. They don't seem to care or they don't know how to code and can't help themselves help me.

The problem is in an introductory freshman graduate course, I don't know who's capable of doing good work, and I can only seek the "smart" people as I gain knowledge of who's capable and not capable. 

The professor is clueless and expects that everyone is capable of either coding well or having original Innovative ideas. But that isn't true. Some people neither are original nor code well. He expects us to play nice with each other. 

Since I end up doing all the work, by presentation day, I'm also too exhausted to present well, and I can't shake things up, and I thought about quitting the group and doing things on my own, but should I do that? The people in my group are close and might conspire against me. 

Option one: send the professor an e-mail privately telling him I did everything but per his instructions we have to split up the presentation and everyone pretends they did a fair amount.
May I suggest an alternate point of view? Is it possible that you are grabbing the reins of the project and trying to control it too tightly? 

I bring this up because you mention a couple of times that you are the only one who knows how to program. From my own experience I know that when experienced programmers are compelled to work with inexperienced programmers there is a strong temptation to seize control of the project in order to make sure it is done well. You have to keep in mind though that this is an educational exercise. The goal is not the completion of the project per se, but that the students learn the material by participating in the project. You may be assuring a higher quality result by taking control of the project, but you may be interfering with your fellow students learning the material. It may be time for them to learn how to program.

This may be doubly difficult because it sounds like you are more motivated than your fellow students. I expect that you knew exactly what needed to be done and wanted to come to grips with it, while your fellow students may have been "Yeah sure, whatever". Consider this an opportunity to learn how to engage and motivate your co-workers. You are going to be working on "group projects" most of the rest of your career, so this is an important skill to cultivate.

Of course on top of this is your natural concern about the project grade. I don't know how to ensure that your desire for a top grade doesn't conflict with the needs of your fellow students to get hands on experience or vice versa. I can only suggest that in the worst cases where one of your fellows is simply sitting back with folded arms, you may need to discuss the situation with the professor.