In most natural occurring situations, it will be better to use multiple comparisons on all attributes than to select a subset of attributes completely at random. At the very least, you will usually not do much worse by testing all hypotheses.
An example in which it would be better to randomly select attributes is if, for some reason, the non-null attributes only have "small" p-values but never have "extremely small" p-values. But even this strange possibility can be ruled out if, for example, your data points have a non-negligible amount of measurement error.
On the other hand, if you do have
In most natural occurring situations, it will be better to use multiple comparisons on all attributes than to select a subset of attributes completely at random. At the very least, you will usually not do much worse by testing all hypotheses.
An example in which it would be better to randomly select attributes is if, for some reason, the non-null attributes only have "small" p-values but never have "extremely small" p-values. But even this strange possibility can be ruled out if, for example, your data points have a non-negligible amount of measurement error.
On the other hand, if you do have prior knowledge about which attributes are likely to be important, *then* you have an important choice to make. In many cases you will be better off only testing those pre-selected attributes.
It is easy to get confused if you view frequentist statistical procedures in terms of "truth" or "evidence." For example, rolling a twenty-sided die provides a universal hypothesis test at p=0.05, but you should not interpret rolling a 1 as "evidence" that the sun has exploded (relevant xkcd: Frequentists vs. Bayesians). Instead, you should view frequentist statistical procedures as completely specified algorithms and then judge them by their average performance on random instances of the data.
As a result of this, the interpretation of the same data may vary depending on which algorithm you choose. (This is indeed counterintuitive, and it is one justification for using a more intuitive Bayesian approach.)
Here are three different reasonable procedures you could have used for your thought experiment--all potentially producing differing interpretations of your data.
Procedure 1: Choose a random attribute and do a classical hypothesis test at level [math]\alpha[/math]. Then stop.
Procedure 2: Choose a random attribute and do a classical hypothesis test at level [math]\alpha[/math]. If it is significant, choose another random attribute and test it at level [math]\alpha[/math]. Continue in this way until you accept the null hypothesis.
Procedure 3: Test all the hypothesis, adjusting for multiple comparisons.
Where do I start?
I’m a huge financial nerd, and have spent an embarrassing amount of time talking to people about their money habits.
Here are the biggest mistakes people are making and how to fix them:
Not having a separate high interest savings account
Having a separate account allows you to see the results of all your hard work and keep your money separate so you're less tempted to spend it.
Plus with rates above 5.00%, the interest you can earn compared to most banks really adds up.
Here is a list of the top savings accounts available today. Deposit $5 before moving on because this is one of th
Where do I start?
I’m a huge financial nerd, and have spent an embarrassing amount of time talking to people about their money habits.
Here are the biggest mistakes people are making and how to fix them:
Not having a separate high interest savings account
Having a separate account allows you to see the results of all your hard work and keep your money separate so you're less tempted to spend it.
Plus with rates above 5.00%, the interest you can earn compared to most banks really adds up.
Here is a list of the top savings accounts available today. Deposit $5 before moving on because this is one of the biggest mistakes and easiest ones to fix.
Overpaying on car insurance
You’ve heard it a million times before, but the average American family still overspends by $417/year on car insurance.
If you’ve been with the same insurer for years, chances are you are one of them.
Pull up Coverage.com, a free site that will compare prices for you, answer the questions on the page, and it will show you how much you could be saving.
That’s it. You’ll likely be saving a bunch of money. Here’s a link to give it a try.
Consistently being in debt
If you’ve got $10K+ in debt (credit cards…medical bills…anything really) you could use a debt relief program and potentially reduce by over 20%.
Here’s how to see if you qualify:
Head over to this Debt Relief comparison website here, then simply answer the questions to see if you qualify.
It’s as simple as that. You’ll likely end up paying less than you owed before and you could be debt free in as little as 2 years.
Missing out on free money to invest
It’s no secret that millionaires love investing, but for the rest of us, it can seem out of reach.
Times have changed. There are a number of investing platforms that will give you a bonus to open an account and get started. All you have to do is open the account and invest at least $25, and you could get up to $1000 in bonus.
Pretty sweet deal right? Here is a link to some of the best options.
Having bad credit
A low credit score can come back to bite you in so many ways in the future.
From that next rental application to getting approved for any type of loan or credit card, if you have a bad history with credit, the good news is you can fix it.
Head over to BankRate.com and answer a few questions to see if you qualify. It only takes a few minutes and could save you from a major upset down the line.
How to get started
Hope this helps! Here are the links to get started:
Have a separate savings account
Stop overpaying for car insurance
Finally get out of debt
Start investing with a free bonus
Fix your credit
I think using permutation statistics can help you get an intuitive handle on multiple comparison problems like this.
Let's say that, hypothetically, brain scans are a poor tool for diagnosing our three clinical groups (A, B, and C), and therefore, none of our data points are going to help us predict someone's diagnosis. If this were true, then any differences we observed in our current data set arose just by chance. In fact, we would expect to see differences of the same size if we assigned our brain data to the three groups completely at random.
Using permutation statistics we can test this ass
I think using permutation statistics can help you get an intuitive handle on multiple comparison problems like this.
Let's say that, hypothetically, brain scans are a poor tool for diagnosing our three clinical groups (A, B, and C), and therefore, none of our data points are going to help us predict someone's diagnosis. If this were true, then any differences we observed in our current data set arose just by chance. In fact, we would expect to see differences of the same size if we assigned our brain data to the three groups completely at random.
Using permutation statistics we can test this assumption empirically. First, assign each subject to a random group. Then run all your same tests again and look for the largest effect size (t-value) that you get for any measure in any brain region. Given your large number of variables and brain regions this t-value is likely going to be quite big - (and that just occurred by chance!)
So the real question is, is your original data so outstanding that it convinces you that these subjects weren't assigned to the groups at random? Are the results so shockingly different from all the possible random assignments (permutations) that we have to reject the null hypothesis?
Again let's test this empirically. Shuffle your original subjects again, and again record the largest t-value. Now do it 1000 more times (automated of course using a free program like R) getting a distribution of your maximum "by chance" t-values, which you can then plot like a histogram.
Now comes the fun part - compare this histogram to the maximum t-values in your real dataset. How do they stack up? If all your real t-values are sitting right in the middle of the distribution then there's nothing convincing in this dataset - either the technique doesn't work, or you don't have enough data to answer such a complex question (do any of these three groups differ on any of these measures in any of these brain regions). BUT, if any of your real t-values are waaaay off in the tails (a 5% criteria works just like your regular alpha level) then you have convincing evidence that these differences are real. In fact, any tests beyond the 5% cutoff can be safely regarded as significant.
This technique might not give you the answer you're looking for, but it will give you an appreciation for what ridiculously (t=6.5!?) significant looking results you can see sometimes when performing extensive multiple comparisons. It's always hard finding a needle in a haystack, and this might give you an appreciation for why.
For a brief moment, I want you to sit down and think - who you are and who you are becoming.
( This is what I tell myself, when I tend to compare myself to others).
Life needs to be lived intentionally and thoughtfully. Not as a reaction to what is happening around us.
I would like to share an experience.
I have recently Joined Martial arts ( karate). My Class has all ages, and Students with different levels of belts.
Learning the White Belt kata wasn’t hard. I mastered it real fast. But when I was doing with the rest of the White Belt students, Although I was doing the right move and I know my kat
For a brief moment, I want you to sit down and think - who you are and who you are becoming.
( This is what I tell myself, when I tend to compare myself to others).
Life needs to be lived intentionally and thoughtfully. Not as a reaction to what is happening around us.
I would like to share an experience.
I have recently Joined Martial arts ( karate). My Class has all ages, and Students with different levels of belts.
Learning the White Belt kata wasn’t hard. I mastered it real fast. But when I was doing with the rest of the White Belt students, Although I was doing the right move and I know my kata well, I was trying to compare myself with others and follow them and I was making blunders. Because my focus was on their Pace. And I was loosing my stances and my Moves.
I Had to Stop. And I had to tell myself to stop looking at them.
Once I Started focussing on my own feet, My own stances, and my brain didn’t get confused anymore. I started working on myself instead of wasting my time trying to watch others.
I had to feel the Power within myself. I took back my power, control of my focus. So, the Story needs to end right.? I Did Really well at my grading and now I’m a confident Green Belt holder.
Grades, Clothes, Cars, income, Job title, house, Upvotes, likes, followers - the number of categories in which we compare ourselves with others is infinite. Comparing yourself to others and what they have causes misery. It triggers self- doubt, frustration and in-adequacy.
You do not have the complete picture of what others lives are about. There is no point in comparing yourself with others. You wouldn’t achieve anything by watching your neighbours grass. Nurture your own grass. Your personalities, your purpose, your struggles, your story is so different to others, Then Why compare?
So, What kind of Comparison could be healthy for you?
For example there are some really amazing people who Spread kindness by doing various volunteering work. They make a difference in people’s lives and I want to be like them!
Turn your comparison to inspiration. Be inspired by other people’s stories of how they got their and about their hard work.
Don’t worry about your neighbours Tesla or Your colleagues Job promotion. You will end up with stomach Ulcers and Doctor’s Bills and nothing else. Do not waste time in comparing with others. Accept who you are. Embrace your story.
Compete with yourself.
What matters is your mindset, attitude, and where you’re going. Don’t waste your Power watching other People. Take back your power. Invest in your growth. Become a better person than yesterday.
Personality begins where comparison leaves off. Be unique. Be memorable. Be confident. Be proud.” ~Shannon L. Alder ♥️
Sixteen data points on three groups, pre and post experiment? You don't have enough data for anything. I would get the theory straight in your head and simplify it to the key elements, then control as much of the extraneous variables as possible in an experimental setting, and run the subjects one at a time until you have sufficient data. Use Bayesian stats if you can manage it, but to be honest if you have to look at the stats to find a significant difference, it isn't there.
Here’s the thing: I wish I had known these money secrets sooner. They’ve helped so many people save hundreds, secure their family’s future, and grow their bank accounts—myself included.
And honestly? Putting them to use was way easier than I expected. I bet you can knock out at least three or four of these right now—yes, even from your phone.
Don’t wait like I did. Go ahead and start using these money secrets today!
1. Cancel Your Car Insurance
You might not even realize it, but your car insurance company is probably overcharging you. In fact, they’re kind of counting on you not noticing. Luckily,
Here’s the thing: I wish I had known these money secrets sooner. They’ve helped so many people save hundreds, secure their family’s future, and grow their bank accounts—myself included.
And honestly? Putting them to use was way easier than I expected. I bet you can knock out at least three or four of these right now—yes, even from your phone.
Don’t wait like I did. Go ahead and start using these money secrets today!
1. Cancel Your Car Insurance
You might not even realize it, but your car insurance company is probably overcharging you. In fact, they’re kind of counting on you not noticing. Luckily, this problem is easy to fix.
Don’t waste your time browsing insurance sites for a better deal. A company called Insurify shows you all your options at once — people who do this save up to $996 per year.
If you tell them a bit about yourself and your vehicle, they’ll send you personalized quotes so you can compare them and find the best one for you.
Tired of overpaying for car insurance? It takes just five minutes to compare your options with Insurify and see how much you could save on car insurance.
2. Ask This Company to Get a Big Chunk of Your Debt Forgiven
A company called National Debt Relief could convince your lenders to simply get rid of a big chunk of what you owe. No bankruptcy, no loans — you don’t even need to have good credit.
If you owe at least $10,000 in unsecured debt (credit card debt, personal loans, medical bills, etc.), National Debt Relief’s experts will build you a monthly payment plan. As your payments add up, they negotiate with your creditors to reduce the amount you owe. You then pay off the rest in a lump sum.
On average, you could become debt-free within 24 to 48 months. It takes less than a minute to sign up and see how much debt you could get rid of.
3. You Can Become a Real Estate Investor for as Little as $10
Take a look at some of the world’s wealthiest people. What do they have in common? Many invest in large private real estate deals. And here’s the thing: There’s no reason you can’t, too — for as little as $10.
An investment called the Fundrise Flagship Fund lets you get started in the world of real estate by giving you access to a low-cost, diversified portfolio of private real estate. The best part? You don’t have to be the landlord. The Flagship Fund does all the heavy lifting.
With an initial investment as low as $10, your money will be invested in the Fund, which already owns more than $1 billion worth of real estate around the country, from apartment complexes to the thriving housing rental market to larger last-mile e-commerce logistics centers.
Want to invest more? Many investors choose to invest $1,000 or more. This is a Fund that can fit any type of investor’s needs. Once invested, you can track your performance from your phone and watch as properties are acquired, improved, and operated. As properties generate cash flow, you could earn money through quarterly dividend payments. And over time, you could earn money off the potential appreciation of the properties.
So if you want to get started in the world of real-estate investing, it takes just a few minutes to sign up and create an account with the Fundrise Flagship Fund.
This is a paid advertisement. Carefully consider the investment objectives, risks, charges and expenses of the Fundrise Real Estate Fund before investing. This and other information can be found in the Fund’s prospectus. Read them carefully before investing.
4. Earn Up to $50 this Month By Answering Survey Questions About the News — It’s Anonymous
The news is a heated subject these days. It’s hard not to have an opinion on it.
Good news: A website called YouGov will pay you up to $50 or more this month just to answer survey questions about politics, the economy, and other hot news topics.
Plus, it’s totally anonymous, so no one will judge you for that hot take.
When you take a quick survey (some are less than three minutes), you’ll earn points you can exchange for up to $50 in cash or gift cards to places like Walmart and Amazon. Plus, Penny Hoarder readers will get an extra 500 points for registering and another 1,000 points after completing their first survey.
It takes just a few minutes to sign up and take your first survey, and you’ll receive your points immediately.
5. Get Up to $300 Just for Setting Up Direct Deposit With This Account
If you bank at a traditional brick-and-mortar bank, your money probably isn’t growing much (c’mon, 0.40% is basically nothing).
But there’s good news: With SoFi Checking and Savings (member FDIC), you stand to gain up to a hefty 3.80% APY on savings when you set up a direct deposit or have $5,000 or more in Qualifying Deposits and 0.50% APY on checking balances — savings APY is 10 times more than the national average.
Right now, a direct deposit of at least $1K not only sets you up for higher returns but also brings you closer to earning up to a $300 welcome bonus (terms apply).
You can easily deposit checks via your phone’s camera, transfer funds, and get customer service via chat or phone call. There are no account fees, no monthly fees and no overdraft fees. And your money is FDIC insured (up to $3M of additional FDIC insurance through the SoFi Insured Deposit Program).
It’s quick and easy to open an account with SoFi Checking and Savings (member FDIC) and watch your money grow faster than ever.
Read Disclaimer
5. Stop Paying Your Credit Card Company
If you have credit card debt, you know. The anxiety, the interest rates, the fear you’re never going to escape… but a website called AmONE wants to help.
If you owe your credit card companies $100,000 or less, AmONE will match you with a low-interest loan you can use to pay off every single one of your balances.
The benefit? You’ll be left with one bill to pay each month. And because personal loans have lower interest rates (AmONE rates start at 6.40% APR), you’ll get out of debt that much faster.
It takes less than a minute and just 10 questions to see what loans you qualify for.
6. Lock In Affordable Term Life Insurance in Minutes.
Let’s be honest—life insurance probably isn’t on your list of fun things to research. But locking in a policy now could mean huge peace of mind for your family down the road. And getting covered is actually a lot easier than you might think.
With Best Money’s term life insurance marketplace, you can compare top-rated policies in minutes and find coverage that works for you. No long phone calls. No confusing paperwork. Just straightforward quotes, starting at just $7 a month, from trusted providers so you can make an informed decision.
The best part? You’re in control. Answer a few quick questions, see your options, get coverage up to $3 million, and choose the coverage that fits your life and budget—on your terms.
You already protect your car, your home, even your phone. Why not make sure your family’s financial future is covered, too? Compare term life insurance rates with Best Money today and find a policy that fits.
In yoga I used to frequently look at what other people were doing and feel frustrated and inadequate. Others could always do things I couldn’t do.
When I stopped looking at other people I could focus more on myself, on my own breathing, on where I was at on that day, my own progress, on the subtle balance of effort and ease.
I felt peace.
To stop comparing my life to others I don’t only stop looking to what others do - I focus on myself, work on myself.
I have so much work to do. So much.
Any time or energy I spend looking at others is time I don’t spend on my own development.
Consider the humble binomial coefficient [math]{ n \choose k }[/math], the number of ways to choose [math]k[/math] distinct items from a set of [math]n[/math] elements.
What is the number of ways to choose three pizza toppings from the eight listed on a menu? [math]{8 \choose 3} = 56[/math]. (Or, if you want to be difficult, there are other possible answers.)
- >>> pprint.pprint( list( itertools.combinations( ["pepperoni", "sausage", "bacon", "chicken", "mushroom", "black olive", "green pepper", "pineapple" ], 3 ) ) )
- [('pepperoni', 'sausage', 'bacon'),
- ('pepperoni', 'sausage', 'chicken'),
- ('pepperoni', 'sausage', 'mushroom'),
- ('pepperoni', 'sausage
Consider the humble binomial coefficient [math]{ n \choose k }[/math], the number of ways to choose [math]k[/math] distinct items from a set of [math]n[/math] elements.
What is the number of ways to choose three pizza toppings from the eight listed on a menu? [math]{8 \choose 3} = 56[/math]. (Or, if you want to be difficult, there are other possible answers.)
- >>> pprint.pprint( list( itertools.combinations( ["pepperoni", "sausage", "bacon", "chicken", "mushroom", "black olive", "green pepper", "pineapple" ], 3 ) ) )
- [('pepperoni', 'sausage', 'bacon'),
- ('pepperoni', 'sausage', 'chicken'),
- ('pepperoni', 'sausage', 'mushroom'),
- ('pepperoni', 'sausage', 'black olive'),
- ('pepperoni', 'sausage', 'green pepper'),
- ('pepperoni', 'sausage', 'pineapple'),
- ('pepperoni', 'bacon', 'chicken'),
- ('pepperoni', 'bacon', 'mushroom'),
- ('pepperoni', 'bacon', 'black olive'),
- ('pepperoni', 'bacon', 'green pepper'),
- ('pepperoni', 'bacon', 'pineapple'),
- ('pepperoni', 'chicken', 'mushroom'),
- ('pepperoni', 'chicken', 'black olive'),
- ('pepperoni', 'chicken', 'green pepper'),
- ('pepperoni', 'chicken', 'pineapple'),
- ('pepperoni', 'mushroom', 'black olive'),
- ('pepperoni', 'mushroom', 'green pepper'),
- ('pepperoni', 'mushroom', 'pineapple'),
- ('pepperoni', 'black olive', 'green pepper'),
- ('pepperoni', 'black olive', 'pineapple'),
- ('pepperoni', 'green pepper', 'pineapple'),
- ('sausage', 'bacon', 'chicken'),
- ('sausage', 'bacon', 'mushroom'),
- ('sausage', 'bacon', 'black olive'),
- ('sausage', 'bacon', 'green pepper'),
- ('sausage', 'bacon', 'pineapple'),
- ('sausage', 'chicken', 'mushroom'),
- ('sausage', 'chicken', 'black olive'),
- ('sausage', 'chicken', 'green pepper'),
- ('sausage', 'chicken', 'pineapple'),
- ('sausage', 'mushroom', 'black olive'),
- ('sausage', 'mushroom', 'green pepper'),
- ('sausage', 'mushroom', 'pineapple'),
- ('sausage', 'black olive', 'green pepper'),
- ('sausage', 'black olive', 'pineapple'),
- ('sausage', 'green pepper', 'pineapple'),
- ('bacon', 'chicken', 'mushroom'),
- ('bacon', 'chicken', 'black olive'),
- ('bacon', 'chicken', 'green pepper'),
- ('bacon', 'chicken', 'pineapple'),
- ('bacon', 'mushroom', 'black olive'),
- ('bacon', 'mushroom', 'green pepper'),
- ('bacon', 'mushroom', 'pineapple'),
- ('bacon', 'black olive', 'green pepper'),
- ('bacon', 'black olive', 'pineapple'),
- ('bacon', 'green pepper', 'pineapple'),
- ('chicken', 'mushroom', 'black olive'),
- ('chicken', 'mushroom', 'green pepper'),
- ('chicken', 'mushroom', 'pineapple'),
- ('chicken', 'black olive', 'green pepper'),
- ('chicken', 'black olive', 'pineapple'),
- ('chicken', 'green pepper', 'pineapple'),
- ('mushroom', 'black olive', 'green pepper'),
- ('mushroom', 'black olive', 'pineapple'),
- ('mushroom', 'green pepper', 'pineapple'),
- ('black olive', 'green pepper', 'pineapple')]
What is the coefficient on the [math]x^3[/math] term of [math](x+1)^8[/math]? It’s [math]{8 \choose 3} = 56[/math].
[math]x^8 + 8 x^7 + 28 x^6 + 56 x^5 + 70 x^4 + 56 x^3 + 28 x^2 + 8 x + 1[/math]
How many different ways can the positive integers [math]a, b, c, d[/math] sum to nine? The answer is again [math]{8 \choose 3} = 56[/math].
- >>> pprint.pprint( [ (a,b,c,d) for a in xrange( 1, 10 ) for b in xrange( 1, 10 ) for c in xrange( 1,10) for d in xrange( 1, 10 ) if a + b + c +d == 9 ] )
- [(1, 1, 1, 6),
- (1, 1, 2, 5),
- (1, 1, 3, 4),
- (1, 1, 4, 3),
- (1, 1, 5, 2),
- (1, 1, 6, 1),
- (1, 2, 1, 5),
- (1, 2, 2, 4),
- (1, 2, 3, 3),
- (1, 2, 4, 2),
- (1, 2, 5, 1),
- (1, 3, 1, 4),
- (1, 3, 2, 3),
- (1, 3, 3, 2),
- (1, 3, 4, 1),
- (1, 4, 1, 3),
- (1, 4, 2, 2),
- (1, 4, 3, 1),
- (1, 5, 1, 2),
- (1, 5, 2, 1),
- (1, 6, 1, 1),
- (2, 1, 1, 5),
- (2, 1, 2, 4),
- (2, 1, 3, 3),
- (2, 1, 4, 2),
- (2, 1, 5, 1),
- (2, 2, 1, 4),
- (2, 2, 2, 3),
- (2, 2, 3, 2),
- (2, 2, 4, 1),
- (2, 3, 1, 3),
- (2, 3, 2, 2),
- (2, 3, 3, 1),
- (2, 4, 1, 2),
- (2, 4, 2, 1),
- (2, 5, 1, 1),
- (3, 1, 1, 4),
- (3, 1, 2, 3),
- (3, 1, 3, 2),
- (3, 1, 4, 1),
- (3, 2, 1, 3),
- (3, 2, 2, 2),
- (3, 2, 3, 1),
- (3, 3, 1, 2),
- (3, 3, 2, 1),
- (3, 4, 1, 1),
- (4, 1, 1, 3),
- (4, 1, 2, 2),
- (4, 1, 3, 1),
- (4, 2, 1, 2),
- (4, 2, 2, 1),
- (4, 3, 1, 1),
- (5, 1, 1, 2),
- (5, 1, 2, 1),
- (5, 2, 1, 1),
- (6, 1, 1, 1)]
What is the value of [math]T(8,3)[/math] for [math]T(x,y) = T(x-1,y-1) + T(x-1,y)[/math], with [math]T(0,y) = 1[/math] and [math]T(x,x) = 1[/math]? Probably no surprise at this point that it’s [math]{8 \choose 3} = 56[/math].
- >>> def t( x, y ):
- if y == 0:
- return 1
- if x == y:
- return 1
- return t( x-1, y-1 ) + t( x-1, y )
- >>> t( 8, 3 )
- 56
Suppose you start at [math](0,0)[/math] and need to make your way to [math](5,3)[/math] by moving one step either north (up) or east (right) at a time. How many different paths can you take? It’s [math]{ 5+ 3 \choose 3 } = {8 \choose 3}.[/math] (Or your can count the other direction and get [math]{3 + 5 \choose 5}[/math], which has the same value.)
- >>> pprint.pprint( [ "".join( x ) for x in itertools.product( "NE", repeat=8 ) if x.count( "N" ) == 5 and x.count( "E" ) == 3 ] )
- ['NNNNNEEE',
- 'NNNNENEE',
- 'NNNNEENE',
- 'NNNNEEEN',
- 'NNNENNEE',
- 'NNNENENE',
- 'NNNENEEN',
- 'NNNEENNE',
- 'NNNEENEN',
- 'NNNEEENN',
- 'NNENNNEE',
- 'NNENNENE',
- 'NNENNEEN',
- 'NNENENNE',
- 'NNENENEN',
- 'NNENEENN',
- 'NNEENNNE',
- 'NNEENNEN',
- 'NNEENENN',
- 'NNEEENNN',
- 'NENNNNEE',
- 'NENNNENE',
- 'NENNNEEN',
- 'NENNENNE',
- 'NENNENEN',
- 'NENNEENN',
- 'NENENNNE',
- 'NENENNEN',
- 'NENENENN',
- 'NENEENNN',
- 'NEENNNNE',
- 'NEENNNEN',
- 'NEENNENN',
- 'NEENENNN',
- 'NEEENNNN',
- 'ENNNNNEE',
- 'ENNNNENE',
- 'ENNNNEEN',
- 'ENNNENNE',
- 'ENNNENEN',
- 'ENNNEENN',
- 'ENNENNNE',
- 'ENNENNEN',
- 'ENNENENN',
- 'ENNEENNN',
- 'ENENNNNE',
- 'ENENNNEN',
- 'ENENNENN',
- 'ENENENNN',
- 'ENEENNNN',
- 'EENNNNNE',
- 'EENNNNEN',
- 'EENNNENN',
- 'EENNENNN',
- 'EENENNNN',
- 'EEENNNNN']
Or graphically:
How many balls are in a triangular pyramid with 6 balls on each edge? It’s [math]{6 + 2 \choose 3} = 56[/math]. (See the OEIS demo using this sequence.) You get another solution here, which is “what is the sum of the first 6 triangular numbers?”
What is [math]\displaystyle \sum_{1 \leq i \leq j \leq 7} | i - j |[/math] ?
- >>> sum( ( abs( i - j ) for j in range( 1, 8 ) for i in range (1, j+1) ) )
- 56
(That came from the OEIS entry on Tetrahedral numbers, and there are many more applications there: A000292 - OEIS)
Once you know to compute the binomial coefficients, they can solve an extremely broad range of problems.
Like many of you reading this, I’ve been looking for ways to earn money online in addition to my part-time job. But you know how it is – the internet is full of scams and shady-grady stuff, so I spent weeks trying to find something legit. And I finally did!
Freecash surprised me in all the right ways. I’ve earned over $1,000 in one month without ‘living’ on the platform. I was skeptical right up until the moment I cashed out to my PayPal.
What is Freecash all about?
Basically, it’s a platform that pays you for testing apps and games and completing surveys. This helps developers improve their appl
Like many of you reading this, I’ve been looking for ways to earn money online in addition to my part-time job. But you know how it is – the internet is full of scams and shady-grady stuff, so I spent weeks trying to find something legit. And I finally did!
Freecash surprised me in all the right ways. I’ve earned over $1,000 in one month without ‘living’ on the platform. I was skeptical right up until the moment I cashed out to my PayPal.
What is Freecash all about?
Basically, it’s a platform that pays you for testing apps and games and completing surveys. This helps developers improve their applications while you make some money.
- You can earn by downloading apps, testing games, or completing surveys. I love playing games, so that’s where most of my earnings came from (oh, and my favorites were Warpath, Wild Fish, and Domino Dreams).
- There’s a variety of offers (usually, the higher-paying ones take more time).
- Some games can pay up to $1,000 for completing a task, but these typically require more hours to finish.
- On average, you can easily earn $30–50/day.
- You pick your options — you’re free to choose whatever apps, games, and surveys you like.
Of course, it’s not like you can spend 5 minutes a day and become a millionaire. But you can build a stable income in reasonable time, especially if you turn it into a daily habit.
Why did I like Freecash?
- It’s easy. I mean it. You don’t have to do anything complicated. All you need is to follow the task and have some free time to spend on it. For some reason, I especially enjoyed the game Domino Dreams. My initial goal was to complete chapter 10 to get my first $30, but I couldn’t stop playing and ended up completing chapter 15. It was lots of fun and also free money: $400 from that game alone.
- No experience needed. Even if you’ve never done any ‘testing’ before, you can do this. You get straightforward task descriptions, so it’s impossible to go wrong. A task you might expect is something like: Download this game and complete all challenges in 14 days.
- You can do it from anywhere. I was earning money while taking the bus, chilling on the couch, and during my breaks.
- Fast cashing out. I had my earnings in my PayPal account in less than 1 day. I’m not sure how long it takes for other withdrawal methods (crypto, gift cards, etc.), but it should be fast as well.
- You can earn a lot if you’re consistent. I’ve literally seen users in the Leaderboard making $3,000 in just one month. Of course, to get there, you need time, but making a couple of hundred dollars is really easy and relatively fast for anyone.
Don’t miss these PRO tips to earn more:
I feel like most users don’t know about these additional ways to make more money with Freecash:
- Free promo codes: You can follow Freecash on social media to get weekly promo codes for free coins, which you can later exchange for money.
- Daily rewards and bonuses: If you use the platform daily, you’ll get additional bonuses that help you earn more.
- In-app purchases to speed up processes: While playing, you can buy items to help speed up task completion. It’s optional, but it really saved me time, and I earned 4x more than I spent.
- Choose the highest-paying offers: Check New Offers and Featured Offers to get the best opportunities that pay the most.
Honestly, I still can’t believe I was able to earn this much so easily. And I’ve actually enjoyed the whole process. So, if you’re looking for some truly legit ways to earn money online, Freecash is a very good option.
I think I am eligible to answer this question as when I was 17, I used to compare myself with others.
Firstly, you need to understand that it is a basic human nature to compare,moreover the idea and mindset that the society has(specially in academics) conditions a kid to constantly compare with others.Comparison is not bad. It actually helps you to improve.
The problem is comparing yourself with others.This is because when you compare yourself with others,you only see the results not the efforts.
So,when you look at a person who is better than you,there is a feeling of dejection and when you look
I think I am eligible to answer this question as when I was 17, I used to compare myself with others.
Firstly, you need to understand that it is a basic human nature to compare,moreover the idea and mindset that the society has(specially in academics) conditions a kid to constantly compare with others.Comparison is not bad. It actually helps you to improve.
The problem is comparing yourself with others.This is because when you compare yourself with others,you only see the results not the efforts.
So,when you look at a person who is better than you,there is a feeling of dejection and when you look at a person who is not good compared to you,there you feel elated.Both of the cases hinders your growth.
Image courtesy:Google
The above image explaines the problem.
The solution is to compare with the person you know the most i.e. YOU. It will help you to improve everyday,to be the better version of yourself.
So now onwards, set a goal for yourself and strive to achieve it. Don't think about what others have achieved, just focus on your process.Comparison can be the best tool for you to achieve greatness if you use it in the best way.
All the best :)
If you have any problem,feel free to DM me.
The question refers to a lock "above", so I'll first add a picture.
You turn the first wheel to get the first digit of the "combination" (it's a bad word in this context, but that's how it's called in terms of combination locks), second one to get the second digit, third one to get the third digit. Just like a PIN at an ATM or your phone, it will unlock only if you got the sequence of numbers right, not the set of numbers (i.e. if your credit card PIN is 1234, 4321 won't work [and contrary to hoaxes and urban legends, it will not alert the police]).
So it's just rather vague wording in the text
The question refers to a lock "above", so I'll first add a picture.
You turn the first wheel to get the first digit of the "combination" (it's a bad word in this context, but that's how it's called in terms of combination locks), second one to get the second digit, third one to get the third digit. Just like a PIN at an ATM or your phone, it will unlock only if you got the sequence of numbers right, not the set of numbers (i.e. if your credit card PIN is 1234, 4321 won't work [and contrary to hoaxes and urban legends, it will not alert the police]).
So it's just rather vague wording in the text you are reading. I'd replace
In the lock above, there are 10 numbers to choose from (0,1,...9) and we choose 3 of them.
with
In the lock above, there are three wheels with 10 digits to choose from (0,1,...9) and we choose one digit on the each wheel.
Ques 1 :
Case 1: When we take either 'O' or 'A':
First lets select the vowels . We can either select O or A so there are 2 ways. Now selecting the other three letters, there are 4C3 ways to do so. Finally, we permute these selections. There are 4! ways to permute four letters where no letter is being repeated.
So, total no. of ways=2*4C3*4!=2*4*24=192 ways
Case 2: When we select both 'O' and 'A':
First lets select the vowels . We have to select both O and A so there is just one way(2C2=1). Now selecting the other two letters, there are 4C2 ways to do so. Finally, we permute these selections. There
Ques 1 :
Case 1: When we take either 'O' or 'A':
First lets select the vowels . We can either select O or A so there are 2 ways. Now selecting the other three letters, there are 4C3 ways to do so. Finally, we permute these selections. There are 4! ways to permute four letters where no letter is being repeated.
So, total no. of ways=2*4C3*4!=2*4*24=192 ways
Case 2: When we select both 'O' and 'A':
First lets select the vowels . We have to select both O and A so there is just one way(2C2=1). Now selecting the other two letters, there are 4C2 ways to do so. Finally, we permute these selections. There are 4! ways to permute four letters where no letter is being repeated.
So, total no. of ways=1*4C2*4!=6*24=144 ways
Therefor the answer to the question= Case1 + Case2=192+144=336
Ques 2:
Let these be the ten seats:
- - - - - - - - - -
First lets select the seat for Alice. As both seats adjacent to Alice should be occupied by her friends, she cannot be seated on the extreme ends of the row. So no. of ways to seat Alice is 8. Now lets select 2 friends of Alice who have to be seated adjacent to her. No. of ways to select 2 friends out of her five friends is 5C2. Now lets seat these two friends. There are 2! ways to do this. Now lets choose seats for the remaining 3 friends of Alice. No. of ways to select 3 seats out of the 7 vacant seats=7C3 . We again have to arrange the 3 friends on the 3 chosen seats in 3! ways.
So total no. of ways=8*5C2*2*7C3*6=33600 ways
I hope this answers your questions and please check the answers if you have them and reply in the comments section. Thanks.
There are a few interpretations possible here. I will assume that you require the total number of possible gift allocations given that no couple gets a gift from their spouse, no individual gives themselves a gift and everyone receives exactly 1 gift.
This is then reducible to the problem of counting placements of 8 non-attacking rooks on the following “chess board”
Source: Bluffton University Rook Polynomial Calculator - Darryl Nester (second link below)
Each person A, B, C, D, E, F, G, H gives respective gifts 1, 2, 3, 4, 5, 6, 7, 8 and the couples are A&B, C&D, E&F.
8 Rooks are placed so as to
There are a few interpretations possible here. I will assume that you require the total number of possible gift allocations given that no couple gets a gift from their spouse, no individual gives themselves a gift and everyone receives exactly 1 gift.
This is then reducible to the problem of counting placements of 8 non-attacking rooks on the following “chess board”
Source: Bluffton University Rook Polynomial Calculator - Darryl Nester (second link below)
Each person A, B, C, D, E, F, G, H gives respective gifts 1, 2, 3, 4, 5, 6, 7, 8 and the couples are A&B, C&D, E&F.
8 Rooks are placed so as to avoid black squares and to allocate gifts 1 to 8 to people A to H.
The standard approach involves determining the rook polynomial (wiki link) for the forbidden subboard (black squares). In this case the modified** rook polynomial (polynomial calculator link) is
[math]R(x)=(2-4x+x^2)^3(-1+x)^2=x^{7} + 79 \, x^{6} - 232 \, x^{5} + 386 \, x^{4} - 376 \, x^{3} + 212 \, x^{2} - 64 \, x + 8[/math]
Where the term [math]2-4x+x^2[/math] is the rook polynomial for each of the [math]2\times 2[/math] subboards and the term [math]1-x[/math] is the rook polynomial for each of the two single black squares at the bottom right. We are allowed to multiply because these subboards are all disjunct.
The desired count is given by replacing the each [math]x^k[/math] with [math]k![/math] in the expansion of [math]R(x)[/math]. This is achieved by means of the fact that [math]\int_0^{\infty} x^ke^{-x}dx=k![/math], hence
[math]\text{desired count}=\displaystyle\int_0^{\infty} (2-4x+x^2)^3(-1+x)^2e^{-x} dx = 6176\qquad\blacksquare[/math]
**Modified in the sense that each coefficient of [math](-1)^kx^{n-k}[/math] is the number of possible placements of [math]k[/math] non-attacking rooks on the forbidden subboard with smallest length n. The polynomial calculator outputs the standard rook polynomial for the forbidden subboard for which the coefficient of [math]x^k[/math] is the number of possible placements of [math]k[/math] rooks.
1)
- Select one letter from A or O n 2C1 ways.
- Now select 3 letters from the remaining 4 letters in 4C3 ways.
- And we have 4! to permutate them.
- Till now we have not excluded cases involving both A and O.
- So we choose 2 letters from A and O on 2C2 that is 1 way.
- And we choose test two letters from remaining 4 letters in 4C2 ways. And we multiply it with 4!
Final answer
2C1 *4C3*4! + 2C2*4C2*4!
= 576
2)
- Now select 2 out of those 5 who will sit next to her.
- Now we have a group of three sittings ( Alice and her two friends next to next) and the rest 3 friends.
- Now we have to make them sit and permutate them
1)
- Select one letter from A or O n 2C1 ways.
- Now select 3 letters from the remaining 4 letters in 4C3 ways.
- And we have 4! to permutate them.
- Till now we have not excluded cases involving both A and O.
- So we choose 2 letters from A and O on 2C2 that is 1 way.
- And we choose test two letters from remaining 4 letters in 4C2 ways. And we multiply it with 4!
Final answer
2C1 *4C3*4! + 2C2*4C2*4!
= 576
2)
- Now select 2 out of those 5 who will sit next to her.
- Now we have a group of three sittings ( Alice and her two friends next to next) and the rest 3 friends.
- Now we have to make them sit and permutate them as well.
- You should be able to see that if we select the consecutive seats, then do so we have only 8 ways. So we select any one of these combo of three seats. Also, we will multiply with 2! So that the two friends will interchange there positions with respect to Alice.
- We select any three seats from the rest 7 in 3C7 ways and permutate them in 3! Ways.
Final answer
33600
Suppose you wanted to compute how many ways there are to make $20, and that you number each way to make $10, {A,B,C}. Then, to make $20, you can do:
{A,A}
{A,B}
{A,C}
{B,B}
{B,C}
{C,C}
6 ways total. Notice how you can make $20 in 1 + 2 + 3 different ways (3 ways where A is first, 2 ways there B is first, and 1 way where C is first).
1 + 2 + 3 = 3*4/2 = 6.
So for 201 different $10s, you need the above multisets to have exactly 201 elements. So you'll have 1+2...+202 different ways to do that, which is equal to (202*203)/2 = 20503.
This topic is referred to as multisets - have a look here for some m
Suppose you wanted to compute how many ways there are to make $20, and that you number each way to make $10, {A,B,C}. Then, to make $20, you can do:
{A,A}
{A,B}
{A,C}
{B,B}
{B,C}
{C,C}
6 ways total. Notice how you can make $20 in 1 + 2 + 3 different ways (3 ways where A is first, 2 ways there B is first, and 1 way where C is first).
1 + 2 + 3 = 3*4/2 = 6.
So for 201 different $10s, you need the above multisets to have exactly 201 elements. So you'll have 1+2...+202 different ways to do that, which is equal to (202*203)/2 = 20503.
This topic is referred to as multisets - have a look here for some more information: Page on wolfram.com
Comparison is a thing which one usually does unaware of the consequences that he/she might have to face. Life is full of ups and down, at a moment one is king another moment he could become a beggar,when no money is left. In comparison the underlying thought or belief is that one is better than other or one is worse than other.
If one feels that one is better than other he comes in ego, he tries to belittle others. Don't value others, looks down upon them. Laugh on them or ridicule them : for what they are. This destroys the relationship to the core,he is not able to sustain good relationship b
Comparison is a thing which one usually does unaware of the consequences that he/she might have to face. Life is full of ups and down, at a moment one is king another moment he could become a beggar,when no money is left. In comparison the underlying thought or belief is that one is better than other or one is worse than other.
If one feels that one is better than other he comes in ego, he tries to belittle others. Don't value others, looks down upon them. Laugh on them or ridicule them : for what they are. This destroys the relationship to the core,he is not able to sustain good relationship because what he feels is superior and this leads to superiority complex .
On the other hand if one feels that one is lower than others he will always try to belittle himself in front of others seeing others values or achievement he will criticise himself for what he is. Punish himself and cause self inflicting pain. That pain which is so harsh that it dwindles and shakes one self confidence.
So at last there should not be an iota of doubt on saying that “Comparison is one which leads to superiority or inferior complex”
You can think of the operation of erasing the two numbers [math]x[/math] and [math]y[/math] and replacing them with [math]x + y + xy[/math] as a binary operation something like [math]+[/math] or [math]\times[/math]. Let’s investigate the properties of that binary operation, which we will call [math]*[/math].
We have [math]x * y = x + y + xy = y + x + yx = y * x[/math], so the operation is commutative.
We have, on the one hand, [math](x*y) * z = (x + y + xy) * z = x + y + xy + z + xz + yz + xyz = x + y + z + xy + yz + zx + xyz[/math]. On the other hand, [math]x*(y*z) = x * (y + z + yz) = x + y + z + yz + xy + xz + xyz[/math]. Altogether, [math](x*y)*z = x*(y*z)[/math], so the operation is associative.
The commutative and ass
You can think of the operation of erasing the two numbers [math]x[/math] and [math]y[/math] and replacing them with [math]x + y + xy[/math] as a binary operation something like [math]+[/math] or [math]\times[/math]. Let’s investigate the properties of that binary operation, which we will call [math]*[/math].
We have [math]x * y = x + y + xy = y + x + yx = y * x[/math], so the operation is commutative.
We have, on the one hand, [math](x*y) * z = (x + y + xy) * z = x + y + xy + z + xz + yz + xyz = x + y + z + xy + yz + zx + xyz[/math]. On the other hand, [math]x*(y*z) = x * (y + z + yz) = x + y + z + yz + xy + xz + xyz[/math]. Altogether, [math](x*y)*z = x*(y*z)[/math], so the operation is associative.
The commutative and associative properties together guarantee that when we apply the operation on a pile of numbers, the final result doesn’t depend on the order in which we apply the operation. Think about all the different ways of applying the operation to four numbers, for example: [math]x*(y*(z*w)) = (x * y)* (z * w) = (x*(y*z))*w[/math] etc., etc., just by the associative property; when we involve the commutative property as well, the order of the letters will change, but the final results will all be equal.
Picking two numbers and applying the operation is like making those two numbers the innermost bracket in a large expression like the one in the previous paragraph. In the end, there will be 100 terms, but no matter how the expression is formed, the final result will be the same.
So there is only one possible answer.
Figuring out what that answer will be is another hard problem. The issue is that the answer will be huge. I’ll let you think about it a bit, but here’s a hint: [math]x + y + xy = (1+x)(1+y)-1[/math].
I'm not going to resolve it here but I'll tell you what approach I would take.
Let's say m=5 so we need to find numbers with 5 ones. The smallest one is always going to be the one with no zeros 11111.
The next number is going to be the one with one zero after the first 1, 101111. The third number on the list will be 110111. You can see that the zero is moving to the right.
After all those numbers with one zero you will have he ones with 2 zeros. 1001111. You need to move the zeros to make all possible combinations: 1010111, 1011011, 1011101, 1011110. Then moving the other zero: 1100111, 110101
I'm not going to resolve it here but I'll tell you what approach I would take.
Let's say m=5 so we need to find numbers with 5 ones. The smallest one is always going to be the one with no zeros 11111.
The next number is going to be the one with one zero after the first 1, 101111. The third number on the list will be 110111. You can see that the zero is moving to the right.
After all those numbers with one zero you will have he ones with 2 zeros. 1001111. You need to move the zeros to make all possible combinations: 1010111, 1011011, 1011101, 1011110. Then moving the other zero: 1100111, 1101011, 1101101, 1101110. You get the idea.
Now, you could try all combinations until you get the number you want or fast forward to the number you want.
If m=5, and the are zero 0s, you have only one combination possible, with one zero you have 5 combinations, with 2 zeros you have 15 combinations... Find the sequence and problem solved!
Try this method.
1) The number of ways you can select any two sections is given by 3c2
= 3
2) Now, focus on the sections. From each section at least two questions must be done. Since you are choosing from 5 questions in each section, the number of ways you can do this is:
(2,5), (3,4), (4,3), (5,2)
= 5c2*5c5 + 5c3*5c4 + 5c4*5c3 + 5c5*5c2
= 2(10 + 50)
= 12o
3) Now, multiply the result in (2) with (1), since there are 3c2 ways you can do (2)
3c2 * (5c2*5c5 + 5c3*5c4 + 5c4*5c3 + 5c5*5c2)
= 3*120
= 360
Well, I think the fault lies in the fact in this step:
Number of ways of selecting at least 2 questio
Try this method.
1) The number of ways you can select any two sections is given by 3c2
= 3
2) Now, focus on the sections. From each section at least two questions must be done. Since you are choosing from 5 questions in each section, the number of ways you can do this is:
(2,5), (3,4), (4,3), (5,2)
= 5c2*5c5 + 5c3*5c4 + 5c4*5c3 + 5c5*5c2
= 2(10 + 50)
= 12o
3) Now, multiply the result in (2) with (1), since there are 3c2 ways you can do (2)
3c2 * (5c2*5c5 + 5c3*5c4 + 5c4*5c3 + 5c5*5c2)
= 3*120
= 360
Well, I think the fault lies in the fact in this step:
Number of ways of selecting at least 2 questions from each section 5c2....
Then, we have to select 3 questions from the remaining 6: 6c3 = 20
Though I am not sure of the reasoning, I am certain the fault lies in this step.

