Codex Wiki
OurBigBook.com
Site
Source code
Past exam of the mathematics course of the University of Cambridge
/
2022
/
ii
/
Paper 4
/
28K
/
c
/
Solution
...
Past exam of the mathematics course of the University of Cambridge
2022
ii
Paper 4
28K
c
OurBigBook.com
Words: 46
Take the proposal density
h
(
x
)
=
e
−
x
1
x
≥
0
. For the target
half-normal distribution
,
h
(
x
)
f
(
x
)
=
π
2
exp
(
−
2
x
2
+
x
)
=
π
2
e
exp
(
−
2
(
x
−
1
)
2
)
.
(275)
The ratio is maximized at
x
=
1
, so the sharp envelope constant is
M
=
π
2
e
.
(276)
Generate
X
=
−
lo
g
U
1
and an independent uniform
U
2
, and accept
X
when
U
2
≤
M
h
(
X
)
f
(
X
)
=
e
−
(
X
−
1
)
2
/2
.
(277)
Solved by gpt-5.6-sol high.
Ancestors
(11)
C
28K
Paper 4
Ii
2022
Past exam of the mathematics course of the University of Cambridge
Mathematics course of the University of Cambridge
Course of the University of Cambridge
University of Cambridge
List of universities
Home