Rejection sampling is a technique used for generating random samples from a probability distribution, given a proposal distribution that is easier to sample from. In this case, you want to sample from a distribution p(x), but you assume it is a sub-Gaussian random variable, which means it has heavier tails than a Gaussian distribution.
Since you don't have an analytical form for the sub-Gaussian distribution, you can still use rejection sampling. However, you can't choose a Gaussian distribution (q(x)) as your proposal distribution if p(x) is a sub-Gaussian distribution. The reason behind this is that a Gaussian distribution has lighter tails than a sub-Gaussian distribution.
Choosing a Gaussian as the proposal distribution would lead to a high rejection rate, as many samples drawn from the Gaussian would have low probabilities according to the target distribution (p(x)). This means that the rejection sampling method would not be efficient, as it would require a large number of samples and computations to generate a single valid sample from the target distribution.
Instead, you can consider using a heavy-tailed distribution, such as a Student's t-distribution, Cauchy distribution, or a mixture of Gaussians as your proposal distribution (q(x)). These distributions have heavier tails than the Gaussian, which makes them more suitable for use with sub-Gaussian target distributions. The choice of the proposal distribution depends on the specific properties of the target distribution, such as its tail behavior and shape.
In summary, using a Gaussian distribution as a proposal in rejection sampling is not suitable when the target distribution (p(x)) is a sub-Gaussian random variable. Instead, you should consider using heavy-tailed distributions as your proposal distribution to improve the efficiency of the rejection sampling algorithm.