Better HN
topnewbestaskshowjobs
Log inSign up

jsprogrammer

1,146 karma · joined Mar 27, 2014 (12y ago) · 3,158 submissions

"went from zero to Godwin in record time"

https://news.ycombinator.com/item?id=12059810

Submissions

comment 10y ago · link · parent

The particular constant block may not matter much.

The curious thing here (for me at least) is all sessions beginning with a constant block of some length.

comment 10y ago · link · parent

This may be true for a single session, but it would seem that having every session begin with the same long text could allow correlations to be drawn on large data sets, potentially leading to full recovery of the sessions.

Do you know of the proof that rules out such a possibility?

comment 10y ago · link · parent

>This particular text isn't a vulnerability (after all, HTTP is full of known plaintext).

This isn't quite a proof. You'd need to show that HTTP is not vulnerable to such an attack.

I don't think HTTP requires a starting block.

HTTP2 apparently requires a client's first message to be/start with:

    0x505249202a20485454502f322e300d0a0d0a534d0d0a0d0a
I'd guess that is much longer than any block that HTTP mandates.

Maybe I am reading things wrong?

comment 10y ago · link · parent

Wouldn't including a constant block at the beginning of every message of the plaintext help to break any ciphertext generated from the plaintext?

comment 11y ago · link · parent

You talking about me?

comment 11y ago · link · parent

>At bare minimum, not allow the same content to be repeatedly uploaded?

How would would they prevent that? Fingerprints are trivially modified.

Do you want them to retain and use known-infringing material?

comment 11y ago · link · parent

>If you just blindly accept DMCA takedown notices you become an avenue for trolls, overzealous lawyers and predatory companies.

If you do not blindly accept DMCA takedown notices, you do not receive its safe harbor protections.

comment 11y ago · link · parent

Counting positive observations vs. total observations is a formality rather than intuition? The formality is the axioms of probability. The intuition is that you make a theory and measure how many predictions it gets right.

comment 11y ago · link · parent

People are buying the food. The "lottery ticket" you get is just a marketing gimmick, not an actual game of chance in exchange for money.

comment 11y ago · link · parent

No. I am referring to lecture 12 (ie. Ch9).

What reformulation of the probability axioms are you using to eliminate the sum in the third axiom?

The axioms may be trivially extended to bounded intervals (a la calculus).

comment 11y ago · link · parent

If you read:

>If Google "guarantees" your funding as long as you write the things they want written, you have a significant incentive to look upon them favorably.

as a type of discrediting due to the source of the "guarantee" on funding, then:

>As an academic, you live or die by your funding.

implies that all live academics are funded. Funding must come from somewhere with some form of guarantee. If we can generalize Google to stand in for any other source of funding, then you have constructed an argument that discredits all live academics.

comment 11y ago · link · parent

Right, so why did I get downvoted?

comment 11y ago · link · parent

H2O is highly caustic.

comment 11y ago · link · parent

>so what's the deal?

I assume you stopped reading mid-sentence.

Getting to orbit from the surface of the earth requires more energy expenditure than "the square" of getting to space.

comment 11y ago · link · parent

>This article conflates two very different things: creating new tolls on existing infrastructure, and creating new toll-funded infrastructures.

The conflation is irrelevant. Both things may be rejected outright without consideration of their subtleties. Infrastructure of the type funded by tolls is massive and takes up significant space. No level of tolling will be able to compensate for the disruption to the non-users of the infrastructure.

comment 11y ago · link · parent

You might also want to take a look at the source of the function you are relying on:

    *  DESCRIPTION
     *
     *	The main computation evaluates near-minimax approximations derived
     *	from those in "Rational Chebyshev approximations for the error
     *	function" by W. J. Cody, Math. Comp., 1969, 631-637.  This
     *	transportable program uses rational functions that theoretically
     *	approximate the normal distribution function to at least 18
     *	significant decimal digits.  The accuracy achieved depends on the
     *	arithmetic system, the compiler, the intrinsic functions, and
     *	proper selection of the machine-dependent constants.
     *
So...yeah. I hope the constants the R authors picked work for your machine!

    const static double a[5] = {
	2.2352520354606839287,
	161.02823106855587881,
	1067.6894854603709582,
	18154.981253343561249,
	0.065682337918207449113
    };
    const static double b[4] = {
	47.20258190468824187,
	976.09855173777669322,
	10260.932208618978205,
	45507.789335026729956
    };
    const static double c[9] = {
	0.39894151208813466764,
	8.8831497943883759412,
	93.506656132177855979,
	597.27027639480026226,
	2494.5375852903726711,
	6848.1904505362823326,
	11602.651437647350124,
	9842.7148383839780218,
	1.0765576773720192317e-8
    };
    const static double d[8] = {
	22.266688044328115691,
	235.38790178262499861,
	1519.377599407554805,
	6485.558298266760755,
	18615.571640885098091,
	34900.952721145977266,
	38912.003286093271411,
	19685.429676859990727
    };
    const static double p[6] = {
	0.21589853405795699,
	0.1274011611602473639,
	0.022235277870649807,
	0.001421619193227893466,
	2.9112874951168792e-5,
	0.02307344176494017303
    };
    const static double q[5] = {
	1.28426009614491121,
	0.468238212480865118,
	0.0659881378689285515,
	0.00378239633202758244,
	7.29751555083966205e-5
    };
