Stack Exchange
log in
users (49)
rooms (38)
faq
orlp
general
recent
conversations
PARI/GP programming
For learning, teaching, and speeding up, PARI/GP programming, ...
orlp
Jan 10, 2020 14:08
@RoddyMacPhee oh hey, sorry, just came here from a recommended meta question don't really have anything to add to the discussion
The Nineteenth Byte
The Nineteenth Byte: General discussion for
codegolf.stackexc...
14
5
orlp
May 23, 2019 18:51
I'm just saying that someone should make some challenge of it
orlp
May 23, 2019 18:51
there's many ideas to go off :P
orlp
May 23, 2019 18:51
@EriktheOutgolfer no idea
orlp
May 23, 2019 17:16
orlp
May 23, 2019 17:16
someone make this into a challenge
orlp
May 1, 2019 20:57
then set it equal to 0 and solve
orlp
May 1, 2019 20:57
wait maybe I can differentiate the variance with respect to
c
orlp
May 1, 2019 20:49
alright yeah, then continue
orlp
May 1, 2019 20:49
ohh
orlp
May 1, 2019 20:48
note the
ti
on the last line
orlp
May 1, 2019 20:48
orlp
May 1, 2019 20:48
yes
orlp
May 1, 2019 20:42
they all sum to
t[x]
which is not linear (but if we wrap the sum in
ti
it will obviously sum to
x
)
orlp
May 1, 2019 20:42
to make it easy to debug I wrap the entire sum in a
ti
orlp
May 1, 2019 20:41
no
orlp
May 1, 2019 20:37
they're probabilities
orlp
May 1, 2019 20:37
the bumps are only a visualization though
orlp
May 1, 2019 20:28
@flawr I am sort of, a linear combination of basis vectors can make any other vector
orlp
May 1, 2019 20:28
and I have no idea if it's even close to optimal
orlp
May 1, 2019 20:28
it has a small kink
orlp
May 1, 2019 20:28
but no mathematical justification
orlp
May 1, 2019 20:28
it's definitely workable
orlp
May 1, 2019 20:28
this is what I got from manually fitting a curve
orlp
May 1, 2019 20:28
imgur.com/a/TZMXxv3
orlp
May 1, 2019 20:25
meaning I only have to find
x
orlp
May 1, 2019 20:25
giving me
y, z
in terms of
x
orlp
May 1, 2019 20:24
leaving out the constant variance
orlp
May 1, 2019 20:24
has been to solve the above system of equations under-determined
orlp
May 1, 2019 20:24
my best result so far
orlp
May 1, 2019 20:22
I don't know what a basis function is
orlp
May 1, 2019 20:20
so we need non-constant variance but I have no idea what/how
orlp
May 1, 2019 20:20
and I've tried various (hehe) constant variances but they all are broken
orlp
May 1, 2019 20:20
since the solution is unique (3 variables, 3 equations) and it doesn't work we know that we can't have constant 1/4 variance
orlp
May 1, 2019 20:18
but the probabilities aren't in [0, 1]
orlp
May 1, 2019 20:18
and the average does come to
c
orlp
May 1, 2019 20:18
the variance is 1/4
orlp
May 1, 2019 20:18
yes, the probabilities sum to 1
orlp
May 1, 2019 20:17
it's not correct
orlp
May 1, 2019 20:17
@flawr unfortunately the result is a total mess
orlp
May 1, 2019 20:17
orlp
May 1, 2019 20:11
that was the next logical step
orlp
May 1, 2019 20:11
@flawr
i.imgur.com/D6IRQiy.png
orlp
May 1, 2019 20:06
and their variances to the
y = 1/4
curve
orlp
May 1, 2019 20:06
it really is quite magic that these curves perfectly add up to the
y = x
curve :D
orlp
May 1, 2019 20:06
we just have 3 functions in the neighbourhood of any
c
orlp
May 1, 2019 20:05
because instead of having to solve integration
orlp
May 1, 2019 20:05
this way simplifies the problem immensely
orlp
May 1, 2019 20:05
and c = 3 has the highest chance of quantizing to 3
orlp
May 1, 2019 20:04
but c = 4 has a small chance of quantizing to 3