Re: 回复: [chrony-users] question about the values in critical_runs array |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: 回复: [chrony-users] question about the values in critical_runs array
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Thu, 18 Jul 2024 15:04:09 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1721309001; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3jeaJ4VMtwiAd56jRhES3V/MubfmqlF8hrDCVXsp71Q=; b=cNIWEo47V7Dlp65io8enEgsijFioLTzfD3uXV9nLwPD6iBhFoab/aKIUW5zegKaz7gX1/N 18UW6k8WRMDKcFmzvWRezPz9Nz/Ltf7xhBaTMxXB9SItEuo8Ort32CzzxSrEmbvHt1jmE5 sy6yl3dFcdOQ5MU1pOHnbT1dZ+l3s7A=
On Tue, Jul 09, 2024 at 11:34:04AM +0000, 邹林志08963 wrote:
> I found a formula on the web:
>
> Z = [ r - E(r) ] / sigma
>
> E(r) = ( 2 * n1 * n2 ) / ( n1 + n2 ) + 1,
>
> sigma = sqrt{ [ 2 * n1 * n2 * ( 2 * n1 * n2 - n1 - n2 ) ] / [ ( n1 + n2 ) * ( n1 + n2 ) * ( n1 + n2 -1 ) ] }
>
> if Z is z , r is runs , E(r) is mu , sigma is sqrt(var), then r = Z * sigma + E(r).
>
> should runs be "mu + sqrt(var)" or "mu -sqrt(var)" ?
I'm not sure what exactly you are pointing out here, but in our case
we care only about the lower bound to increase the number of runs when
it's lower than expected for the number of samples. If the number of
runs is too high, we don't care.
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.