In 2008, Chebikin introduced the alternating descent set, AltDes(σ), of a permutation σ = σ1 ··· σn in the symmetric group Sn as the set of all i such that either i is odd and σi > σi+1 or i is even and σi < σi+1. We can then define altdes(σ) = |AltDes(σ)| and \({{\rm altmaj}(\sigma) = \sum_{i \in AltDes(\sigma)}i}\). In this paper, we compute a generating function for the joint distribution of altdes(σ) and altmaj(σ) over Sn. Our formula is similar to the formula for the joint distribution of des and maj over the symmetric group that was first proved by Gessel. We also compute similar generating functions for the groups Bn and Dn and for r-tuples of permutations in Sn. Finally we prove a general extension of these formulas in cases where we keep track of descents only at positions r, 2r, . . ..