I tried to prove the following Chernoff-type bound when doing research, and found that it is of indepent interest.
Let $X_1, \dots, X_n$ be independent random varibles such that each $X_i$ is a Bernoulli random varible with parameter $p$, i.e., $\Pr[X = 1] = 1 - \Pr[X = 0] = p$.
Moreover, we have weights $a_1, \dots, a_n \in [0, \tau]$, and write $S := \sum_{i = 1}^n a_iX_i$.
I tried to show that
$$
\Pr[S > \mathbf{E}[S] + t] \leq \exp\left(-\frac{Ct^2}{np\tau^2}\right), \forall t > 0
$$
where $C$ is a constant.
One can surely apply Hoeffding bound here, which yields $$ \Pr[S > \mathbf{E}[S] + t] \leq \exp\left(-\frac{2t^2}{n\tau^2}\right), \forall t > 0. $$ The drawback is that Hoeffding bound only uses the range of the random variables, however, it does not exploit the property that $X_i$'s are Bernoulli variables, and hence a $p$ factor is missing.
I tried to adapt the proof of Chernoff bound, but unfortunately failed. I would apprecaite it if anyone have some idea on it.