|
38 | 38 | "from smodels.base.physicsUnits import fb\n", |
39 | 39 | "from smodels.share.models.mssm import BSMList\n", |
40 | 40 | "from smodels.share.models.SMparticles import SMList\n", |
| 41 | + "from smodels.statistics.basicStats import observed,apriori\n", |
41 | 42 | "from smodels.base.model import Model" |
42 | 43 | ] |
43 | 44 | }, |
|
160 | 161 | }, |
161 | 162 | { |
162 | 163 | "cell_type": "code", |
163 | | - "execution_count": 9, |
| 164 | + "execution_count": null, |
164 | 165 | "metadata": {}, |
165 | | - "outputs": [ |
166 | | - { |
167 | | - "data": { |
168 | | - "text/plain": [ |
169 | | - "[('ATLAS-SUSY-2018-41', 'r_exp=', 0.869),\n", |
170 | | - " ('CMS-SUS-21-002', 'r_exp=', 1.158),\n", |
171 | | - " ('ATLAS-SUSY-2019-08', 'r_exp=', 0.96)]" |
172 | | - ] |
173 | | - }, |
174 | | - "execution_count": 9, |
175 | | - "metadata": {}, |
176 | | - "output_type": "execute_result" |
177 | | - } |
178 | | - ], |
| 166 | + "outputs": [], |
179 | 167 | "source": [ |
180 | 168 | "# let's have a quick look at the predictions, and the (expected) r-values\n", |
181 | | - "[ (x.dataset.globalInfo.id, \"r_exp=\", round(x.getRValue(expected=True),3)) for x in predictions ]" |
| 169 | + "[ (x.dataset.globalInfo.id, \"r_exp=\", round(x.getRValue(evaluationType=apriori),3)) for x in predictions ]" |
182 | 170 | ] |
183 | 171 | }, |
184 | 172 | { |
185 | 173 | "cell_type": "code", |
186 | | - "execution_count": 10, |
| 174 | + "execution_count": null, |
187 | 175 | "metadata": {}, |
188 | | - "outputs": [ |
189 | | - { |
190 | | - "name": "stdout", |
191 | | - "output_type": "stream", |
192 | | - "text": [ |
193 | | - "can I combine ATLAS-SUSY-2018-41 with CMS-SUS-21-002? yes\n", |
194 | | - "can I combine ATLAS-SUSY-2018-41 with ATLAS-SUSY-2019-08? yes\n", |
195 | | - "can I combine CMS-SUS-21-002 with ATLAS-SUSY-2019-08? yes\n" |
196 | | - ] |
197 | | - } |
198 | | - ], |
| 176 | + "outputs": [], |
199 | 177 | "source": [ |
200 | 178 | "for i,pr1 in enumerate(predictions[:-1]):\n", |
201 | 179 | " id1 = pr1.dataset.globalInfo.id\n", |
|
214 | 192 | }, |
215 | 193 | { |
216 | 194 | "cell_type": "code", |
217 | | - "execution_count": 11, |
| 195 | + "execution_count": null, |
218 | 196 | "metadata": {}, |
219 | 197 | "outputs": [], |
220 | 198 | "source": [ |
|
225 | 203 | }, |
226 | 204 | { |
227 | 205 | "cell_type": "code", |
228 | | - "execution_count": 12, |
| 206 | + "execution_count": null, |
229 | 207 | "metadata": {}, |
230 | | - "outputs": [ |
231 | | - { |
232 | | - "data": { |
233 | | - "text/plain": [ |
234 | | - "1.674" |
235 | | - ] |
236 | | - }, |
237 | | - "execution_count": 12, |
238 | | - "metadata": {}, |
239 | | - "output_type": "execute_result" |
240 | | - } |
241 | | - ], |
| 208 | + "outputs": [], |
242 | 209 | "source": [ |
243 | 210 | "# the combined expected r value must be above the individual expected r-values\n", |
244 | | - "round(combiner.getRValue(expected=True),3)" |
| 211 | + "round(combiner.getRValue(evaluationType=apriori),3)" |
245 | 212 | ] |
246 | 213 | }, |
247 | 214 | { |
|
268 | 235 | "name": "python", |
269 | 236 | "nbconvert_exporter": "python", |
270 | 237 | "pygments_lexer": "ipython3", |
271 | | - "version": "3.12.3" |
| 238 | + "version": "3.13.3" |
272 | 239 | } |
273 | 240 | }, |
274 | 241 | "nbformat": 4, |
275 | | - "nbformat_minor": 1 |
| 242 | + "nbformat_minor": 4 |
276 | 243 | } |
0 commit comments