Nintendo hasn't published the exact algorithm, but the scoring mirrors real ten-pin bowling with motion-input modifiers:
Bottom line: Bowl consistently—straight, moderate speed, slight hook—and your Mii's skill will climb, making strikes more forgiving.