Not all rays are stingrays. My understanding of this behavior, which is also seen in the mobula rays in the Sea of Cortez, is that it is to dislodge parasites. However, escaping a predator would also make sense. When I do it, it is just to show off.
Welcome to ScubaBoard, the world's largest scuba diving community. Registration is not required to read the forums, but we encourage you to join. Joining has its benefits and enables you to participate in the discussions.
Benefits of registering include