https://svn.r-project.org/R/trunk/src/nmath/pnorm.c

Edit: Ah, a drive-by downmodder. How nice.

comment 11y ago · link · parent

See my response here: https://news.ycombinator.com/item?id=10630389

You are doing it wrong. A p-value based on a single observation is meaningless. P-values are much more useful when they are continuously computed on a running experiment with sequential observations.

See the work at the LHC for an example.

comment 11y ago · link · parent

Thanks for the massive set of pages. I already went through a similar course a long time ago.

You'll note that the notes don't derive the calculation of p-value. It merely gives a trivial example (curiously, the sum of two probabilities) with a fiat interpretation.

It's curious that my last post, merely quoting the third axiom and showing its properties plain, makes you think that I am deeply confused, when you cannot even refute trivial points and must resort to arguments (poor, in that they do not address our issue here) from authority.

comment 11y ago · link · parent

I didn't say it was my argument.

>As an academic, you live or die by your funding. (Teaching doesn't matter.)

comment 11y ago · link · parent

This sounds more like an argument to discredit all academics.

Someone is funding them all...right?

comment 11y ago · link · parent

The discrete, uniform nature is obvious in the rule of computation:

Σ P(E)

Each "unit" of the computation is weighted equally (though, the value of the units may differ).

comment 11y ago · link · parent

You seem awfully invested in a discussion that you don't care about.

>https://shihho.wordpress.com/2012/11/27/pvalue_distribution/

This treatment commits the same error as the other poster (evanpw; I believe nonbel commits the same). The image at the bottom is only showing p-values for single observations. That is near useless (as the chart shows). An actual experiment requires repeated observation and analysis, not one-off observations.

    npval <- pnorm( rnorm(nSim, mean, std.dev), mean, std.dev )
    hist(npval, breaks=40, xlab=xlabel, main=title, col='gray')
R is probably the worst choice of language here, but my understanding of `pnorm` is that, when passed a list of numbers as the first argument (as `rnorm` returns), it will return a list of p-values (assuming normal distribution with given parameters), where the index in the list corresponds to the p-value, taking into account only that single observation (ie. it ignores all other observations in the list [ie. not how p-value hypothesis testing works {at least, in theory; real world practices may differ}]).

Your second link appears to be the same argument (at least, they appear to use the same equations).

The charts are a nice visualization of how you can get a uniform distribution from a normal one (or vice versa) though.

comment 11y ago · link · parent

Maybe you should pull out your full derivation. Random Wikipedia text doesn't count (particularly when it is just bald assertion, as in this case).

Most null hypotheses hypothesize a normally distributed measurement error. For any given distribution (continuous uniform), of course, the p-value means something different. That is what I have been arguing this whole time.

comment 11y ago · link · parent

The axioms are only defined on discrete uniform distributions. All other distributions must be constructed from the discrete uniform.

comment 11y ago · link · parent

Leave it to psychology to ban pretty much the only scientific tool we have...

comment 11y ago · link · parent

Where was I wrong?

>Do you agree now that if the null hypothesis is true the p-value is uniformly distributed between 0 and 1?

If the null hypothesis is true, the p-value will converge to 1. (This makes complete intuitive sense as well, if you hypothesis is true, every observation you make should/will agree with it, making the ratio of agreeable_observations:total_observations = 1.)

You haven't shown anything where a true null hypothesis uniformly generates p-values between 0 and 1. Perhaps for a single observation you can only get a 0 or 1 value, and, perhaps for a over/under the average test (where every experiment will give 0 or 1) your sequence of p-values for each observation would be uniformly distributed, but p-values are generally computed as a normalized sum over many observations, in which case the value should converge to 1 if the null hypothesis is true.

One unintuitive aspect is that you might expect p-value to converge to 0 if the null hypothesis is false, however p-value is undefined when the null hypothesis is false.

comment 11y ago · link · parent

You are only taking a single observation in that example, making analysis through probability theory effectively useless.

Note that, probabilities of 0 or 1 are completely allowed under the theory and the computed value in your example is still consistent with my statement and probability theory.

An issue is that probability distributions (such as standard normal) don't exist in the axioms and so must be constructed from the axioms. So, a p-value test using a standard normal distribution is taking a shortcut that hides some of the calculations, making it appear that p-value is not actually counting a ratio, however, if you look at the full calculation from the axioms, p-value represents the ratio of agreeing observations to total observations. Basically, a single observation at the level of testing a standard normal distribution may actually represent multiple observations at the level of the math required to construct the full calculation (this entirely depends on the hypothesis being tested).

comment 11y ago · link · parent

Your link defines p-value as a probability.

>More specifically, the p-value is defined as the probability of...

Edit: A good exercise would be to start with the axioms[0] of probability theory and then derive the p-value for a simple experiment, using only those axioms (and your measured values).

[0] https://en.wikipedia.org/wiki/Probability_axioms

comment 11y ago · link · parent

It comes directly from the calculation of p-values through probability theory.

comment 11y ago · link · parent

>It doesn't make sense to say...

That depends on your hypothesis.

>The p-value is the probability of seeing a set of values

That is a circular definition. What is, "probability"?

P-values are not prescriptive statements about future observations, but are descriptions of actual observations.

1
525354
106