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
- When your agency shuts: a recruiter’s 5 tips if you’re unpaid Yesterday 06:57
- What the 2025 employment status review means for contractors Aug 28 06:39
- Contractors, Autumn Budget 2025 is set to extend the big income tax freeze Aug 27 07:15
- Labour to run employment status consultation ‘before 2026’ Aug 26 05:03
- Contractor Accountants Clone - Testing Aug 25 10:08
- Contractors, AI is making the CV’s death knell louder Aug 22 22:13
- Decline in IT contractor demand accelerated in July 2025 Aug 21 21:26
- Best CV length for IT contractors be like… Aug 20 22:55
- Highly strategic workforces ‘now blend AI with human IT contractors’ Aug 19 22:56
- LinkedIn insecurity: Does my IT contractor career look bad in this? Aug 18 01:10
Comment