On 10.02.2023, at 09:22, Dang Ngoc Chan, Christophe <christophe.d...@sidel.com> wrote: > > Hello Heinz, > >> De : Heinz Nabielek <heinznabie...@gmail.com> >> Envoyé : jeudi 9 février 2023 13:36 >> >> Result is then >> [...] >> >> However, EXCEL conf=0.95 gives me: >> [...] > > Sorry, I don't know particularly the chi-square distribution, I suppose you > don't ask the same question to both softwares. > > If you use for XL > > Xmax=CHIINV((1-conf)/2,2*(n+1))/2 > > Then for Scilab, you should use > > N = 1:5 > > P = (1 - 0.5*0.05)*ones(n) > > Q = 1 - P > > [Xmax] = 0.5*cdfchi("X", 2*(n+1), P, Q) > > Which the gives you the same result
n = 1:5 P = (1 - 0.5*0.05)*ones(n) Q = 1 - P Upper95=0.5*cdfchi("X", 2*(n+1), P, Q)' 5.5716434 7.2246877 8.7672731 10.241589 11.668332 Perfect agreement! I should have thought of it myself.............. But: why does it have to be so difficult for an experimental physicist when trying to assess the uncertainties of low numbers? Heinz _______________________________________________ users mailing list - users@lists.scilab.org Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org> https://lists.scilab.org/mailman/listinfo/users This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should not read, disclose, or copy it, (ii) please notify sender of your receipt by reply email and delete this email and all attachments, (iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email. Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer https://www.3ds.com/privacy-policy/contact/