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
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Comment