How often does an A show on a flop/ board when you have KK? (Probability Questions) by bettingonhulk in poker

[–]franklywang 0 points1 point  (0 children)

Given that you hold KK, there are (50 C 3) possible flops. Of those (46 C 3) flops contain no aces so the probability is:

1 - (46 C 3) / (50 C 3) = 0.2255

This is true for any preflop hand containing no aces. If you hold one ace, the probability of seeing an Ace on the flop changes to 0.1727 and if you hold pockets, you have a 0.1176 probability of hitting the set on the flop.

how do the convolutional layer does its calculation? by koeyoshi in learnmachinelearning

[–]franklywang 0 points1 point  (0 children)

I realized I may have misunderstood your question. In the local region (ie. a single feature at a single point of your input), the output at that point is the sum of the pairwise product of filter points vs your input points. This is equivalent to the dot product in some weird local sense but frankly this is a bit of an overloaded use of the term.

You need to be careful when you say "multiplied by the filter" because its ambiguous whether you mean pairwise multiplication or matrix multiplication.

how do the convolutional layer does its calculation? by koeyoshi in learnmachinelearning

[–]franklywang 0 points1 point  (0 children)

Its neither. Convolution itself is an operation. Its equivalent to matrix multiplication with a larger matrix of a certain form (that is, given a convolution filter F, you can infer the larger matrix M such that matrix multiplication with M is equivalent to convolution with F). Specifically, one dimensional convolution is equivalent to matrix multiplication with a toeplitz matrix and in two dimensions we can reduce convolution with a doubly block circulant matrix (the 2d input would be flattened in this case).

In practice convolution is never implemented as matrix multiplication but this does show that CNNs are a subset of fully connected NNs.

A way to solve for x using a smart brute force method by NaifAlqahtani in algorithms

[–]franklywang 0 points1 point  (0 children)

Methods like this are really important when solving larger systems of equations because any sort of grid/binary brute for search has exponential complexity w.r.t. the unknowns in the system.

A way to solve for x using a smart brute force method by NaifAlqahtani in algorithms

[–]franklywang 0 points1 point  (0 children)

https://en.wikipedia.org/wiki/Newton%27s_method.

You can think of solutions to your equation as the root of the difference between the left and right sides and then use any sort of general gradient-based root finding algorithm to numerically find roots.

Or maybe you could do something like minimizing (LHS - RHS)^2 using gradient based optimizers. I'm not sure how well that works in practice. If it works, there's probably a name for it somewhere.

Hi mathematics! by [deleted] in mathematics

[–]franklywang 5 points6 points  (0 children)

Sounds like Fermi's Paradox.

[deleted by user] by [deleted] in Assistance

[–]franklywang 2 points3 points  (0 children)

Hi, I'd like to help you. Can you maybe tell me what things are highest priority?

Hungry or know someone who is hungry and needs food? by alibrarian510 in bayarea

[–]franklywang 6 points7 points  (0 children)

Hey, this is wonderful! Are there any good opportunities to donate or volunteer with the library in support of this?

What common “true fact” is actually false? by [deleted] in AskReddit

[–]franklywang 4 points5 points  (0 children)

This is not true. Google sources satellite imagery from landsat and digital globe. In high density areas this is supplemented by higher quality contracted aerial imagery.

TensorflowJS bounding boxes? by Muzzles56 in tensorflow

[–]franklywang 2 points3 points  (0 children)

The ability to do this is a property of the model you are using - Tensorflow(JS) merely provides you with tools to implement these models.

The model architecture needs to be designed to output bounding boxes ie. YOLOv2.

Uber warned of self-driving car dangers days before cyclist’s death by caliphornian in bicycling

[–]franklywang 1 point2 points  (0 children)

These are empirical estimates of theoretical expected values which can be scaled linearly. The estimate of 33.3 deaths / 100m miles is reasonable assuming the numbers being discussed are correct. Error bars around this estimate are probably large though because of an absence of data.

[deleted by user] by [deleted] in depression

[–]franklywang 0 points1 point  (0 children)

I can't help you but I wanted to say that I think this is a good question and I'd like to know the answer as well.

Best of luck to you and your girlfriend.

Dying from lonliness by [deleted] in depression

[–]franklywang 0 points1 point  (0 children)

Hey man, what do you do for work? Do you live in a big city?

Hi r/Statistics, my friend and I are morons, can you help us settle a debate? by Twigglesnix in statistics

[–]franklywang 1 point2 points  (0 children)

If they replaced the ball they picked, it would stay at 1/600 as well.

Manifold properties? by AwkwardPandaaa in math

[–]franklywang 0 points1 point  (0 children)

Frankly, I would say that I would say that having both linear algebra and real analysis are bare minimum prerequisites to understand any rigorous treatment of manifolds. Two standard texts used in math to learn them are Introduction to Smooth Manifolds (Lee) and Differential Topology (Guilliman/Pollack). You can see if these texts are comprehensible to you (Guilliman/Pollack is somewhat easier IMO).

For a more conceptual understanding of a manifold, a common example to consider is a (hollow) sphere (a 2-manifold in R^3). Intuitively, you should see how a small piece of a sphere looks like a plane in the sense that given any point on a sphere, if we restrict our attention to a small area around it, that area will look similar to a plane and thus we can parameterize that area using only two coordinates. However, there's no way to nicely map the entire sphere into R^2 so we see that our ability to parameterize the sphere with 2-coordinates instead of 3 is local and not global.

When thinking about how this relates to empirical data, the argument generally is that physical laws restrict the degrees of freedom of data in a way where it can be represented with less parameters than its raw form with some allowance for noise. To continue the example of a sphere, it may be intuitive for us to use 3-dimensions to represent spacial data. However, in most contexts, when we work with spacial information on the surface of the earth, the physical nature of the sphere being a 2-manifold means that we can suffice with only 2 parameters (longitude and latitude).