Code Monkey home page Code Monkey logo

Comments (4)

alvinwan avatar alvinwan commented on August 30, 2024

What's this mean? I can work on it.

from datascience.

mijordan3 avatar mijordan3 commented on August 30, 2024

This is setting the stage for the inferential part of the course. It's
important.

We need a function or set of functions that, given a table with n rows,
will return another table
with k rows, where the rows have been selected randomly (see more on this
below). In general
k will be any integer less than or equal to n. An important special case,
indeed the one that we
will rely on again and again, is when k is equal to n.

"Selected randomly" means one of two things. We can sample with
replacement, which means
that each of the n rows has equal (1/n) probability of being selected at
each of the k steps. We
can sample without replacement, which means that at the first step has of
the n rows has equal
(

On Fri, Jul 31, 2015 at 11:27 AM, Alvin Wan [email protected]
wrote:

What's this mean? I can work on it.


Reply to this email directly or view it on GitHub
#8 (comment).

from datascience.

mijordan3 avatar mijordan3 commented on August 30, 2024

Oops, hit the send button too soon. Continuing on...

This is setting the stage for the inferential part of the course. It's
important.

We need a function or set of functions that, given a table with n rows,
will return another table
with k rows, where the rows have been selected randomly (see more on this
below). In general
k will be any integer less than or equal to n. An important special case,
indeed the one that we
will rely on again and again, is when k is equal to n.

"Selected randomly" means one of two things. We can sample with
replacement, which means
that each of the n rows has equal (1/n) probability of being selected at
each of the k steps. We
can sample without replacement, which means that at the first step has of
the n rows has equal
(1/n) probability of being chosen, at the next step each of the remaining
n-1 unselected rows has
probably 1/(n-1) of being selected, and so on until k rows have been
chosen. In the special case
in which k is equal to n, this is equivalent to doing a random permutation
of the rows of the original
table.

After you've finished with this, a nice follow-on could be weighted
sampling, where there is a
vector of weights, w = (w_1, w_2, ..., w_n), such that 0 <= w_i <= 1, and
sum_i w_i = 1, and the
sampling is done with these weights rather than with uniform probabilities.

Mike

On Fri, Jul 31, 2015 at 12:03 PM, Michael I. JORDAN [email protected]
wrote:

This is setting the stage for the inferential part of the course. It's
important.

We need a function or set of functions that, given a table with n rows,
will return another table
with k rows, where the rows have been selected randomly (see more on this
below). In general
k will be any integer less than or equal to n. An important special case,
indeed the one that we
will rely on again and again, is when k is equal to n.

"Selected randomly" means one of two things. We can sample with
replacement, which means
that each of the n rows has equal (1/n) probability of being selected at
each of the k steps. We
can sample without replacement, which means that at the first step has of
the n rows has equal
(

On Fri, Jul 31, 2015 at 11:27 AM, Alvin Wan [email protected]
wrote:

What's this mean? I can work on it.


Reply to this email directly or view it on GitHub
#8 (comment).

from datascience.

alvinwan avatar alvinwan commented on August 30, 2024

Oh wow, I see. Thanks for the detailed explanation - I'll get started.

from datascience.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.