Originally posted by Lost It
View Post
- 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
Collapse
-
-
Originally posted by Lost It View PostThere's Lies.
There's damned Lies.
Then there's Statistics.Hard Brexit now!
#prayfornodealComment
-
Originally posted by sasguru View PostI find that's a meaningless cliche often spouted by the mathematically illiterate.Comment
-
Originally posted by Old Greg View PostInnumerate is the word you're looking for.Hard Brexit now!
#prayfornodealComment
-
Originally posted by NotAllThere View PostJust 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; } }
Originally posted by sasguru View PostDunno 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))
Edit2: Assumes sampling with replacement
NATEdit3: Add code tags around it to make it a bit more readable.
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 dateOriginally posted by Stevie Wonder BoyI 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
-
Originally posted by OwlHoot View PostI think jamesbrown had the soundest algebraic approach.
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 ScienceLast edited by sasguru; 20 April 2020, 09:20.Hard Brexit now!
#prayfornodealComment
-
Originally posted by sasguru View PostI'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.
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 TwainComment
-
Originally posted by scooterscot View PostThen 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.Hard Brexit now!
#prayfornodealComment
-
Originally posted by sasguru View PostFeck off, you fraud."Never argue with stupid people, they will drag you down to their level and beat you with experience". Mark TwainComment
-
Originally posted by scooterscot View PostBullying + 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.Hard Brexit now!
#prayfornodealComment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Why licensing umbrella companies must be key to 2027’s regulation Today 13:55
- Top 5 Chapter 11 JSL myths contractors should know Yesterday 03:46
- Top 5 Chapter 11 JSL myths contractors should know Sep 14 15:46
- What the housing market needs at Autumn Budget 2025 Sep 10 20:58
- Qdos hit by cybersecurity ‘attack’ Sep 10 01:01
- Why party conference season 2025 is a self-employment policy litmus test Sep 9 09:53
- Labour decommissions Freelance Commissioner idea Sep 8 08:56
- Is it legal to work remotely from Europe via a UK company? Sep 5 22:44
- Is it legal to work remotely from Europe via a UK company? Sep 5 10:44
- Autumn Budget 2025 set for Nov 26, ‘putting contractors on watch’ Sep 4 15:13
Comment