This file is indexed.

/usr/share/openturns/validation/ValidChiSquare.txt is in openturns-validation 1.5-7build2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
> restart:
> with(Statistics):
> assume(u>0,alpha>0):
> chisquare_:=RandomVariable(ChiSquare(nu)):
> pdf:=subs(u=x,PDF(chisquare_,u));
> ddf:=factor(diff(pdf,x));
> cdf:=subs(u=x,CDF(chisquare_,u));
> cf:=CharacteristicFunction(chisquare_,x);
> mu_:=Mean(chisquare_);
> evalf[25](mu_);
> var_:=Variance(chisquare_);
> evalf[25](sqrt(var_));
> evalf[25](var_);
> skew_:=simplify((Skewness(chisquare_)));
> evalf[25](skew_);
> kurt_:=simplify((Kurtosis(chisquare_)));
> evalf[25](kurt_);
> #qdf:=Quantile(chisquare_,p);
> qdf:=proc(q,valnum)
>   fsolve(subs(valnum,cdf)=q,x)
> end:
> pdfgr:=[diff(pdf,nu)];
> cdfgr:=[diff(cdf,nu)];
> valnum:=nu=1.5;
> evalf(subs(valnum,x=1,ddf));
> evalf(subs(valnum,x=1,pdf));
> evalf(subs(valnum,x=1,cdf));
> evalf(subs(valnum,x=1,cf));
> evalf(subs(valnum,x=1,map(_x->_x,pdfgr)));
> evalf(subs(valnum,x=1,cdfgr));
> evalf(qdf(0.95,valnum));
> evalf(subs(valnum,mu_));
> evalf(subs(valnum,sqrt(var_)));
> evalf(subs(valnum,skew_));
> evalf(subs(valnum,kurt_));
> evalf(subs(valnum,var_));

                            / nu     \
                            |---- - 1|
                            \ 2      /
                           x           exp(- x/2)
                    pdf := ----------------------
                             / nu \
                             |----|
                             \ 2  /        nu
                            2       GAMMA(----)
                                           2


                       / nu     \
                       |---- - 1|
                       \ 2      /
                      x           exp(- x/2) (-2 + nu - x)
           ddf := 1/2 ------------------------------------
                              / nu \
                              |----|
                              \ 2  /        nu
                             2       GAMMA(----) x
                                            2


                                       nu
                                GAMMA(----, x/2)
                                       2
                     cdf := 1 - ----------------
                                         nu
                                  GAMMA(----)
                                         2


                                       /   nu \
                                       |- ----|
                                       \   2  /
                      cf := (1 - 2 I x)


                              mu_ := nu


                                  nu


                             var_ := 2 nu


                                                1/2
                   1.414213562373095048801689 nu


                                2. nu


                                       1/2
                                    2 2
                           skew_ := ------
                                      1/2
                                    nu


                      2.828427124746190097603378
                      --------------------------
                                  1/2
                                nu


                                  3 (4 + nu)
                         kurt_ := ----------
                                      nu


                             3. (4. + nu)
                             ------------
                                  nu


                  / nu     \
                  |---- - 1|
                  \ 2      /
                 x           exp(- x/2) ln(2)
  pdfgr := [-1/2 ----------------------------
                      / nu \
                      |----|
                      \ 2  /        nu
                     2       GAMMA(----)
                                    2

                / nu     \
                |---- - 1|
                \ 2      /                 nu
               x           exp(- x/2) Psi(----)
                                           2
         - 1/2 --------------------------------
                      / nu \
                      |----|
                      \ 2  /        nu
                     2       GAMMA(----)
                                    2

                / nu     \
                |---- - 1|
                \ 2      /
               x           ln(x) exp(- x/2)
         + 1/2 ----------------------------]
                    / nu \
                    |----|
                    \ 2  /        nu
                   2       GAMMA(----)
                                  2


              /           nu
  cdfgr := [- |1/2 GAMMA(----, x/2) ln(x/2)
              \           2

                                              nu             \   /
         + 1/2 MeijerG([[], [1, 1]], [[0, 0, ----], []], x/2)|  /
                                              2              / /

                                 nu             nu
                          GAMMA(----, x/2) Psi(----)
               nu                2              2
        GAMMA(----) + 1/2 --------------------------]
               2                        nu
                                 GAMMA(----)
                                        2


                          valnum := nu = 1.5


                            -0.2207281535


                             0.2943042047


                             0.5279371097


                    0.3689252084 + 0.4036879325 I


                            [0.0577886465]


                           [-0.2917142294]


                             4.980195284


                                 1.5


                             1.732050807


                             2.309401076


                             11.00000000


                                 3.0

> combine(factor(pdfgr[1]/pdf),ln);

                                         1/2  1/2
                              nu        2    x
                    -1/2 Psi(----) + ln(---------)
                              2             2

>