I have n (much larger than 2) coins that can give Head or Tail in a toss. For each coin, I have one sequence of trials which may have different lengths. For example, a conceptualized dataset could look like: Coin 1: HHT Coin 2: HHTTHHTHTTHHHTTHTHHHHH Coin 3: THHHTTHHTTTTTTT
I would like to test whether all coins are identical, i.e., whether they have the same probability of giving Head or Tail. How would you approach this problem? Thank you.