I think you question is probably incomplete or copied wrong.
Anyways, considering this problem, it is actually very easy to select 8 books from the set of 36.
consider the set of all books i.e , the set contains 36 books.
You are given a job to show , in how many ways can you select 8 books, probability of each book being uniformly distributed.
Now you are given n sets of 8. You need to figure out n.
Consider each place in the set , if you start with the first place from the 8 places you can have 36 in the first place. Now that you have selected one book from the 36 books, you are left with 3
I think you question is probably incomplete or copied wrong.
Anyways, considering this problem, it is actually very easy to select 8 books from the set of 36.
consider the set of all books i.e , the set contains 36 books.
You are given a job to show , in how many ways can you select 8 books, probability of each book being uniformly distributed.
Now you are given n sets of 8. You need to figure out n.
Consider each place in the set , if you start with the first place from the 8 places you can have 36 in the first place. Now that you have selected one book from the 36 books, you are left with 35 options of books to be selected. Clearly you can see the pattern i.e for 8 places , after each place there would be one less possible books to be selected from the previous one.
Mathematically writing this :-
36*35*34*33*32*31*30*29*28 possibilities.
Now rather that using this pattern you can generalize any problem by using the factorial function.
36! = 36*35*34*....*1!*0!.
but you need only first 8 elements of this 36 set.
therefore 36!/(36-8)! is the ans.
The number of combinations without taking in account the constraint is [math]C[/math](8,2)=28 now we should eliminate the number of combinations of the three couples which will give you 28–3=25
P.S [math]C[/math](n,k)[math]=n!/(n-k)!k![/math]
My original thought is: check and guess. It must be 1,2 or 2,1. So check and guess x=1, y = 2.
Substituting x for 1 and y fir 2,
You have:
1+2 +(1×2)=(1+1)(1+2) -1
3+2=2(3)-1
5=6-1
5=5
So an original assumption is right.,x=1 , y=2.
If it is inn answer to a statement or question, it would be all right. For example: “Can you run fast?” “Faster than you!” would work (though itwould be a bit rude!). But if it is said without any precursive question, then the person addressed would probably ask, “What is faster than me?” The same would apply to “More than ten” - “How many are there?” “More than ten.” Otherwise, you would be asked “What is more than ten?”
In other words, the first member is necessary, but it may be supplied by a precursive statement or question.
You are counting repeatation in second step
After selecting 2sections say a and b
when you do 5c2x5c2x6c4 some case are counted more than once.
For example one of the combination will be (a1,a2,b1,b2) and 3 from remaining 6 say a3 a4 a5
Now other combination by your method will be (a1,a3,b1,b2)
And 3from 6 which can very well be
a2 a4 a5
But this are same set of question as before so essentially same combination.
Simply by doing 10c7 in second step will give you answer as there are 5 questions per section, there is no way he can select 7 from a section without selection at least 2 from eac
You are counting repeatation in second step
After selecting 2sections say a and b
when you do 5c2x5c2x6c4 some case are counted more than once.
For example one of the combination will be (a1,a2,b1,b2) and 3 from remaining 6 say a3 a4 a5
Now other combination by your method will be (a1,a3,b1,b2)
And 3from 6 which can very well be
a2 a4 a5
But this are same set of question as before so essentially same combination.
Simply by doing 10c7 in second step will give you answer as there are 5 questions per section, there is no way he can select 7 from a section without selection at least 2 from each
The shooter only makes one of two shots. So he/she can either make the first shot or second shot, it doesn't matter. It should say "These are all the possible ways of making 1 shot out of 2", rather than "combinations" or "permutations" imo. Saying combinations or permutations just causes confusion..
For each $10 you make, there are three ways.
Now you have acquired the $2010 for 201 times.
For each of these 201 times that you made $10, you had three ways of making it.
Therefore: 3 x 3 x ... x 3 (201 times) => 3 ^ 201
(3 to the power of 201).
His example, (202)*(203/2) = 20503, doesn't have anything to do with it, though.
In artificial intelligence, it is possible to solve multiple problems simultaneously using “multi-task learning.” Some methods for multi-task learning are based on evolutionary computation, so that a neural network can “evolve” to solve many different problems.
Similarly, it is possible to solve some mathematical optimization problems using multi-objective optimization, where more than one objective function is optimized simultaneously.
George Gonzales makes some good points. It sounds to me like you are going to be working mainly to support that Camaro which is a nice car but will take the majority of your savings and much of your income for 4 more years.
At the end of that time, consider what you will have, a 5 year old car, little savings, and perhaps some fond memories.
You should also consider what you will be giving up, a down payment on a house (which should hold its value after 5 years, as compared to a car which will be worth a fraction of its original cost), kids, vacations, etc. It depends on how much you value thin
George Gonzales makes some good points. It sounds to me like you are going to be working mainly to support that Camaro which is a nice car but will take the majority of your savings and much of your income for 4 more years.
At the end of that time, consider what you will have, a 5 year old car, little savings, and perhaps some fond memories.
You should also consider what you will be giving up, a down payment on a house (which should hold its value after 5 years, as compared to a car which will be worth a fraction of its original cost), kids, vacations, etc. It depends on how much you value things like that.
If you dearly love it, go ahead. Remember this piece of advice: Never fall in love with a car, it will not love you back.
Q: “What is one solution that can be used to solve multiple problems?”
Define the word problem.
Define the problem.
Look. Don’t think.
I would do something rather different. Create a hashmap (or an array of arrays if you please) where you keep all the numbers with x number of ones.
for example, in Array[1] you would have {1, 100, 010, 001...} and so forth. Going to Array[m][i] gives you the number that you need.
It takes a huge memory space, but hey, memory is cheap nowadays!
Please note that this is the first solution that came to mind. Surely, there are better ways to do it.
Because each number of the lock is inependant of the other numbers.
The correct comination can not be better solved if one or two numbers only are correct. Only one single combination out of 1000 will work.
This is because you have assumed that 0/0=1.
x(x-2)=1(x-2)
Here, x=2 and x-2=0. And in mathematics you 0/0 is an indefinite form, which leads you to the wrong answer.
It will be 201*3 unless some other info is missing
Division by zero is not allowed.
I would just create a bucket for every possible m. A given bucket m can contain a list of numbers that have m 1s, sorted by the value on the number. All you need to do is go to the mth bucket and get the nth number.