Heinera wrote:Did you check E(90, 135)?
In case anyone else is wondering, the deviation in E(90, 135) is 0.02 --- ten times smaller than what Richard would need to win the bet.
Heinera wrote:Did you check E(90, 135)?
jreed wrote:Joy, if I'm not mistaken your simulation is using the detector loophole to obtain the desired curve. The R code statement: good <- ca & cb selects products of the correlations where both the correlations are non-zero. I've seen this several times before in the Gisin & Gisin, Minkwe and Roth simulations when I coded them up in Mathematica.
Joy Christian wrote:The detection loophole is irrelevant both in my model and in the proposed experiment.
...
I have used the argument good <- ca & cb simply because I don't know much programming. I am certain that one can calculate correlation in the latest simulation without using the "good" line. I do not believe it will change anything. In fact it might improve the accuracy of the simulation. I am working on such improvements.
N <- 10^6
e <- matrix(nrow = 2, ncol = N, byrow = FALSE, data = scan("/tmp/JoyVector.txt", nlines = N))
alpha <- 90 * pi / 180
beta <- 135 * pi / 180
a <- c(cos(alpha), sin(alpha))
b <- c(cos(beta), sin(beta))
mean(sign(colSums(e * a)) * -sign(colSums(e * b)))
-cos(alpha - beta)
gill1109 wrote:Zen asked me to post this code here:
- Code: Select all
N <- 10^6
e <- matrix(nrow = 2, ncol = N, byrow = FALSE, data = scan("/tmp/JoyVector.txt", nlines = N))
alpha <- 90 * pi / 180
beta <- 135 * pi / 180
a <- c(cos(alpha), sin(alpha))
b <- c(cos(beta), sin(beta))
mean(sign(colSums(e * a)) * -sign(colSums(e * b)))
-cos(alpha - beta)
Joy Christian wrote:gill1109 wrote:Zen asked me to post this code here:
- Code: Select all
N <- 10^6
e <- matrix(nrow = 2, ncol = N, byrow = FALSE, data = scan("/tmp/JoyVector.txt", nlines = N))
alpha <- 90 * pi / 180
beta <- 135 * pi / 180
a <- c(cos(alpha), sin(alpha))
b <- c(cos(beta), sin(beta))
mean(sign(colSums(e * a)) * -sign(colSums(e * b)))
-cos(alpha - beta)
Richard,
I have no idea what this code is for.
By the way, you may have noticed that the list of vector directions from my latest simulation has been made public since yesterday: angular momentum diections.
gill1109 wrote:Unfortunately the detection loophole (or if you prefer to interpret it differently, the conspiracy loophole) ....
As I explained to John, detection loophole or conspiracy loophole, or any loophole for that matter, is of no relevance to my model, or to my proposed experiment.gill1109 wrote:Try leaving out the line "good <- ca & cb" and the subsequent selection according to the subset defined by good. It is a different subset of all the runs which have been performed for each different value of a and b, so you don't want it here, because you want to end up with just one set of runs.
You could alternatively just work with the settings which we are interested, and do something like good <- "ca1 & ca2 & cb1 & cb2" to select the same subset for all four correlations (a1,b1) etc.
Joy Christian wrote:I just wanted to submitted the crude version for 10,000 Euros from you, because it is enough for that purpose. Without the "good" line there will be no more talk of "detection loophole." No "good line", no "detection loophole."
gill1109 wrote:So there is just one file, not two? The directions for Bob are exactly the negatives of those for Alice? The file contains x and y coordinates of vectors in the equatorial plane? Do the vectors have length 1 or are they unnormalised?
I can't do anything with your data set if you don't tell me how you mean it to be interpreted.
N <- 10^7
e <- matrix(nrow = 2, ncol = N, byrow = FALSE, data = scan("JoyVector.txt", nlines = N))
alpha <- 0 * pi / 180
beta <- 45 * pi / 180
a <- c(cos(alpha), sin(alpha))
b <- c(cos(beta), sin(beta))
mean(sign(colSums(e * a)) * -sign(colSums(e * b)))
[1] -0.7501332
alpha <- 0 * pi / 180
beta <- 135 * pi / 180
a <- c(cos(alpha), sin(alpha))
b <- c(cos(beta), sin(beta))
mean(sign(colSums(e * a)) * -sign(colSums(e * b)))
[1] 0.2500942
alpha <- 90 * pi / 180
beta <- 45 * pi / 180
a <- c(cos(alpha), sin(alpha))
b <- c(cos(beta), sin(beta))
mean(sign(colSums(e * a)) * -sign(colSums(e * b)))
[1] -0.7498742
alpha <- 90 * pi / 180
beta <- 135 * pi / 180
a <- c(cos(alpha), sin(alpha))
b <- c(cos(beta), sin(beta))
mean(sign(colSums(e * a)) * -sign(colSums(e * b)))
[1] -0.2498984Joy Christian wrote:gill1109 wrote:So there is just one file, not two? The directions for Bob are exactly the negatives of those for Alice? The file contains x and y coordinates of vectors in the equatorial plane? Do the vectors have length 1 or are they unnormalised?
I can't do anything with your data set if you don't tell me how you mean it to be interpreted.
Fair enough. Ask away, and I will explain:
"So there is just one file, not two?"
As far as I understand it, yes.
"The directions for Bob are exactly the negatives of those for Alice?"
Yes, theoretically, but not necessarily in the same run (I will check the file to see if it can be split into two).
"The file contains x and y coordinates of vectors in the equatorial plane?
Yes.
"Do the vectors have length 1 or are they unnormalised?"
The vectors a and b are normalized, but the vectors e_k and -e_k are unnormalized (although they are extremely close to having length 1).
gill1109 wrote:Last question: how many runs?
Joy Christian wrote:gill1109 wrote:Last question: how many runs?
10 million, or 10^7.
gill1109 wrote:OK so this file passes the test for two pairs of directions and fails it for the other two. No 10 000 Euro today, I'm afraid.
Your correlations (in the usual order 0-45, 0-135, 90-45, 90-135) were:
-0.7501332
0.2500942
-0.7498742
-0.2498984
You might want advice whether or not I calulated the correlations correctly (ie according to your instructions as written down in our agreement). I used Zen's code with N = 10^7.
Heinera wrote:Richard's numbers are correct. Joy gets an approximate cos curve because his correlations are all computed with b fixed at (1, 0).
N <- 10^7
e <- matrix(nrow = 2, ncol = N, byrow = FALSE, data = scan("JoyVector.txt", nlines = N))
alpha <- 0 * pi / 180
beta <- 45 * pi / 180
a <- c(cos(alpha), sin(alpha))
b <- c(cos(beta), sin(beta))
mean(sign(colSums(e * a)) * -sign(colSums(e * b)))N <- 10^7
e <- matrix(nrow = 2, ncol = N, byrow = FALSE, data = scan("JoyVector.txt", nlines = N))
alpha <- 0 * pi / 180
beta <- 135 * pi / 180
a <- c(cos(alpha), sin(alpha))
b <- c(cos(beta), sin(beta))
mean(sign(colSums(e * a)) * -sign(colSums(e * b)))N <- 10^7
e <- matrix(nrow = 2, ncol = N, byrow = FALSE, data = scan("JoyVector.txt", nlines = N))
alpha <- 90 * pi / 180
beta <- 45 * pi / 180
a <- c(cos(alpha), sin(alpha))
b <- c(cos(beta), sin(beta))
mean(sign(colSums(e * a)) * -sign(colSums(e * b)))N <- 10^7
e <- matrix(nrow = 2, ncol = N, byrow = FALSE, data = scan("JoyVector.txt", nlines = N))
alpha <- 90 * pi / 180
beta <- 135 * pi / 180
a <- c(cos(alpha), sin(alpha))
b <- c(cos(beta), sin(beta))
mean(sign(colSums(e * a)) * -sign(colSums(e * b)))[1] -0.7501332
[1] 0.2500942
[1] -0.7498742
[1] -0.2498984Return to Sci.Physics.Foundations
Users browsing this forum: No registered users and 108 guests
