• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Any maths / statistics whizzes here?

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #41
    Originally posted by Lost It View Post
    There's Lies.

    There's damned Lies.

    There's Statistics.

    And then there's Scooty.
    FTFY

    Comment


      #42
      Originally posted by Lost It View Post
      There's Lies.

      There's damned Lies.

      Then there's Statistics.
      I find that's a meaningless cliche often spouted by the mathematically illiterate.
      Hard Brexit now!
      #prayfornodeal

      Comment


        #43
        Originally posted by sasguru View Post
        I find that's a meaningless cliche often spouted by the mathematically illiterate.
        Innumerate is the word you're looking for.

        Comment


          #44
          Originally posted by Old Greg View Post
          Innumerate is the word you're looking for.
          Hard Brexit now!
          #prayfornodeal

          Comment


            #45
            Originally posted by NotAllThere View Post
            Just knocked up a quick and dirty Java program, based on a population of 1000 people.
            Code:
            package randomActions;
            
            import java.util.ArrayList;
            
            public class randomActionPoint4 {
            	public static void main(String[] args) {
            		int runningTotal = 0;
            		for (int j = 1; j <= 10000; j++) {
            			ArrayList<Integer> chosen = new ArrayList<Integer>();
            			for (int i = 1; i <= 10000; i++) {
            				ArrayList<Integer> choices = new ArrayList<Integer>();
            				choices.add(getUnique(choices));
            				choices.add(getUnique(choices));
            				choices.add(getUnique(choices));
            				choices.add(getUnique(choices));
            				for (Integer choice : choices) {
            					if (!chosen.contains(choice)) {
            						chosen.add(choice);
            					}
            				}
            				if (chosen.size() == 1000) {
            					runningTotal = runningTotal + i;
            					break;
            				}
            			}
            		}
            		System.out.println(runningTotal/10000);
            	}
            
            	private static int getUnique(ArrayList<Integer> choices) {
            		int choice;
            		do {
            			choice = (int) (Math.random() * ((1000 - 1) + 1)) + 1;
            		} while (choices.contains(choice));
            		return choice;
            	}
            
            }
            I've run it a few times, and each time it took on average 1866 weeks for all 1000 people to do it. I'm pretty sure the result is independent of the population size.
            Originally posted by sasguru View Post
            Dunno if I understood the prob but here's some R code which gives the average weeks in the order of 1850-ish.

            Code:
            nums <- c(rep(0, 1000))
            
            for (j in 1:1000){
              
              count <- 0
              people <- c(rep(FALSE, 1000))
              while (TRUE) {
                
                count <- count + 1
                
                k <-  sample(1:1000,4,replace=F)
                for (i in 1:4){
                  people[k[i]] <- TRUE
                }
                
                if (all(people)) {break}
              }
                nums[j] <- count
              
            }
            
            print(mean(nums))
            Edit: Actually more like 1860-ish which kind of matches NAT.
            Edit2: Assumes sampling with replacement
            NATEdit3: Add code tags around it to make it a bit more readable.
            Thanks both, the rough assumption is right (well right based on my flawed requirements, there is a chance that the person would need to "do the thing" again after a given number of years, and seeing you are saying we are talking over 30 years to get 100% of the people to "do the thing" it is something we are going to have to account)

            I think it's enough to scare the powers that be that we need to carry on with the project to try and improve the 0.4% take up date
            Originally posted by Stevie Wonder Boy
            I can't see any way to do it can you please advise?

            I want my account deleted and all of my information removed, I want to invoke my right to be forgotten.

            Comment


              #46
              Originally posted by OwlHoot View Post
              I think jamesbrown had the soundest algebraic approach.
              I think that's an interesting POV.
              I've done both mathematical stats and computational statistics (simulation) courses where techniques like the jacknife and bootstrap were used to obtain similar results (e.g. confidence intervals) and enjoyed both, but preferred the latter.
              I thinks stats should be taught more using simulation than mathematics, especially for those uncomfortable with maths.

              Anyone whose interest has been stimulated can read this (extremely simple) starter guide to R and stats:
              Statistical Inference via Data Science
              Last edited by sasguru; 20 April 2020, 09:20.
              Hard Brexit now!
              #prayfornodeal

              Comment


                #47
                Originally posted by sasguru View Post
                I've done both mathematical stats and computational statistics (simulation) courses where techniques like the jacknife and bootstrap were used to obtain similar results (e.g. confidence intervals) and enjoyed both, but preferred the latter. I thinks stats should be taught more using simulation than mathematics, especially for those uncomfortable with maths.
                Then how is it you don't use a deterministic approach with assumptions, rather the a probabilistic attempt with unknowns?

                Making a problem more complicated than it need is so IT.
                "Never argue with stupid people, they will drag you down to their level and beat you with experience". Mark Twain

                Comment


                  #48
                  Originally posted by scooterscot View Post
                  Then how is it you don't use a deterministic approach with assumptions, rather the a probabilistic attempt with unknowns?

                  Making a problem more complicated than it need is so IT.
                  You clearly didn't understand my statement. How is it you were unable to solve the problem either way?
                  Hard Brexit now!
                  #prayfornodeal

                  Comment


                    #49
                    Originally posted by sasguru View Post
                    Feck off, you fraud.
                    Bullying + name calling others might have served you well as a youngster then as an adult, we get Trump. He who shouts loudest is heard the least.
                    "Never argue with stupid people, they will drag you down to their level and beat you with experience". Mark Twain

                    Comment


                      #50
                      Originally posted by scooterscot View Post
                      Bullying + name calling others might have served you well as a youngster then as an adult, we get Trump. He who shouts loudest is heard the least.
                      When Trump pretends to be an expert in epidemiology, he reminds me of you.
                      Hard Brexit now!
                      #prayfornodeal

                      Comment

                      Working...
                      X