Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Managerial Computing

Assignment 04
Problem 1- Birthday Party
Birthday parties are serious business. You run a company that organizes parties for
high-income clients. Last year the same client had employed you for her child’s party.
For the return present goodie bag, you had decided to customize the presents for
each child according to his/her preference. However, that did not work well as the
kids opened the presents during the party and started creating a huge ruckus when
their presents were different from others.

This year the client has insisted that all 26 kids should get the same return presents.
However, you know from past analysis and experience that the kids of this
generation can turn nasty if they do not like their presents.

You decide to use the data you have on the preference of the different kids on 10
different gift items to choose a subset of gifts that will please all the kids to a certain
extent. You classify the 26 kids according to two age groups: seniors and juniors.
Junior kids will be happy if they get at-least 3 gifts they like, and seniors will be
happy with at-least 2 gifts they like. The rest of their gifts can be those they do not
like.

Each of the 10 potential gifts have different costs. The following spreadsheet helps
you select the subset of gifts that should be chosen for the gift bag with the objective
of minimizing the total cost of each gift bag. The spreadsheet also tries to answer
some queries on gift popularity.

You have data on each child (name in Column B as a string, date of birth in Column
C in date format dd-mm-yyyy and gift preferences in range H5:Q30). For the gift
preferences, 1 denotes preferred/liked and 0 denotes un-preferred/disliked.
Answer the questions below.
Question 1: The threshold year for deciding whether a child is classified as junior or senior
is given in cell B34. All children born in this year or later are juniors, the rest are seniors.
Write a formula in D5 that will be copied downwards to classify the kids as “Senior” or
Junior”.

Formula in D5:

Question 2: The initials of each child are needed to be embossed on the gift bag. Write a
formula in E5 which will be copied down, for the initials of each child. You can assume
that each child has only a first and last name.

Formula in E5:
Question 3: The popularity of each gift for juniors and seniors is calculated in H33-
Q34.

Write a formula in H33 which will be copied to the next row and copied
horizontally till column Q to fill the full table for all gifts.

Formula in H33:

Formula in J38 for most popular gift among Juniors:

Formula in J39 for most popular gift among Seniors:

The table in range L38 –P42 calculates the number of juniors, seniors and most
popular gifts for juniors, seniors for different threshold years. Use the data-table
feature to calculate this table.

Data Table:

Dependent variables are in M38, N38, O38, P38

Formula for M38:

Formula for N38:

Formula for O38:

Formula for P38:

Range to be selected for data table:

Row input Cell: Column Input Cell:


Question 4:

a) G40 contains the number of Juniors who like Gift4 but not Gift8 or vice versa
(Gift8 but not Gift4)? (Use range B41:F43 for intermediary work if needed)

B C D E F
41

42

43

Formula for G40:

b) Cell G45 contains the number of seniors who have the same preference for Gift1
and Gift9.
(Use B46:C47 if needed)

B46: C46:

B47: C47:

Formula in G45:

Question 5: The cost for each gift is in range H3:Q3. A particular random selection
of gifts for the gift bag is in range H2:Q2, where 1 stand for selected and 0 for not
selected.

a) Cell S3 contains the total cost for these selected gifts.

Formula for S3:

b) Range R5: R30 contains the number of liked gifts for each kid, for the selection
specified in H2:Q2. Write a formula in R5 that will be copied downwards to
generate this data.

Formula in R5:
c) S5:S30 contains the minimum number of likes for each kid, as specified in the
range B35:D36. All seniors require min likes of “2” and juniors require min likes of
“3”.

Formula for S5 (to be copied down):

d) Use the solver tool and this setup to find a min-cost solution for the subset of
gifts that have to be selected for the gift-bag, such that each kid will get enough
gifts that he/she will like. By enough, we mean at-least 2 “liked” gifts for seniors
and at-least 3 “liked” gifts for juniors.

Fill in the objective function cell, variable cells and constraints in the solver box
printed here.

What is the minimum cost found by solver? ₹

What is the minimum-cost solution (subset of gifts selected) found by solver?

Selection:
Problem 2- IPL 2022

Indian Premier League (IPL) is one of the largest franchise-owned cricket leagues in
the world. In fact, an estimate indicates that by the end of the year 2022, the sports
industry in India will overtake the Information Technology (IT) sector of India in
terms of corporate investments (SMRI, 2022). Like many other Indians, consider
yourself a cricket enthusiast.

It could be possible that next year a new IPL team “Magadh Paltan” is launched, and
they want to recruit from IIM Ahmedabad some interns for sports consultancy (Day
0 slot).For the recruitment purpose, “Magadh Paltan” team personnel are using a
historical dataset on IPL auctions for the years 2020-2021. The franchises acquire
players through an English auction that is conducted every year.

The performance of the players could be measured through several metrics.


Although the IPL follows the Twenty20 format of the game, it is possible that the
performance of the players in the other formats of the game such as Test and one-
day matches could influence player pricing. “Magadh Paltan” have prepared some
questions for you based on this dataset. To get selected for this coveted internship,
you need to impress them with your analysis.

Answer the following question in Problem 02 Solution spreadsheet-

1. Enter an array formula in the range F3:G7 in Problem 02 Solution, which gives the
results of a linear regression of one of the independent variables (Test Runs, ODI
Runs, T20 Runs) with given values in (H2:H51) as the dependent variable. Obtain the
constant term and all statistics.

Formula:__________________________________

2. Modify the formula entered above to produce the results for any variable whose
index number is entered in the cell F1 (currently it is 1, the results should be for
variable Test runs; if it is changed to 2, the results should be for ODI runs, and so
on.).

Modified Formula:_______________________________________

3. It is required to compile a table of: Coefficient, Constant term, R-Square, and F-Stat
from the results of regression with each variable, in the range H17:J17. Give the
following details to obtain the summary table:

a. Formulae in Cells F17 F18 F19 and F20


b. For Data Table: Range: Row Input Cell: Column Input Cell:

4. For any selected variable in F1 (Problem 02 Solution), it is required to obtain the


current values in the range B2:B51 and predicted values in the range C2:C51.

Formula in B2 (to be copied to rows below):____________________


Formula in C2 (to be copied to rows below): ___________________

5. Using the values in the current and predicted variables draw a chart (with data
points connected by lines).

6. Using the Forms Toolbar, create a Spinner to set the vales of the cell F1. Choose
minimum as 1, maximum as 3, and increment as 1. Observe fitness of the regression
results by viewing actual-vs- predicted chart created above for different variables
using the spinner.

7. Solve the problem with using Indirect function.

You might also like